@inf-monkeys-tech/monkeys-design 1.0.62 → 1.0.63

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.
@@ -87,6 +87,7 @@ interface AgentWorkbenchExploreSidebarLabels {
87
87
  draftSession: string;
88
88
  emptySessions: string;
89
89
  noResults: string;
90
+ retry?: string;
90
91
  }
91
92
  type AgentWorkbenchExploreSidebarIntent = {
92
93
  type: "change-group";
@@ -96,6 +97,8 @@ type AgentWorkbenchExploreSidebarIntent = {
96
97
  query: string;
97
98
  } | {
98
99
  type: "create-session";
100
+ } | {
101
+ type: "retry-sessions";
99
102
  } | {
100
103
  type: "select-item";
101
104
  groupId: string;
@@ -111,6 +114,7 @@ interface AgentWorkbenchExploreSidebarProps {
111
114
  selectedSessionId?: string;
112
115
  searchQuery?: string;
113
116
  loading?: boolean;
117
+ error?: string;
114
118
  showDraftSession?: boolean;
115
119
  defaultGroupId?: string;
116
120
  className?: string;
@@ -118,7 +122,7 @@ interface AgentWorkbenchExploreSidebarProps {
118
122
  onIntent?: (intent: AgentWorkbenchExploreSidebarIntent) => void;
119
123
  }
120
124
  declare function AgentWorkbenchExploreCardMedia({ item, src, className, onError, }: AgentWorkbenchExploreCardMediaProps): null | react_jsx_runtime.JSX.Element;
121
- declare function AgentWorkbenchExploreSidebar({ sessions, groups, labels, selectedSessionId, searchQuery, loading, showDraftSession, defaultGroupId, className, renderItemMedia, onIntent, }: AgentWorkbenchExploreSidebarProps): react_jsx_runtime.JSX.Element;
125
+ declare function AgentWorkbenchExploreSidebar({ sessions, groups, labels, selectedSessionId, searchQuery, loading, error, showDraftSession, defaultGroupId, className, renderItemMedia, onIntent, }: AgentWorkbenchExploreSidebarProps): react_jsx_runtime.JSX.Element;
122
126
  interface AgentWorkbenchApprovalIntent {
123
127
  approvalId: string;
124
128
  approved: boolean;
@@ -87,6 +87,7 @@ interface AgentWorkbenchExploreSidebarLabels {
87
87
  draftSession: string;
88
88
  emptySessions: string;
89
89
  noResults: string;
90
+ retry?: string;
90
91
  }
91
92
  type AgentWorkbenchExploreSidebarIntent = {
92
93
  type: "change-group";
@@ -96,6 +97,8 @@ type AgentWorkbenchExploreSidebarIntent = {
96
97
  query: string;
97
98
  } | {
98
99
  type: "create-session";
100
+ } | {
101
+ type: "retry-sessions";
99
102
  } | {
100
103
  type: "select-item";
101
104
  groupId: string;
@@ -111,6 +114,7 @@ interface AgentWorkbenchExploreSidebarProps {
111
114
  selectedSessionId?: string;
112
115
  searchQuery?: string;
113
116
  loading?: boolean;
117
+ error?: string;
114
118
  showDraftSession?: boolean;
115
119
  defaultGroupId?: string;
116
120
  className?: string;
@@ -118,7 +122,7 @@ interface AgentWorkbenchExploreSidebarProps {
118
122
  onIntent?: (intent: AgentWorkbenchExploreSidebarIntent) => void;
119
123
  }
120
124
  declare function AgentWorkbenchExploreCardMedia({ item, src, className, onError, }: AgentWorkbenchExploreCardMediaProps): null | react_jsx_runtime.JSX.Element;
121
- declare function AgentWorkbenchExploreSidebar({ sessions, groups, labels, selectedSessionId, searchQuery, loading, showDraftSession, defaultGroupId, className, renderItemMedia, onIntent, }: AgentWorkbenchExploreSidebarProps): react_jsx_runtime.JSX.Element;
125
+ declare function AgentWorkbenchExploreSidebar({ sessions, groups, labels, selectedSessionId, searchQuery, loading, error, showDraftSession, defaultGroupId, className, renderItemMedia, onIntent, }: AgentWorkbenchExploreSidebarProps): react_jsx_runtime.JSX.Element;
122
126
  interface AgentWorkbenchApprovalIntent {
123
127
  approvalId: string;
124
128
  approved: boolean;
package/dist/index.d.mts CHANGED
@@ -5,7 +5,7 @@ export { MonkeysComponentAttributes, MonkeysDirection, MonkeysEmptyStateVariant,
5
5
  export { defaultMonkeysLocale, enUS, mergeMonkeysLocaleMessages, resolveMonkeysLocale, zhCN } from './locale/index.mjs';
6
6
  export { M as MonkeysAgentWorkbenchMessages, a as MonkeysBuiltInLocaleId, b as MonkeysDataExplorerMessages, c as MonkeysDialogMessages, d as MonkeysDropdownMenuMessages, e as MonkeysLayoutMessages, f as MonkeysLoadingMessages, g as MonkeysLocale, h as MonkeysLocaleInput, i as MonkeysLocaleMessages, j as MonkeysLocaleMessagesOverride, k as MonkeysMultiSelectMessages, l as MonkeysNumberInputMessages, m as MonkeysPaginationMessages, n as MonkeysPasswordInputMessages, o as MonkeysResolvedLocale, p as MonkeysStepsMessages, q as MonkeysTableMessages, r as MonkeysToastMessages, s as MonkeysToolbarMessages, t as MonkeysWorkbenchMessages } from './types-15efbcf88674.mjs';
7
7
  export { UnifiedDropdown, UnifiedDropdownClassNames, UnifiedDropdownGroup, UnifiedDropdownMode, UnifiedDropdownOption, UnifiedDropdownPlacement, UnifiedDropdownProps, UnifiedDropdownSlotContext, UnifiedDropdownSlots, UnifiedDropdownValue } from './components/dropdown/index.mjs';
8
- export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchSidebar, r as AgentWorkbenchSidebarClassNames, s as AgentWorkbenchSidebarIntent, t as AgentWorkbenchSidebarProps, u as AgentWorkbenchTaskDetails, v as AgentWorkbenchTaskDetailsClassNames, w as AgentWorkbenchTaskDetailsProps, x as AgentWorkbenchTerminalModel, y as AgentWorkbenchTool, z as AgentWorkbenchToolClassNames, B as AgentWorkbenchToolProps, C as createAgentWorkbenchActivityModel, D as createAgentWorkbenchDetailsModel } from './details-model-765193fe43be.mjs';
8
+ export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchSidebar, r as AgentWorkbenchSidebarClassNames, s as AgentWorkbenchSidebarIntent, t as AgentWorkbenchSidebarProps, u as AgentWorkbenchTaskDetails, v as AgentWorkbenchTaskDetailsClassNames, w as AgentWorkbenchTaskDetailsProps, x as AgentWorkbenchTerminalModel, y as AgentWorkbenchTool, z as AgentWorkbenchToolClassNames, B as AgentWorkbenchToolProps, C as createAgentWorkbenchActivityModel, D as createAgentWorkbenchDetailsModel } from './details-model-db4bd679f88e.mjs';
9
9
  export { LoginPage, LoginPageBackgroundConfig, LoginPageCalloutConfig, LoginPageCheckboxConfig, LoginPageExternalMethodConfig, LoginPageExternalPanelConfig, LoginPageFieldConfig, LoginPageLogoConfig, LoginPageLogoLocation, LoginPageMethodConfig, LoginPageProps } from './components/login/index.mjs';
10
10
  export { AppHeader, AppHeaderLogo, AppHeaderProps, AppHeaderUser, AppLayout, AppLayoutProps, AppShellSidebar, AppShellSidebarClassNames, AppShellSidebarProps, AppSidebar, AppSidebarProps, HeadbarLayout, HeadbarLayoutMode, HeadbarMenuRadius, HeadbarNavPosition, HeaderTab, LayoutNavItem, NavButton, NavButtonProps, NavigationLayout, NavigationLayoutProps, NavigationMode, SidebarAccount, SidebarNavItem, UserAccountMenu, UserAccountMenuClassNames, UserAccountMenuItem, UserAccountMenuProps, UserAccountMenuRadius, UserAccountMenuSelectorConfig, UserAccountMenuSelectorOption, UserAccountMenuSide, UserAccountMenuTriggerVariant, UserAccountMenuUser, cn } from './components/layout/index.mjs';
11
11
  export { I as InteractiveTable, a as InteractiveTableClassNames, b as InteractiveTableColumn, c as InteractiveTableColumnMenuLabels, d as InteractiveTableEditableTextCell, e as InteractiveTableEditableTextCellProps, f as InteractiveTableHeaderContext, g as InteractiveTableHeaderProps, h as InteractiveTableProps, i as InteractiveTableReadonlyCell, j as InteractiveTableReadonlyCellProps, k as InteractiveTableRenderContext, l as InteractiveTableRowState, m as InteractiveTableSelectCell, n as InteractiveTableSelectCellProps, o as InteractiveTableSelectOption, W as WorkbenchAssetGallery, p as WorkbenchAssetGalleryItem, q as WorkbenchAssetGalleryProps, r as WorkbenchCollection, s as WorkbenchCollectionActivationEvent, t as WorkbenchCollectionAppearanceConfig, u as WorkbenchCollectionCallbacks, v as WorkbenchCollectionClassNames, w as WorkbenchCollectionConfig, x as WorkbenchCollectionGroupContext, y as WorkbenchCollectionGroupingConfig, z as WorkbenchCollectionHoverEffect, A as WorkbenchCollectionItemConfig, B as WorkbenchCollectionItemContext, C as WorkbenchCollectionItemSize, D as WorkbenchCollectionItemSlotName, E as WorkbenchCollectionItemSlots, F as WorkbenchCollectionItemStatus, G as WorkbenchCollectionItemTitleConfig, H as WorkbenchCollectionKey, J as WorkbenchCollectionLabels, K as WorkbenchCollectionLayoutConfig, L as WorkbenchCollectionLayoutContext, M as WorkbenchCollectionLayoutMode, N as WorkbenchCollectionLayoutSnapshot, O as WorkbenchCollectionLoadingConfig, P as WorkbenchCollectionLoadingVariant, Q as WorkbenchCollectionProps, R as WorkbenchCollectionResponsive, S as WorkbenchCollectionSelectionBehavior, T as WorkbenchCollectionSelectionConfig, U as WorkbenchCollectionSelectionMode, V as WorkbenchCollectionSkeletonConfig, X as WorkbenchCollectionSlotContext, Y as WorkbenchCollectionSlots, Z as WorkbenchCollectionStateConfig, _ as WorkbenchCollectionTitlePlacement, $ as WorkbenchCollectionTitleVisibility, a0 as WorkbenchCollectionVirtualizationAdapter, a1 as WorkbenchCollectionVirtualizationConfig, a2 as WorkbenchCollectionVirtualizationRenderOptions, a3 as WorkbenchContentPane, a4 as WorkbenchContentPaneBodyProps, a5 as WorkbenchContentPaneClassNames, a6 as WorkbenchContentPaneProps, a7 as WorkbenchContentToolbar, a8 as WorkbenchContentToolbarClassNames, a9 as WorkbenchContentToolbarProps, aa as WorkbenchContentToolbarViewModeOption, ab as WorkbenchDetailSidebar, ac as WorkbenchDetailSidebarBodyProps, ad as WorkbenchDetailSidebarClassNames, ae as WorkbenchDetailSidebarField, af as WorkbenchDetailSidebarProps, ag as WorkbenchDetailSidebarRenderContext, ah as WorkbenchDetailSidebarSection, ai as WorkbenchEvidenceItem, aj as WorkbenchEvidenceList, ak as WorkbenchEvidenceListProps, al as WorkbenchGalleryCard, am as WorkbenchGalleryCardMetaContext, an as WorkbenchGalleryCardProps, ao as WorkbenchGalleryCardRenderContext, ap as WorkbenchGalleryColumn, aq as WorkbenchGalleryLabels, ar as WorkbenchGalleryRecordVisual, as as WorkbenchGallerySettingsButton, at as WorkbenchGallerySettingsButtonClassNames, au as WorkbenchGallerySettingsButtonProps, av as WorkbenchGallerySettingsLabels, aw as WorkbenchGallerySettingsOption, ax as WorkbenchGallerySettingsPanel, ay as WorkbenchGallerySettingsPanelClassNames, az as WorkbenchGallerySettingsPanelProps, aA as WorkbenchGallerySettingsValue, aB as WorkbenchGalleryView, aC as WorkbenchGalleryViewProps, aD as WorkbenchJourneyItem, aE as WorkbenchJourneyItemState, aF as WorkbenchJourneyNavigation, aG as WorkbenchJourneyNavigationProps, aH as WorkbenchLaneClassNames, aI as WorkbenchLaneColumn, aJ as WorkbenchLaneRenderCardContext, aK as WorkbenchLaneView, aL as WorkbenchLaneViewProps, aM as WorkbenchMasonryItemSize, aN as WorkbenchMasonryLayout, aO as WorkbenchMasonryLayoutContext, aP as WorkbenchMasonryLayoutProps, aQ as WorkbenchMetricGrid, aR as WorkbenchMetricGridDensity, aS as WorkbenchMetricGridProps, aT as WorkbenchMetricGridVariant, aU as WorkbenchMetricItem, aV as WorkbenchRadarFilterChip, aW as WorkbenchRadarFilterChipProps, aX as WorkbenchRadarFilterRow, aY as WorkbenchRadarFilterRowDisclosureBase, aZ as WorkbenchRadarFilterRowIntegratedDisclosure, a_ as WorkbenchRadarFilterRowProps, a$ as WorkbenchRadarFilterRowSeparateDisclosure, b0 as WorkbenchRadarInspectorSection, b1 as WorkbenchRadarLegendItem, b2 as WorkbenchRadarMatrix, b3 as WorkbenchRadarMatrixProps, b4 as WorkbenchRadarNavigation, b5 as WorkbenchRadarNavigationChild, b6 as WorkbenchRadarNavigationItem, b7 as WorkbenchRadarNavigationProps, b8 as WorkbenchRadarQuadrant, b9 as WorkbenchRadarWorkspace, ba as WorkbenchRadarWorkspaceProps, bb as WorkbenchRankedList, bc as WorkbenchRankedListItem, bd as WorkbenchRankedListMetric, be as WorkbenchRankedListProps, bf as WorkbenchRelationshipEdge, bg as WorkbenchRelationshipGraph, bh as WorkbenchRelationshipGraphProps, bi as WorkbenchRelationshipNode, bj as WorkbenchResizableSidebar, bk as WorkbenchResizableSidebarClassNames, bl as WorkbenchResizableSidebarItem, bm as WorkbenchResizableSidebarProps, bn as WorkbenchResizableSidebarSection, bo as WorkbenchScatterAxis, bp as WorkbenchScatterPlot, bq as WorkbenchScatterPlotProps, br as WorkbenchScatterPoint, bs as WorkbenchScatterThresholds, bt as WorkbenchSelectionTray, bu as WorkbenchSelectionTrayItem, bv as WorkbenchSelectionTrayProps, bw as WorkbenchTableView, bx as WorkbenchTableViewClassNames, by as WorkbenchTableViewColumn, bz as WorkbenchTableViewHeaderContext, bA as WorkbenchTableViewProps, bB as WorkbenchTableViewRenderContext, bC as WorkbenchVisualizationTone } from './WorkbenchRadarMatrix-b50483af5a5d.mjs';
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { MonkeysComponentAttributes, MonkeysDirection, MonkeysEmptyStateVariant,
5
5
  export { defaultMonkeysLocale, enUS, mergeMonkeysLocaleMessages, resolveMonkeysLocale, zhCN } from './locale/index.js';
6
6
  export { M as MonkeysAgentWorkbenchMessages, a as MonkeysBuiltInLocaleId, b as MonkeysDataExplorerMessages, c as MonkeysDialogMessages, d as MonkeysDropdownMenuMessages, e as MonkeysLayoutMessages, f as MonkeysLoadingMessages, g as MonkeysLocale, h as MonkeysLocaleInput, i as MonkeysLocaleMessages, j as MonkeysLocaleMessagesOverride, k as MonkeysMultiSelectMessages, l as MonkeysNumberInputMessages, m as MonkeysPaginationMessages, n as MonkeysPasswordInputMessages, o as MonkeysResolvedLocale, p as MonkeysStepsMessages, q as MonkeysTableMessages, r as MonkeysToastMessages, s as MonkeysToolbarMessages, t as MonkeysWorkbenchMessages } from './types-15efbcf88674.js';
7
7
  export { UnifiedDropdown, UnifiedDropdownClassNames, UnifiedDropdownGroup, UnifiedDropdownMode, UnifiedDropdownOption, UnifiedDropdownPlacement, UnifiedDropdownProps, UnifiedDropdownSlotContext, UnifiedDropdownSlots, UnifiedDropdownValue } from './components/dropdown/index.js';
8
- export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchSidebar, r as AgentWorkbenchSidebarClassNames, s as AgentWorkbenchSidebarIntent, t as AgentWorkbenchSidebarProps, u as AgentWorkbenchTaskDetails, v as AgentWorkbenchTaskDetailsClassNames, w as AgentWorkbenchTaskDetailsProps, x as AgentWorkbenchTerminalModel, y as AgentWorkbenchTool, z as AgentWorkbenchToolClassNames, B as AgentWorkbenchToolProps, C as createAgentWorkbenchActivityModel, D as createAgentWorkbenchDetailsModel } from './details-model-765193fe43be.js';
8
+ export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchSidebar, r as AgentWorkbenchSidebarClassNames, s as AgentWorkbenchSidebarIntent, t as AgentWorkbenchSidebarProps, u as AgentWorkbenchTaskDetails, v as AgentWorkbenchTaskDetailsClassNames, w as AgentWorkbenchTaskDetailsProps, x as AgentWorkbenchTerminalModel, y as AgentWorkbenchTool, z as AgentWorkbenchToolClassNames, B as AgentWorkbenchToolProps, C as createAgentWorkbenchActivityModel, D as createAgentWorkbenchDetailsModel } from './details-model-db4bd679f88e.js';
9
9
  export { LoginPage, LoginPageBackgroundConfig, LoginPageCalloutConfig, LoginPageCheckboxConfig, LoginPageExternalMethodConfig, LoginPageExternalPanelConfig, LoginPageFieldConfig, LoginPageLogoConfig, LoginPageLogoLocation, LoginPageMethodConfig, LoginPageProps } from './components/login/index.js';
10
10
  export { AppHeader, AppHeaderLogo, AppHeaderProps, AppHeaderUser, AppLayout, AppLayoutProps, AppShellSidebar, AppShellSidebarClassNames, AppShellSidebarProps, AppSidebar, AppSidebarProps, HeadbarLayout, HeadbarLayoutMode, HeadbarMenuRadius, HeadbarNavPosition, HeaderTab, LayoutNavItem, NavButton, NavButtonProps, NavigationLayout, NavigationLayoutProps, NavigationMode, SidebarAccount, SidebarNavItem, UserAccountMenu, UserAccountMenuClassNames, UserAccountMenuItem, UserAccountMenuProps, UserAccountMenuRadius, UserAccountMenuSelectorConfig, UserAccountMenuSelectorOption, UserAccountMenuSide, UserAccountMenuTriggerVariant, UserAccountMenuUser, cn } from './components/layout/index.js';
11
11
  export { I as InteractiveTable, a as InteractiveTableClassNames, b as InteractiveTableColumn, c as InteractiveTableColumnMenuLabels, d as InteractiveTableEditableTextCell, e as InteractiveTableEditableTextCellProps, f as InteractiveTableHeaderContext, g as InteractiveTableHeaderProps, h as InteractiveTableProps, i as InteractiveTableReadonlyCell, j as InteractiveTableReadonlyCellProps, k as InteractiveTableRenderContext, l as InteractiveTableRowState, m as InteractiveTableSelectCell, n as InteractiveTableSelectCellProps, o as InteractiveTableSelectOption, W as WorkbenchAssetGallery, p as WorkbenchAssetGalleryItem, q as WorkbenchAssetGalleryProps, r as WorkbenchCollection, s as WorkbenchCollectionActivationEvent, t as WorkbenchCollectionAppearanceConfig, u as WorkbenchCollectionCallbacks, v as WorkbenchCollectionClassNames, w as WorkbenchCollectionConfig, x as WorkbenchCollectionGroupContext, y as WorkbenchCollectionGroupingConfig, z as WorkbenchCollectionHoverEffect, A as WorkbenchCollectionItemConfig, B as WorkbenchCollectionItemContext, C as WorkbenchCollectionItemSize, D as WorkbenchCollectionItemSlotName, E as WorkbenchCollectionItemSlots, F as WorkbenchCollectionItemStatus, G as WorkbenchCollectionItemTitleConfig, H as WorkbenchCollectionKey, J as WorkbenchCollectionLabels, K as WorkbenchCollectionLayoutConfig, L as WorkbenchCollectionLayoutContext, M as WorkbenchCollectionLayoutMode, N as WorkbenchCollectionLayoutSnapshot, O as WorkbenchCollectionLoadingConfig, P as WorkbenchCollectionLoadingVariant, Q as WorkbenchCollectionProps, R as WorkbenchCollectionResponsive, S as WorkbenchCollectionSelectionBehavior, T as WorkbenchCollectionSelectionConfig, U as WorkbenchCollectionSelectionMode, V as WorkbenchCollectionSkeletonConfig, X as WorkbenchCollectionSlotContext, Y as WorkbenchCollectionSlots, Z as WorkbenchCollectionStateConfig, _ as WorkbenchCollectionTitlePlacement, $ as WorkbenchCollectionTitleVisibility, a0 as WorkbenchCollectionVirtualizationAdapter, a1 as WorkbenchCollectionVirtualizationConfig, a2 as WorkbenchCollectionVirtualizationRenderOptions, a3 as WorkbenchContentPane, a4 as WorkbenchContentPaneBodyProps, a5 as WorkbenchContentPaneClassNames, a6 as WorkbenchContentPaneProps, a7 as WorkbenchContentToolbar, a8 as WorkbenchContentToolbarClassNames, a9 as WorkbenchContentToolbarProps, aa as WorkbenchContentToolbarViewModeOption, ab as WorkbenchDetailSidebar, ac as WorkbenchDetailSidebarBodyProps, ad as WorkbenchDetailSidebarClassNames, ae as WorkbenchDetailSidebarField, af as WorkbenchDetailSidebarProps, ag as WorkbenchDetailSidebarRenderContext, ah as WorkbenchDetailSidebarSection, ai as WorkbenchEvidenceItem, aj as WorkbenchEvidenceList, ak as WorkbenchEvidenceListProps, al as WorkbenchGalleryCard, am as WorkbenchGalleryCardMetaContext, an as WorkbenchGalleryCardProps, ao as WorkbenchGalleryCardRenderContext, ap as WorkbenchGalleryColumn, aq as WorkbenchGalleryLabels, ar as WorkbenchGalleryRecordVisual, as as WorkbenchGallerySettingsButton, at as WorkbenchGallerySettingsButtonClassNames, au as WorkbenchGallerySettingsButtonProps, av as WorkbenchGallerySettingsLabels, aw as WorkbenchGallerySettingsOption, ax as WorkbenchGallerySettingsPanel, ay as WorkbenchGallerySettingsPanelClassNames, az as WorkbenchGallerySettingsPanelProps, aA as WorkbenchGallerySettingsValue, aB as WorkbenchGalleryView, aC as WorkbenchGalleryViewProps, aD as WorkbenchJourneyItem, aE as WorkbenchJourneyItemState, aF as WorkbenchJourneyNavigation, aG as WorkbenchJourneyNavigationProps, aH as WorkbenchLaneClassNames, aI as WorkbenchLaneColumn, aJ as WorkbenchLaneRenderCardContext, aK as WorkbenchLaneView, aL as WorkbenchLaneViewProps, aM as WorkbenchMasonryItemSize, aN as WorkbenchMasonryLayout, aO as WorkbenchMasonryLayoutContext, aP as WorkbenchMasonryLayoutProps, aQ as WorkbenchMetricGrid, aR as WorkbenchMetricGridDensity, aS as WorkbenchMetricGridProps, aT as WorkbenchMetricGridVariant, aU as WorkbenchMetricItem, aV as WorkbenchRadarFilterChip, aW as WorkbenchRadarFilterChipProps, aX as WorkbenchRadarFilterRow, aY as WorkbenchRadarFilterRowDisclosureBase, aZ as WorkbenchRadarFilterRowIntegratedDisclosure, a_ as WorkbenchRadarFilterRowProps, a$ as WorkbenchRadarFilterRowSeparateDisclosure, b0 as WorkbenchRadarInspectorSection, b1 as WorkbenchRadarLegendItem, b2 as WorkbenchRadarMatrix, b3 as WorkbenchRadarMatrixProps, b4 as WorkbenchRadarNavigation, b5 as WorkbenchRadarNavigationChild, b6 as WorkbenchRadarNavigationItem, b7 as WorkbenchRadarNavigationProps, b8 as WorkbenchRadarQuadrant, b9 as WorkbenchRadarWorkspace, ba as WorkbenchRadarWorkspaceProps, bb as WorkbenchRankedList, bc as WorkbenchRankedListItem, bd as WorkbenchRankedListMetric, be as WorkbenchRankedListProps, bf as WorkbenchRelationshipEdge, bg as WorkbenchRelationshipGraph, bh as WorkbenchRelationshipGraphProps, bi as WorkbenchRelationshipNode, bj as WorkbenchResizableSidebar, bk as WorkbenchResizableSidebarClassNames, bl as WorkbenchResizableSidebarItem, bm as WorkbenchResizableSidebarProps, bn as WorkbenchResizableSidebarSection, bo as WorkbenchScatterAxis, bp as WorkbenchScatterPlot, bq as WorkbenchScatterPlotProps, br as WorkbenchScatterPoint, bs as WorkbenchScatterThresholds, bt as WorkbenchSelectionTray, bu as WorkbenchSelectionTrayItem, bv as WorkbenchSelectionTrayProps, bw as WorkbenchTableView, bx as WorkbenchTableViewClassNames, by as WorkbenchTableViewColumn, bz as WorkbenchTableViewHeaderContext, bA as WorkbenchTableViewProps, bB as WorkbenchTableViewRenderContext, bC as WorkbenchVisualizationTone } from './WorkbenchRadarMatrix-2ec5e4970f24.js';
package/dist/index.js CHANGED
@@ -2892,6 +2892,9 @@ var HSL_SEMANTIC_ALIASES = {
2892
2892
  "semantic.color.border": "--border",
2893
2893
  "semantic.color.input": "--input",
2894
2894
  "semantic.color.ring": "--ring",
2895
+ "semantic.color.media-surface": "--media-surface",
2896
+ "semantic.color.media-foreground": "--media-foreground",
2897
+ "semantic.color.media-overlay": "--media-overlay",
2895
2898
  "semantic.color.radar-canvas": "--radar-canvas",
2896
2899
  "semantic.color.radar-panel": "--radar-panel",
2897
2900
  "semantic.color.radar-border": "--radar-border",
@@ -18359,7 +18362,7 @@ function CollectionState({
18359
18362
  }
18360
18363
  if (status === "error") {
18361
18364
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-3 px-3 py-8 text-center", children: [
18362
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", role: "alert", children: error }),
18365
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-w-full break-words text-sm text-muted-foreground", role: "alert", children: error }),
18363
18366
  /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", variant: "ghost", size: "sm", className: "gap-1.5 px-0 text-sm text-primary hover:text-primary", onClick: onRetry, children: [
18364
18367
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RefreshCw, { className: "size-3.5", "aria-hidden": "true" }),
18365
18368
  messages.retry
@@ -18463,7 +18466,7 @@ function AgentWorkbenchSidebar({
18463
18466
  };
18464
18467
  const renderSessionItems = (items) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-1", children: items.map((item) => {
18465
18468
  const percent = item.contextUsage && item.contextUsage.maxTokens > 0 ? Math.min(100, Math.round(item.contextUsage.usedTokens / item.contextUsage.maxTokens * 100)) : void 0;
18466
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { "aria-current": item.id === viewModel.selectedSessionItem ? "page" : void 0, className: cn2("group flex w-full 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), children: [
18469
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { "aria-current": item.id === viewModel.selectedSessionItem ? "page" : void 0, 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), children: [
18467
18470
  editingSessionId === item.id ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
18468
18471
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted", children: /* @__PURE__ */ jsxRuntime.jsx(SessionAvatar, { item }) }),
18469
18472
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0 flex-1", children: [
@@ -18492,14 +18495,14 @@ function AgentWorkbenchSidebar({
18492
18495
  ),
18493
18496
  /* @__PURE__ */ jsxRuntime.jsx(SessionMeta, { item, locale })
18494
18497
  ] })
18495
- ] }) : /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: "flex min-w-0 flex-1 items-center gap-3 text-left", onClick: () => onIntent?.({ type: "select-session", sessionId: item.id }), children: [
18498
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", title: item.title, className: "flex min-w-0 flex-1 items-center gap-3 text-left", onClick: () => onIntent?.({ type: "select-session", sessionId: item.id }), children: [
18496
18499
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted", children: /* @__PURE__ */ jsxRuntime.jsx(SessionAvatar, { item }) }),
18497
18500
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0 flex-1", children: [
18498
18501
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate text-sm font-medium", children: item.title }),
18499
18502
  /* @__PURE__ */ jsxRuntime.jsx(SessionMeta, { item, locale })
18500
18503
  ] })
18501
18504
  ] }),
18502
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-1", children: [
18505
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { "data-agent-workbench-item-actions": true, className: "flex shrink-0 items-center gap-1", children: [
18503
18506
  percent !== void 0 && item.status === "idle" ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs text-foreground", "aria-label": messages.contextUsage({ percent }), children: [
18504
18507
  percent,
18505
18508
  "%"
@@ -18551,7 +18554,7 @@ function AgentWorkbenchSidebar({
18551
18554
  headerActions ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center", children: headerActions }) : null
18552
18555
  ] }) : null
18553
18556
  ] }),
