@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.
- package/dist/components/agent-workbench/index.d.mts +2 -2
- package/dist/components/agent-workbench/index.d.ts +2 -2
- package/dist/components/agent-workbench/index.js +43 -27
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +43 -27
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/{details-model-36bc59186950.d.mts → details-model-90adf27b0674.d.mts} +6 -4
- package/dist/{details-model-36bc59186950.d.ts → details-model-90adf27b0674.d.ts} +6 -4
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +43 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -27
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { AgentWorkbenchNavigationViewModel, AgentWorkbenchSessionItem, AgentSessionViewModel, AgentSessionEvent, AgentSessionCapabilities } from '@inf-monkeys-tech/monkeys';
|
|
2
|
+
import { AgentWorkbenchNavigationViewModel, AgentWorkbenchSidebarConfig, AgentWorkbenchSessionItem, AgentSessionViewModel, AgentSessionEvent, AgentSessionCapabilities } from '@inf-monkeys-tech/monkeys';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ReactNode, HTMLAttributes, ReactEventHandler } from 'react';
|
|
5
5
|
type AgentWorkbenchSidebarIntent = {
|
|
@@ -53,6 +53,7 @@ interface AgentWorkbenchSidebarClassNames {
|
|
|
53
53
|
interface AgentWorkbenchSidebarProps {
|
|
54
54
|
viewModel: AgentWorkbenchNavigationViewModel;
|
|
55
55
|
navigationMode?: 'agents-and-sessions' | 'sessions-only';
|
|
56
|
+
config?: AgentWorkbenchSidebarConfig;
|
|
56
57
|
header?: ReactNode;
|
|
57
58
|
headerActions?: ReactNode;
|
|
58
59
|
footer?: ReactNode;
|
|
@@ -60,7 +61,7 @@ interface AgentWorkbenchSidebarProps {
|
|
|
60
61
|
classNames?: AgentWorkbenchSidebarClassNames;
|
|
61
62
|
onIntent?: (intent: AgentWorkbenchSidebarIntent) => void;
|
|
62
63
|
}
|
|
63
|
-
declare function AgentWorkbenchSidebar({ viewModel, navigationMode, header, headerActions, footer, className, classNames, onIntent, }: AgentWorkbenchSidebarProps): react_jsx_runtime.JSX.Element;
|
|
64
|
+
declare function AgentWorkbenchSidebar({ viewModel, navigationMode, config, header, headerActions, footer, className, classNames, onIntent, }: AgentWorkbenchSidebarProps): react_jsx_runtime.JSX.Element;
|
|
64
65
|
interface AgentWorkbenchSidebarContainerClassNames {
|
|
65
66
|
root?: string;
|
|
66
67
|
header?: string;
|
|
@@ -147,7 +148,8 @@ type AgentWorkbenchExploreSidebarIntent = {
|
|
|
147
148
|
};
|
|
148
149
|
interface AgentWorkbenchExploreSidebarProps {
|
|
149
150
|
sessions: AgentWorkbenchSessionItem[];
|
|
150
|
-
groups
|
|
151
|
+
groups?: AgentWorkbenchExploreGroup[];
|
|
152
|
+
config?: AgentWorkbenchSidebarConfig;
|
|
151
153
|
labels: AgentWorkbenchExploreSidebarLabels;
|
|
152
154
|
selectedSessionId?: string;
|
|
153
155
|
searchQuery?: string;
|
|
@@ -163,7 +165,7 @@ interface AgentWorkbenchExploreSidebarProps {
|
|
|
163
165
|
onIntent?: (intent: AgentWorkbenchExploreSidebarIntent) => void;
|
|
164
166
|
}
|
|
165
167
|
declare function AgentWorkbenchExploreCardMedia({ item, src, className, onError, }: AgentWorkbenchExploreCardMediaProps): null | react_jsx_runtime.JSX.Element;
|
|
166
|
-
declare function AgentWorkbenchExploreSidebar({ sessions, groups, labels, selectedSessionId, searchQuery, loading, error, showDraftSession, deleteSessions, defaultGroupId, header, footer, className, renderItemMedia, onIntent, }: AgentWorkbenchExploreSidebarProps): react_jsx_runtime.JSX.Element;
|
|
168
|
+
declare function AgentWorkbenchExploreSidebar({ sessions, groups: configuredGroups, config, labels, selectedSessionId, searchQuery, loading, error, showDraftSession, deleteSessions, defaultGroupId, header, footer, className, renderItemMedia, onIntent, }: AgentWorkbenchExploreSidebarProps): react_jsx_runtime.JSX.Element;
|
|
167
169
|
type SessionEventType = AgentSessionEvent['eventType'];
|
|
168
170
|
type AgentWorkbenchEventOf<Type extends SessionEventType> = Extract<AgentSessionEvent, {
|
|
169
171
|
eventType: Type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { AgentWorkbenchNavigationViewModel, AgentWorkbenchSessionItem, AgentSessionViewModel, AgentSessionEvent, AgentSessionCapabilities } from '@inf-monkeys-tech/monkeys';
|
|
2
|
+
import { AgentWorkbenchNavigationViewModel, AgentWorkbenchSidebarConfig, AgentWorkbenchSessionItem, AgentSessionViewModel, AgentSessionEvent, AgentSessionCapabilities } from '@inf-monkeys-tech/monkeys';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ReactNode, HTMLAttributes, ReactEventHandler } from 'react';
|
|
5
5
|
type AgentWorkbenchSidebarIntent = {
|
|
@@ -53,6 +53,7 @@ interface AgentWorkbenchSidebarClassNames {
|
|
|
53
53
|
interface AgentWorkbenchSidebarProps {
|
|
54
54
|
viewModel: AgentWorkbenchNavigationViewModel;
|
|
55
55
|
navigationMode?: 'agents-and-sessions' | 'sessions-only';
|
|
56
|
+
config?: AgentWorkbenchSidebarConfig;
|
|
56
57
|
header?: ReactNode;
|
|
57
58
|
headerActions?: ReactNode;
|
|
58
59
|
footer?: ReactNode;
|
|
@@ -60,7 +61,7 @@ interface AgentWorkbenchSidebarProps {
|
|
|
60
61
|
classNames?: AgentWorkbenchSidebarClassNames;
|
|
61
62
|
onIntent?: (intent: AgentWorkbenchSidebarIntent) => void;
|
|
62
63
|
}
|
|
63
|
-
declare function AgentWorkbenchSidebar({ viewModel, navigationMode, header, headerActions, footer, className, classNames, onIntent, }: AgentWorkbenchSidebarProps): react_jsx_runtime.JSX.Element;
|
|
64
|
+
declare function AgentWorkbenchSidebar({ viewModel, navigationMode, config, header, headerActions, footer, className, classNames, onIntent, }: AgentWorkbenchSidebarProps): react_jsx_runtime.JSX.Element;
|
|
64
65
|
interface AgentWorkbenchSidebarContainerClassNames {
|
|
65
66
|
root?: string;
|
|
66
67
|
header?: string;
|
|
@@ -147,7 +148,8 @@ type AgentWorkbenchExploreSidebarIntent = {
|
|
|
147
148
|
};
|
|
148
149
|
interface AgentWorkbenchExploreSidebarProps {
|
|
149
150
|
sessions: AgentWorkbenchSessionItem[];
|
|
150
|
-
groups
|
|
151
|
+
groups?: AgentWorkbenchExploreGroup[];
|
|
152
|
+
config?: AgentWorkbenchSidebarConfig;
|
|
151
153
|
labels: AgentWorkbenchExploreSidebarLabels;
|
|
152
154
|
selectedSessionId?: string;
|
|
153
155
|
searchQuery?: string;
|
|
@@ -163,7 +165,7 @@ interface AgentWorkbenchExploreSidebarProps {
|
|
|
163
165
|
onIntent?: (intent: AgentWorkbenchExploreSidebarIntent) => void;
|
|
164
166
|
}
|
|
165
167
|
declare function AgentWorkbenchExploreCardMedia({ item, src, className, onError, }: AgentWorkbenchExploreCardMediaProps): null | react_jsx_runtime.JSX.Element;
|
|
166
|
-
declare function AgentWorkbenchExploreSidebar({ sessions, groups, labels, selectedSessionId, searchQuery, loading, error, showDraftSession, deleteSessions, defaultGroupId, header, footer, className, renderItemMedia, onIntent, }: AgentWorkbenchExploreSidebarProps): react_jsx_runtime.JSX.Element;
|
|
168
|
+
declare function AgentWorkbenchExploreSidebar({ sessions, groups: configuredGroups, config, labels, selectedSessionId, searchQuery, loading, error, showDraftSession, deleteSessions, defaultGroupId, header, footer, className, renderItemMedia, onIntent, }: AgentWorkbenchExploreSidebarProps): react_jsx_runtime.JSX.Element;
|
|
167
169
|
type SessionEventType = AgentSessionEvent['eventType'];
|
|
168
170
|
type AgentWorkbenchEventOf<Type extends SessionEventType> = Extract<AgentSessionEvent, {
|
|
169
171
|
eventType: Type;
|
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-340390798922.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 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-
|
|
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 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';
|
|
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-340390798922.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 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-
|
|
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 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';
|
|
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
|
@@ -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
|
|
|
@@ -18492,7 +18493,8 @@ function SessionActions({
|
|
|
18492
18493
|
}
|
|
18493
18494
|
function AgentWorkbenchSidebar({
|
|
18494
18495
|
viewModel,
|
|
18495
|
-
navigationMode
|
|
18496
|
+
navigationMode,
|
|
18497
|
+
config,
|
|
18496
18498
|
header,
|
|
18497
18499
|
headerActions,
|
|
18498
18500
|
footer,
|
|
@@ -18502,7 +18504,11 @@ function AgentWorkbenchSidebar({
|
|
|
18502
18504
|
}) {
|
|
18503
18505
|
const { locale } = useMonkeysLocale();
|
|
18504
18506
|
const messages = useMonkeysLocaleMessages().agentWorkbench.navigation;
|
|
18505
|
-
const
|
|
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");
|
|
18506
18512
|
const searchRef = React4.useRef(null);
|
|
18507
18513
|
const renameInputRef = React4.useRef(null);
|
|
18508
18514
|
const [editingSessionId, setEditingSessionId] = React4.useState();
|
|
@@ -18602,7 +18608,7 @@ function AgentWorkbenchSidebar({
|
|
|
18602
18608
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18603
18609
|
Tabs,
|
|
18604
18610
|
{
|
|
18605
|
-
value: sessionsOnly ? "sessions" : viewModel.activeTab,
|
|
18611
|
+
value: sessionsOnly || !showAgents ? "sessions" : viewModel.activeTab,
|
|
18606
18612
|
onValueChange: (value) => {
|
|
18607
18613
|
if (!sessionsOnly && (value === "agents" || value === "sessions")) onIntent?.({ type: "change-tab", tab: value });
|
|
18608
18614
|
},
|
|
@@ -18610,9 +18616,10 @@ function AgentWorkbenchSidebar({
|
|
|
18610
18616
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18611
18617
|
AgentWorkbenchSidebarContainer,
|
|
18612
18618
|
{
|
|
18619
|
+
"data-sidebar-width-percent": resolvedConfig.widthPercent,
|
|
18613
18620
|
"aria-label": messages.tabsLabel,
|
|
18614
|
-
header,
|
|
18615
|
-
search: /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: cn2("h-10 rounded-lg bg-card", classNames?.search), children: [
|
|
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: [
|
|
18616
18623
|
/* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4", "aria-hidden": "true" }) }),
|
|
18617
18624
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18618
18625
|
InputGroupInput,
|
|
@@ -18632,15 +18639,15 @@ function AgentWorkbenchSidebar({
|
|
|
18632
18639
|
}
|
|
18633
18640
|
),
|
|
18634
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" }) })
|
|
18635
|
-
] }),
|
|
18636
|
-
actions:
|
|
18637
|
-
|
|
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: [
|
|
18638
18645
|
/* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "agents", children: messages.agents }),
|
|
18639
18646
|
/* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "sessions", children: messages.sessions })
|
|
18640
18647
|
] }) : null,
|
|
18641
18648
|
headerActions ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center", children: headerActions }) : null
|
|
18642
18649
|
] }) : void 0,
|
|
18643
|
-
footer: !sessionsOnly && viewModel.capabilities.manageAgentSettings || footer ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn2("border-t border-border p-4", classNames?.footer), children: [
|
|
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: [
|
|
18644
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: [
|
|
18645
18652
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "size-4", "aria-hidden": "true" }),
|
|
18646
18653
|
messages.settings
|
|
@@ -18651,7 +18658,7 @@ function AgentWorkbenchSidebar({
|
|
|
18651
18658
|
className,
|
|
18652
18659
|
classNames: { root: classNames?.root, body: "flex min-h-0 flex-1 flex-col p-0" },
|
|
18653
18660
|
children: [
|
|
18654
|
-
|
|
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: [
|
|
18655
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: [
|
|
18656
18663
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4", "aria-hidden": "true" }),
|
|
18657
18664
|
messages.newAgent
|
|
@@ -18699,8 +18706,8 @@ function AgentWorkbenchSidebar({
|
|
|
18699
18706
|
item.id
|
|
18700
18707
|
)) })
|
|
18701
18708
|
] }) : null,
|
|
18702
|
-
/* @__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: [
|
|
18703
|
-
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: [
|
|
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: [
|
|
18704
18711
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.SquarePen, { className: "size-4", "aria-hidden": "true" }),
|
|
18705
18712
|
messages.newSession
|
|
18706
18713
|
] }) : null,
|
|
@@ -18720,7 +18727,7 @@ function AgentWorkbenchSidebar({
|
|
|
18720
18727
|
] }),
|
|
18721
18728
|
renderSessionItems(items)
|
|
18722
18729
|
] }, id)) }) : !sessionsOnly ? renderSessionItems(sessions) : null
|
|
18723
|
-
] })
|
|
18730
|
+
] }) : null
|
|
18724
18731
|
]
|
|
18725
18732
|
}
|
|
18726
18733
|
)
|
|
@@ -18778,7 +18785,8 @@ function AgentWorkbenchExploreCardMedia({
|
|
|
18778
18785
|
}
|
|
18779
18786
|
function AgentWorkbenchExploreSidebar({
|
|
18780
18787
|
sessions,
|
|
18781
|
-
groups,
|
|
18788
|
+
groups: configuredGroups,
|
|
18789
|
+
config,
|
|
18782
18790
|
labels,
|
|
18783
18791
|
selectedSessionId,
|
|
18784
18792
|
searchQuery = "",
|
|
@@ -18795,8 +18803,15 @@ function AgentWorkbenchExploreSidebar({
|
|
|
18795
18803
|
}) {
|
|
18796
18804
|
const navigationMessages = useMonkeysLocaleMessages().agentWorkbench.navigation;
|
|
18797
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;
|
|
18798
18813
|
const [activeGroupId, setActiveGroupId] = React4.useState(
|
|
18799
|
-
|
|
18814
|
+
resolvedDefaultGroupId ?? groups[0]?.id ?? ""
|
|
18800
18815
|
);
|
|
18801
18816
|
const activeGroup = groups.find((group) => group.id === activeGroupId) ?? groups[0];
|
|
18802
18817
|
const normalizedQuery = searchQuery.trim().toLocaleLowerCase();
|
|
@@ -18809,8 +18824,8 @@ function AgentWorkbenchExploreSidebar({
|
|
|
18809
18824
|
);
|
|
18810
18825
|
React4.useEffect(() => {
|
|
18811
18826
|
if (groups.some((group) => group.id === activeGroupId)) return;
|
|
18812
|
-
setActiveGroupId(
|
|
18813
|
-
}, [activeGroupId,
|
|
18827
|
+
setActiveGroupId(resolvedDefaultGroupId ?? groups[0]?.id ?? "");
|
|
18828
|
+
}, [activeGroupId, groups, resolvedDefaultGroupId]);
|
|
18814
18829
|
React4.useEffect(() => {
|
|
18815
18830
|
const handleShortcut = (event) => {
|
|
18816
18831
|
if (!(event.ctrlKey || event.metaKey) || event.key.toLocaleLowerCase() !== "k")
|
|
@@ -18826,8 +18841,8 @@ function AgentWorkbenchExploreSidebar({
|
|
|
18826
18841
|
setActiveGroupId(groupId);
|
|
18827
18842
|
onIntent?.({ type: "change-group", groupId });
|
|
18828
18843
|
};
|
|
18829
|
-
const state = error ? "error" : loading && sessions.length === 0 ? "loading" : filteredSessions.length === 0 && !draftVisible ? "empty" : "ready";
|
|
18830
|
-
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: [
|
|
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: [
|
|
18831
18846
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18832
18847
|
TabsList,
|
|
18833
18848
|
{
|
|
@@ -18861,9 +18876,10 @@ function AgentWorkbenchExploreSidebar({
|
|
|
18861
18876
|
AgentWorkbenchSidebarContainer,
|
|
18862
18877
|
{
|
|
18863
18878
|
"data-sidebar-style": "explore",
|
|
18879
|
+
"data-sidebar-width-percent": resolvedConfig.widthPercent,
|
|
18864
18880
|
"aria-label": labels.navigation,
|
|
18865
|
-
header,
|
|
18866
|
-
search: /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: "h-12 rounded-[var(--radius)] border-border bg-card text-foreground", children: [
|
|
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: [
|
|
18867
18883
|
/* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4 text-muted-foreground", "aria-hidden": "true" }) }),
|
|
18868
18884
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18869
18885
|
InputGroupInput,
|
|
@@ -18878,8 +18894,8 @@ function AgentWorkbenchExploreSidebar({
|
|
|
18878
18894
|
}
|
|
18879
18895
|
),
|
|
18880
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" }) })
|
|
18881
|
-
] }),
|
|
18882
|
-
primaryAction: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18897
|
+
] }) : void 0,
|
|
18898
|
+
primaryAction: visibleSections.has("new-session") ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18883
18899
|
Button,
|
|
18884
18900
|
{
|
|
18885
18901
|
type: "button",
|
|
@@ -18890,9 +18906,9 @@ function AgentWorkbenchExploreSidebar({
|
|
|
18890
18906
|
labels.newSession
|
|
18891
18907
|
]
|
|
18892
18908
|
}
|
|
18893
|
-
),
|
|
18909
|
+
) : void 0,
|
|
18894
18910
|
groups: groupNavigation,
|
|
18895
|
-
footer,
|
|
18911
|
+
footer: visibleSections.has("footer") ? footer : void 0,
|
|
18896
18912
|
status: state,
|
|
18897
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" }) }),
|
|
18898
18914
|
emptyState: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-8 text-center text-sm text-muted-foreground", children: normalizedQuery ? labels.noResults : labels.emptySessions }),
|
|
@@ -18907,7 +18923,7 @@ function AgentWorkbenchExploreSidebar({
|
|
|
18907
18923
|
bodyProps: { "data-agent-workbench-session-scroll-region": "" },
|
|
18908
18924
|
className,
|
|
18909
18925
|
classNames: { body: "min-h-[160px] flex-[0_1_280px] px-4 pb-3" },
|
|
18910
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
18926
|
+
children: visibleSections.has("sessions") ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
18911
18927
|
draftVisible ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
18912
18928
|
"button",
|
|
18913
18929
|
{
|
|
@@ -18965,7 +18981,7 @@ function AgentWorkbenchExploreSidebar({
|
|
|
18965
18981
|
},
|
|
18966
18982
|
session.id
|
|
18967
18983
|
))
|
|
18968
|
-
] })
|
|
18984
|
+
] }) : null
|
|
18969
18985
|
}
|
|
18970
18986
|
);
|
|
18971
18987
|
}
|