18554
- !sessionsOnly ? /* @__PURE__ */ jsxRuntime.jsxs(TabsContent, { value: "agents", className: cn2("mt-0 min-h-0 flex-1 overflow-y-auto px-4 pb-4", classNames?.body), children: [
18557
+ !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: [
18555
18558
  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: [
18556
18559
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4", "aria-hidden": "true" }),
18557
18560
  messages.newAgent
@@ -18562,16 +18565,16 @@ function AgentWorkbenchSidebar({
18562
18565
  "div",
18563
18566
  {
18564
18567
  "aria-current": item.id === viewModel.selectedAgentItem ? "page" : void 0,
18565
- className: cn2("group flex w-full 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),
18568
+ 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),
18566
18569
  children: [
18567
- /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: "flex min-w-0 flex-1 items-center gap-3 text-left", onClick: () => onIntent?.({ type: "select-agent", itemId: item.id }), children: [
18570
+ /* @__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: [
18568
18571
  /* @__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 }) }),
18569
18572
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0 flex-1", children: [
18570
18573
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate text-sm font-medium", children: item.name }),
18571
18574
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate text-xs text-foreground/80", children: item.description || messages.noDescription })
18572
18575
  ] })
18573
18576
  ] }),
18574
- item.builtIn ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-full bg-muted px-1.5 py-1 text-[10px] text-foreground", children: messages.builtIn }) : null,
18577
+ 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,
18575
18578
  viewModel.capabilities.pinAgents ? /* @__PURE__ */ jsxRuntime.jsx(
18576
18579
  Button,
18577
18580
  {
@@ -18599,7 +18602,7 @@ function AgentWorkbenchSidebar({
18599
18602
  item.id
18600
18603
  )) })
18601
18604
  ] }) : null,
18602
- /* @__PURE__ */ jsxRuntime.jsxs(TabsContent, { value: "sessions", className: cn2("mt-0 min-h-0 flex-1 overflow-y-auto px-4 pb-4", classNames?.body), children: [
18605
+ /* @__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: [
18603
18606
  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: [
18604
18607
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SquarePen, { className: "size-4", "aria-hidden": "true" }),
18605
18608
  messages.newSession
@@ -18615,8 +18618,8 @@ function AgentWorkbenchSidebar({
18615
18618
  { id: "agent", label: messages.agents, icon: lucideReact.Bot, items: agentSessions }
18616
18619
  ].map(({ id, label, icon: Icon2, items }) => /* @__PURE__ */ jsxRuntime.jsxs("details", { open: true, "aria-label": label, children: [
18617
18620
  /* @__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: [
18618
- /* @__PURE__ */ jsxRuntime.jsx(Icon2, { className: "size-4 text-muted-foreground", "aria-hidden": "true" }),
18619
- label
18621
+ /* @__PURE__ */ jsxRuntime.jsx(Icon2, { className: "size-4 shrink-0 text-muted-foreground", "aria-hidden": "true" }),
18622
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate", children: label })
18620
18623
  ] }),
18621
18624
  renderSessionItems(items)
18622
18625
  ] }, id)) }) : !sessionsOnly ? renderSessionItems(sessions) : null
@@ -18645,7 +18648,7 @@ function AgentWorkbenchExploreCardMedia({
18645
18648
  "span",
18646
18649
  {
18647
18650
  className: cn2(
18648
- isLogo ? "flex size-full items-center justify-center bg-[var(--monkeys-color-card-dark)] p-5" : "block size-full",
18651
+ isLogo ? "flex size-full items-center justify-center bg-[hsl(var(--monkeys-color-media-surface))] p-5" : "block size-full",
18649
18652
  className
18650
18653
  ),
18651
18654
  children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -18663,10 +18666,19 @@ function AgentWorkbenchExploreCardMedia({
18663
18666
  )
18664
18667
  }
18665
18668
  ),
18666
- showLabel ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "pointer-events-none absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/80 via-black/30 to-transparent px-3 pb-2.5 pt-8 text-white", children: [
18667
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block text-base font-semibold leading-tight", children: item.title }),
18668
- item.subtitle ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-0.5 block text-[11px] leading-tight text-white/75", children: item.subtitle }) : null
18669
- ] }) : null
18669
+ showLabel ? /* @__PURE__ */ jsxRuntime.jsxs(
18670
+ "span",
18671
+ {
18672
+ className: "pointer-events-none absolute inset-x-0 bottom-0 px-3 pb-2.5 pt-8 text-[hsl(var(--monkeys-color-media-foreground))]",
18673
+ style: {
18674
+ backgroundImage: "linear-gradient(to top, hsl(var(--monkeys-color-media-overlay) / 0.8), hsl(var(--monkeys-color-media-overlay) / 0.3), transparent)"
18675
+ },
18676
+ children: [
18677
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block text-base font-semibold leading-tight", children: item.title }),
18678
+ item.subtitle ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-0.5 block text-[11px] leading-tight opacity-75", children: item.subtitle }) : null
18679
+ ]
18680
+ }
18681
+ ) : null
18670
18682
  ] });
18671
18683
  }
18672
18684
  function AgentWorkbenchExploreSidebar({
@@ -18676,6 +18688,7 @@ function AgentWorkbenchExploreSidebar({
18676
18688
  selectedSessionId,
18677
18689
  searchQuery = "",
18678
18690
  loading = false,
18691
+ error,
18679
18692
  showDraftSession = !selectedSessionId,
18680
18693
  defaultGroupId,
18681
18694
  className,
@@ -18754,34 +18767,59 @@ function AgentWorkbenchExploreSidebar({
18754
18767
  }
18755
18768
  )
18756
18769
  ] }),
18757
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-[160px] flex-[0_1_280px] overflow-y-auto px-4 pb-3", children: 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: [
18758
- draftVisible ? /* @__PURE__ */ jsxRuntime.jsx(
18759
- "button",
18760
- {
18761
- type: "button",
18762
- "aria-current": "page",
18763
- className: "block h-10 w-full truncate rounded-[var(--radius)] border border-primary bg-primary/10 px-3 text-left text-sm font-semibold text-foreground",
18764
- onClick: () => onIntent?.({ type: "create-session" }),
18765
- children: labels.draftSession
18766
- }
18767
- ) : null,
18768
- filteredSessions.map((session) => /* @__PURE__ */ jsxRuntime.jsx(
18769
- "button",
18770
- {
18771
- type: "button",
18772
- "aria-current": session.id === selectedSessionId ? "page" : void 0,
18773
- className: "block h-10 w-full truncate rounded-[var(--radius)] border border-transparent bg-muted/60 px-3 text-left text-sm font-semibold text-foreground transition hover:bg-muted aria-[current=page]:border-primary aria-[current=page]:bg-primary/10",
18774
- onClick: () => onIntent?.({ type: "select-session", sessionId: session.id }),
18775
- children: session.title
18776
- },
18777
- session.id
18778
- ))
18779
- ] }) }),
18780
- activeGroup ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "shrink-0 border-t border-border px-4 pb-4 pt-3", children: [
18781
- /* @__PURE__ */ jsxRuntime.jsx(Tabs, { value: activeGroup.id, onValueChange: changeGroup, children: /* @__PURE__ */ jsxRuntime.jsx(
18770
+ /* @__PURE__ */ jsxRuntime.jsx(
18771
+ "div",
18772
+ {
18773
+ "data-agent-workbench-session-scroll-region": true,
18774
+ className: "min-h-[160px] flex-[0_1_280px] overflow-x-hidden overflow-y-auto overscroll-contain px-4 pb-3",
18775
+ 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: [
18776
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { className: "size-5 shrink-0 text-destructive-text", "aria-hidden": "true" }),
18777
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-w-full break-words text-sm text-muted-foreground", children: error }),
18778
+ labels.retry ? /* @__PURE__ */ jsxRuntime.jsxs(
18779
+ Button,
18780
+ {
18781
+ type: "button",
18782
+ variant: "ghost",
18783
+ size: "sm",
18784
+ className: "gap-1.5 text-primary",
18785
+ onClick: () => onIntent?.({ type: "retry-sessions" }),
18786
+ children: [
18787
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RefreshCw, { className: "size-3.5", "aria-hidden": "true" }),
18788
+ labels.retry
18789
+ ]
18790
+ }
18791
+ ) : null
18792
+ ] }) : 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: [
18793
+ draftVisible ? /* @__PURE__ */ jsxRuntime.jsx(
18794
+ "button",
18795
+ {
18796
+ type: "button",
18797
+ "aria-current": "page",
18798
+ 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",
18799
+ onClick: () => onIntent?.({ type: "create-session" }),
18800
+ children: labels.draftSession
18801
+ }
18802
+ ) : null,
18803
+ filteredSessions.map((session) => /* @__PURE__ */ jsxRuntime.jsx(
18804
+ "button",
18805
+ {
18806
+ type: "button",
18807
+ title: session.title,
18808
+ "aria-current": session.id === selectedSessionId ? "page" : void 0,
18809
+ className: "block h-10 w-full min-w-0 truncate rounded-[var(--radius)] border border-transparent bg-muted/60 px-3 text-left text-sm font-semibold text-foreground transition hover:bg-muted aria-[current=page]:border-primary aria-[current=page]:bg-primary/10",
18810
+ onClick: () => onIntent?.({ type: "select-session", sessionId: session.id }),
18811
+ children: session.title
18812
+ },
18813
+ session.id
18814
+ ))
18815
+ ] })
18816
+ }
18817
+ ),
18818
+ 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: [
18819
+ /* @__PURE__ */ jsxRuntime.jsx(
18782
18820
  TabsList,
18783
18821
  {
18784
- className: "grid h-10 w-full rounded-[var(--radius)] bg-muted p-0.5 text-muted-foreground",
18822
+ className: "grid h-10 w-full rounded-[var(--radius)] bg-muted p-0.5 text-foreground",
18785
18823
  style: {
18786
18824
  gridTemplateColumns: `repeat(${groups.length}, minmax(0, 1fr))`
18787
18825
  },
@@ -18789,30 +18827,30 @@ function AgentWorkbenchExploreSidebar({
18789
18827
  TabsTrigger,
18790
18828
  {
18791
18829
  value: group.id,
18792
- className: "rounded-md text-sm font-semibold text-muted-foreground data-[state=active]:border data-[state=active]:border-border data-[state=active]:bg-background data-[state=active]:text-foreground",
18830
+ className: "rounded-md text-sm font-semibold text-foreground data-[state=active]:border data-[state=active]:border-border data-[state=active]:bg-background",
18793
18831
  children: group.label
18794
18832
  },
18795
18833
  group.id
18796
18834
  ))
18797
18835
  }
18798
- ) }),
18799
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 grid grid-cols-2 gap-2", children: activeGroup.items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
18836
+ ),
18837
+ 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(
18800
18838
  "button",
18801
18839
  {
18802
18840
  type: "button",
18803
18841
  "aria-label": item.title,
18804
18842
  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",
18805
- style: Number.isFinite(activeGroup.itemAspectRatio) && Number(activeGroup.itemAspectRatio) > 0 ? { aspectRatio: activeGroup.itemAspectRatio } : void 0,
18843
+ style: Number.isFinite(group.itemAspectRatio) && Number(group.itemAspectRatio) > 0 ? { aspectRatio: group.itemAspectRatio } : void 0,
18806
18844
  onClick: () => onIntent?.({
18807
18845
  type: "select-item",
18808
- groupId: activeGroup.id,
18846
+ groupId: group.id,
18809
18847
  item
18810
18848
  }),
18811
- children: renderItemMedia?.(item, activeGroup) ?? /* @__PURE__ */ jsxRuntime.jsx(AgentWorkbenchExploreCardMedia, { item })
18849
+ children: renderItemMedia?.(item, group) ?? /* @__PURE__ */ jsxRuntime.jsx(AgentWorkbenchExploreCardMedia, { item })
18812
18850
  },
18813
18851
  item.id
18814
- )) })
18815
- ] }) : null
18852
+ )) }) }, group.id))
18853
+ ] }) }) : null
18816
18854
  ]
18817
18855
  }
18818
18856
  );