@inf-monkeys-tech/monkeys-design 1.0.68 → 1.0.69
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 +71 -54
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +72 -56
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/{details-model-db4bd679f88e.d.mts → details-model-49d05d8a4e6d.d.mts} +27 -20
- package/dist/{details-model-db4bd679f88e.d.ts → details-model-49d05d8a4e6d.d.ts} +27 -20
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +70 -54
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +71 -55
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -123,10 +123,36 @@ interface AgentWorkbenchExploreSidebarProps {
|
|
|
123
123
|
}
|
|
124
124
|
declare function AgentWorkbenchExploreCardMedia({ item, src, className, onError, }: AgentWorkbenchExploreCardMediaProps): null | react_jsx_runtime.JSX.Element;
|
|
125
125
|
declare function AgentWorkbenchExploreSidebar({ sessions, groups, labels, selectedSessionId, searchQuery, loading, error, showDraftSession, defaultGroupId, className, renderItemMedia, onIntent, }: AgentWorkbenchExploreSidebarProps): react_jsx_runtime.JSX.Element;
|
|
126
|
+
type SessionEventType = AgentSessionEvent['eventType'];
|
|
127
|
+
type AgentWorkbenchEventOf<Type extends SessionEventType> = Extract<AgentSessionEvent, {
|
|
128
|
+
eventType: Type;
|
|
129
|
+
}>;
|
|
130
|
+
interface AgentWorkbenchActivityModel {
|
|
131
|
+
mode: AgentSessionViewModel['snapshot']['mode'];
|
|
132
|
+
status: AgentSessionViewModel['status'];
|
|
133
|
+
reasoning: AgentWorkbenchEventOf<'reasoning'>[];
|
|
134
|
+
plans: AgentWorkbenchEventOf<'plan'>[];
|
|
135
|
+
tasks: AgentWorkbenchEventOf<'task'>[];
|
|
136
|
+
tools: AgentWorkbenchEventOf<'tool'>[];
|
|
137
|
+
approvals: AgentWorkbenchEventOf<'approval'>[];
|
|
138
|
+
artifacts: AgentWorkbenchEventOf<'artifact'>[];
|
|
139
|
+
usage?: AgentWorkbenchEventOf<'usage'>;
|
|
140
|
+
run?: AgentWorkbenchEventOf<'status'> & {
|
|
141
|
+
resolvedDurationMs?: number;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
declare function createAgentWorkbenchActivityModel(viewModel: AgentSessionViewModel): AgentWorkbenchActivityModel;
|
|
145
|
+
type AgentWorkbenchApprovalData = AgentWorkbenchEventOf<'approval'>['payload'];
|
|
126
146
|
interface AgentWorkbenchApprovalIntent {
|
|
127
147
|
approvalId: string;
|
|
128
148
|
approved: boolean;
|
|
129
149
|
}
|
|
150
|
+
interface AgentWorkbenchApprovalProps {
|
|
151
|
+
approval: AgentWorkbenchApprovalData;
|
|
152
|
+
className?: string;
|
|
153
|
+
onDecision?: (intent: AgentWorkbenchApprovalIntent) => void;
|
|
154
|
+
}
|
|
155
|
+
declare function AgentWorkbenchApproval({ approval, className, onDecision }: AgentWorkbenchApprovalProps): react_jsx_runtime.JSX.Element;
|
|
130
156
|
interface AgentWorkbenchArtifactIntent {
|
|
131
157
|
artifactId: string;
|
|
132
158
|
name: string;
|
|
@@ -198,25 +224,6 @@ interface AgentWorkbenchTaskDetailsProps {
|
|
|
198
224
|
onIntent?: (intent: AgentWorkbenchDetailsIntent) => void;
|
|
199
225
|
}
|
|
200
226
|
declare function AgentWorkbenchTaskDetails({ viewModel, state, activeTab, className, classNames, onActiveTabChange, onIntent, }: AgentWorkbenchTaskDetailsProps): react_jsx_runtime.JSX.Element;
|
|
201
|
-
type SessionEventType = AgentSessionEvent['eventType'];
|
|
202
|
-
type AgentWorkbenchEventOf<Type extends SessionEventType> = Extract<AgentSessionEvent, {
|
|
203
|
-
eventType: Type;
|
|
204
|
-
}>;
|
|
205
|
-
interface AgentWorkbenchActivityModel {
|
|
206
|
-
mode: AgentSessionViewModel['snapshot']['mode'];
|
|
207
|
-
status: AgentSessionViewModel['status'];
|
|
208
|
-
reasoning: AgentWorkbenchEventOf<'reasoning'>[];
|
|
209
|
-
plans: AgentWorkbenchEventOf<'plan'>[];
|
|
210
|
-
tasks: AgentWorkbenchEventOf<'task'>[];
|
|
211
|
-
tools: AgentWorkbenchEventOf<'tool'>[];
|
|
212
|
-
approvals: AgentWorkbenchEventOf<'approval'>[];
|
|
213
|
-
artifacts: AgentWorkbenchEventOf<'artifact'>[];
|
|
214
|
-
usage?: AgentWorkbenchEventOf<'usage'>;
|
|
215
|
-
run?: AgentWorkbenchEventOf<'status'> & {
|
|
216
|
-
resolvedDurationMs?: number;
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
declare function createAgentWorkbenchActivityModel(viewModel: AgentSessionViewModel): AgentWorkbenchActivityModel;
|
|
220
227
|
interface AgentWorkbenchToolClassNames {
|
|
221
228
|
root?: string;
|
|
222
229
|
trigger?: string;
|
|
@@ -263,4 +270,4 @@ interface AgentWorkbenchDetailsModel {
|
|
|
263
270
|
};
|
|
264
271
|
}
|
|
265
272
|
declare function createAgentWorkbenchDetailsModel(viewModel: AgentSessionViewModel): AgentWorkbenchDetailsModel;
|
|
266
|
-
export { AgentWorkbenchActivity as A, type AgentWorkbenchToolProps as B, createAgentWorkbenchActivityModel as C, createAgentWorkbenchDetailsModel as D,
|
|
273
|
+
export { AgentWorkbenchActivity as A, type AgentWorkbenchToolProps as B, createAgentWorkbenchActivityModel as C, createAgentWorkbenchDetailsModel as D, AgentWorkbenchApproval as E, type AgentWorkbenchApprovalData as F, type AgentWorkbenchApprovalProps as G, AgentWorkbenchExploreCardMedia as H, type AgentWorkbenchExploreCardMediaProps as I, type AgentWorkbenchExploreMediaTreatment as J, type AgentWorkbenchExploreMediaVariant as K, type AgentWorkbenchActivityClassNames as a, type AgentWorkbenchActivityModel as b, type AgentWorkbenchActivityProps as c, type AgentWorkbenchApprovalIntent as d, type AgentWorkbenchArtifactIntent as e, type AgentWorkbenchDetailsIntent as f, type AgentWorkbenchDetailsModel as g, type AgentWorkbenchDetailsState as h, type AgentWorkbenchDetailsTab as i, type AgentWorkbenchEventOf as j, type AgentWorkbenchExploreGroup as k, type AgentWorkbenchExploreItem as l, AgentWorkbenchExploreSidebar as m, type AgentWorkbenchExploreSidebarIntent as n, type AgentWorkbenchExploreSidebarLabels as o, type AgentWorkbenchExploreSidebarProps as p, AgentWorkbenchSidebar as q, type AgentWorkbenchSidebarClassNames as r, type AgentWorkbenchSidebarIntent as s, type AgentWorkbenchSidebarProps as t, AgentWorkbenchTaskDetails as u, type AgentWorkbenchTaskDetailsClassNames as v, type AgentWorkbenchTaskDetailsProps as w, type AgentWorkbenchTerminalModel as x, AgentWorkbenchTool as y, type AgentWorkbenchToolClassNames as z };
|
|
@@ -123,10 +123,36 @@ interface AgentWorkbenchExploreSidebarProps {
|
|
|
123
123
|
}
|
|
124
124
|
declare function AgentWorkbenchExploreCardMedia({ item, src, className, onError, }: AgentWorkbenchExploreCardMediaProps): null | react_jsx_runtime.JSX.Element;
|
|
125
125
|
declare function AgentWorkbenchExploreSidebar({ sessions, groups, labels, selectedSessionId, searchQuery, loading, error, showDraftSession, defaultGroupId, className, renderItemMedia, onIntent, }: AgentWorkbenchExploreSidebarProps): react_jsx_runtime.JSX.Element;
|
|
126
|
+
type SessionEventType = AgentSessionEvent['eventType'];
|
|
127
|
+
type AgentWorkbenchEventOf<Type extends SessionEventType> = Extract<AgentSessionEvent, {
|
|
128
|
+
eventType: Type;
|
|
129
|
+
}>;
|
|
130
|
+
interface AgentWorkbenchActivityModel {
|
|
131
|
+
mode: AgentSessionViewModel['snapshot']['mode'];
|
|
132
|
+
status: AgentSessionViewModel['status'];
|
|
133
|
+
reasoning: AgentWorkbenchEventOf<'reasoning'>[];
|
|
134
|
+
plans: AgentWorkbenchEventOf<'plan'>[];
|
|
135
|
+
tasks: AgentWorkbenchEventOf<'task'>[];
|
|
136
|
+
tools: AgentWorkbenchEventOf<'tool'>[];
|
|
137
|
+
approvals: AgentWorkbenchEventOf<'approval'>[];
|
|
138
|
+
artifacts: AgentWorkbenchEventOf<'artifact'>[];
|
|
139
|
+
usage?: AgentWorkbenchEventOf<'usage'>;
|
|
140
|
+
run?: AgentWorkbenchEventOf<'status'> & {
|
|
141
|
+
resolvedDurationMs?: number;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
declare function createAgentWorkbenchActivityModel(viewModel: AgentSessionViewModel): AgentWorkbenchActivityModel;
|
|
145
|
+
type AgentWorkbenchApprovalData = AgentWorkbenchEventOf<'approval'>['payload'];
|
|
126
146
|
interface AgentWorkbenchApprovalIntent {
|
|
127
147
|
approvalId: string;
|
|
128
148
|
approved: boolean;
|
|
129
149
|
}
|
|
150
|
+
interface AgentWorkbenchApprovalProps {
|
|
151
|
+
approval: AgentWorkbenchApprovalData;
|
|
152
|
+
className?: string;
|
|
153
|
+
onDecision?: (intent: AgentWorkbenchApprovalIntent) => void;
|
|
154
|
+
}
|
|
155
|
+
declare function AgentWorkbenchApproval({ approval, className, onDecision }: AgentWorkbenchApprovalProps): react_jsx_runtime.JSX.Element;
|
|
130
156
|
interface AgentWorkbenchArtifactIntent {
|
|
131
157
|
artifactId: string;
|
|
132
158
|
name: string;
|
|
@@ -198,25 +224,6 @@ interface AgentWorkbenchTaskDetailsProps {
|
|
|
198
224
|
onIntent?: (intent: AgentWorkbenchDetailsIntent) => void;
|
|
199
225
|
}
|
|
200
226
|
declare function AgentWorkbenchTaskDetails({ viewModel, state, activeTab, className, classNames, onActiveTabChange, onIntent, }: AgentWorkbenchTaskDetailsProps): react_jsx_runtime.JSX.Element;
|
|
201
|
-
type SessionEventType = AgentSessionEvent['eventType'];
|
|
202
|
-
type AgentWorkbenchEventOf<Type extends SessionEventType> = Extract<AgentSessionEvent, {
|
|
203
|
-
eventType: Type;
|
|
204
|
-
}>;
|
|
205
|
-
interface AgentWorkbenchActivityModel {
|
|
206
|
-
mode: AgentSessionViewModel['snapshot']['mode'];
|
|
207
|
-
status: AgentSessionViewModel['status'];
|
|
208
|
-
reasoning: AgentWorkbenchEventOf<'reasoning'>[];
|
|
209
|
-
plans: AgentWorkbenchEventOf<'plan'>[];
|
|
210
|
-
tasks: AgentWorkbenchEventOf<'task'>[];
|
|
211
|
-
tools: AgentWorkbenchEventOf<'tool'>[];
|
|
212
|
-
approvals: AgentWorkbenchEventOf<'approval'>[];
|
|
213
|
-
artifacts: AgentWorkbenchEventOf<'artifact'>[];
|
|
214
|
-
usage?: AgentWorkbenchEventOf<'usage'>;
|
|
215
|
-
run?: AgentWorkbenchEventOf<'status'> & {
|
|
216
|
-
resolvedDurationMs?: number;
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
declare function createAgentWorkbenchActivityModel(viewModel: AgentSessionViewModel): AgentWorkbenchActivityModel;
|
|
220
227
|
interface AgentWorkbenchToolClassNames {
|
|
221
228
|
root?: string;
|
|
222
229
|
trigger?: string;
|
|
@@ -263,4 +270,4 @@ interface AgentWorkbenchDetailsModel {
|
|
|
263
270
|
};
|
|
264
271
|
}
|
|
265
272
|
declare function createAgentWorkbenchDetailsModel(viewModel: AgentSessionViewModel): AgentWorkbenchDetailsModel;
|
|
266
|
-
export { AgentWorkbenchActivity as A, type AgentWorkbenchToolProps as B, createAgentWorkbenchActivityModel as C, createAgentWorkbenchDetailsModel as D,
|
|
273
|
+
export { AgentWorkbenchActivity as A, type AgentWorkbenchToolProps as B, createAgentWorkbenchActivityModel as C, createAgentWorkbenchDetailsModel as D, AgentWorkbenchApproval as E, type AgentWorkbenchApprovalData as F, type AgentWorkbenchApprovalProps as G, AgentWorkbenchExploreCardMedia as H, type AgentWorkbenchExploreCardMediaProps as I, type AgentWorkbenchExploreMediaTreatment as J, type AgentWorkbenchExploreMediaVariant as K, type AgentWorkbenchActivityClassNames as a, type AgentWorkbenchActivityModel as b, type AgentWorkbenchActivityProps as c, type AgentWorkbenchApprovalIntent as d, type AgentWorkbenchArtifactIntent as e, type AgentWorkbenchDetailsIntent as f, type AgentWorkbenchDetailsModel as g, type AgentWorkbenchDetailsState as h, type AgentWorkbenchDetailsTab as i, type AgentWorkbenchEventOf as j, type AgentWorkbenchExploreGroup as k, type AgentWorkbenchExploreItem as l, AgentWorkbenchExploreSidebar as m, type AgentWorkbenchExploreSidebarIntent as n, type AgentWorkbenchExploreSidebarLabels as o, type AgentWorkbenchExploreSidebarProps as p, AgentWorkbenchSidebar as q, type AgentWorkbenchSidebarClassNames as r, type AgentWorkbenchSidebarIntent as s, type AgentWorkbenchSidebarProps as t, AgentWorkbenchTaskDetails as u, type AgentWorkbenchTaskDetailsClassNames as v, type AgentWorkbenchTaskDetailsProps as w, type AgentWorkbenchTerminalModel as x, AgentWorkbenchTool as y, type AgentWorkbenchToolClassNames as z };
|
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 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-
|
|
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-49d05d8a4e6d.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 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-
|
|
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-49d05d8a4e6d.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
|
@@ -18974,7 +18974,70 @@ function createAgentWorkbenchActivityModel(viewModel) {
|
|
|
18974
18974
|
run: projectRun(visibleEvents)
|
|
18975
18975
|
};
|
|
18976
18976
|
}
|
|
18977
|
-
function JsonValue({ value
|
|
18977
|
+
function JsonValue({ value }) {
|
|
18978
|
+
if (value === void 0) return null;
|
|
18979
|
+
const content = typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
18980
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18981
|
+
"pre",
|
|
18982
|
+
{
|
|
18983
|
+
className: "max-h-64 overflow-auto whitespace-pre-wrap break-words rounded-md bg-muted p-3 font-mono text-xs text-foreground",
|
|
18984
|
+
tabIndex: 0,
|
|
18985
|
+
children: content
|
|
18986
|
+
}
|
|
18987
|
+
);
|
|
18988
|
+
}
|
|
18989
|
+
function AgentWorkbenchApproval({ approval, className, onDecision }) {
|
|
18990
|
+
const messages = useMonkeysLocaleMessages().agentWorkbench.approval;
|
|
18991
|
+
const requested = approval.status === "requested";
|
|
18992
|
+
const approved = approval.status === "approved";
|
|
18993
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18994
|
+
"article",
|
|
18995
|
+
{
|
|
18996
|
+
className: cn2("rounded-lg border border-border bg-card p-3 text-card-foreground", className),
|
|
18997
|
+
"data-agent-approval-status": approval.status,
|
|
18998
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18999
|
+
requested ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock3, { className: "mt-0.5 size-4 shrink-0", "aria-hidden": "true" }) : approved ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "mt-0.5 size-4 shrink-0 text-primary", "aria-hidden": "true" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "mt-0.5 size-4 shrink-0 text-destructive-text", "aria-hidden": "true" }),
|
|
19000
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
19001
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "break-words text-sm font-medium", children: approval.title }),
|
|
19002
|
+
approval.description ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 whitespace-pre-wrap break-words text-sm text-muted-foreground", children: approval.description }) : null,
|
|
19003
|
+
approval.requestedAction !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 min-w-0", children: /* @__PURE__ */ jsxRuntime.jsx(JsonValue, { value: approval.requestedAction }) }) : null,
|
|
19004
|
+
requested ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-3 flex flex-wrap gap-2", children: [
|
|
19005
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19006
|
+
Button,
|
|
19007
|
+
{
|
|
19008
|
+
type: "button",
|
|
19009
|
+
size: "sm",
|
|
19010
|
+
className: "h-auto px-3 py-1.5 text-sm",
|
|
19011
|
+
disabled: !onDecision,
|
|
19012
|
+
onClick: () => onDecision?.({
|
|
19013
|
+
approvalId: approval.approvalId,
|
|
19014
|
+
approved: true
|
|
19015
|
+
}),
|
|
19016
|
+
children: messages.approve
|
|
19017
|
+
}
|
|
19018
|
+
),
|
|
19019
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19020
|
+
Button,
|
|
19021
|
+
{
|
|
19022
|
+
type: "button",
|
|
19023
|
+
variant: "outline",
|
|
19024
|
+
size: "sm",
|
|
19025
|
+
className: "h-auto px-3 py-1.5 text-sm",
|
|
19026
|
+
disabled: !onDecision,
|
|
19027
|
+
onClick: () => onDecision?.({
|
|
19028
|
+
approvalId: approval.approvalId,
|
|
19029
|
+
approved: false
|
|
19030
|
+
}),
|
|
19031
|
+
children: messages.reject
|
|
19032
|
+
}
|
|
19033
|
+
)
|
|
19034
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-xs text-muted-foreground", children: approved ? messages.approved : messages.rejected })
|
|
19035
|
+
] })
|
|
19036
|
+
] })
|
|
19037
|
+
}
|
|
19038
|
+
);
|
|
19039
|
+
}
|
|
19040
|
+
function JsonValue2({ value, className }) {
|
|
18978
19041
|
if (value === void 0) return null;
|
|
18979
19042
|
const content = typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
18980
19043
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -19061,11 +19124,11 @@ function AgentWorkbenchTool({
|
|
|
19061
19124
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn2("space-y-3 border-t border-border px-3 py-3 text-sm", classNames?.content), children: [
|
|
19062
19125
|
event.payload.input !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
19063
19126
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-medium text-muted-foreground", children: messages.input }),
|
|
19064
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19127
|
+
/* @__PURE__ */ jsxRuntime.jsx(JsonValue2, { value: event.payload.input, className: classNames?.input })
|
|
19065
19128
|
] }) : null,
|
|
19066
19129
|
event.payload.output !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
19067
19130
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-medium text-muted-foreground", children: messages.output }),
|
|
19068
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19131
|
+
/* @__PURE__ */ jsxRuntime.jsx(JsonValue2, { value: event.payload.output, className: classNames?.output })
|
|
19069
19132
|
] }) : null,
|
|
19070
19133
|
event.payload.error ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive-text", role: "alert", children: event.payload.error }) : null
|
|
19071
19134
|
] })
|
|
@@ -19138,11 +19201,6 @@ function StatusIcon({ status }) {
|
|
|
19138
19201
|
}
|
|
19139
19202
|
return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "size-4 text-muted-foreground", "aria-hidden": "true" });
|
|
19140
19203
|
}
|
|
19141
|
-
function JsonValue2({ value }) {
|
|
19142
|
-
if (value === void 0) return null;
|
|
19143
|
-
const content = typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
19144
|
-
return /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "max-h-64 overflow-auto whitespace-pre-wrap break-words rounded-md bg-muted p-3 font-mono text-xs text-foreground", children: content });
|
|
19145
|
-
}
|
|
19146
19204
|
function formatDuration2(durationMs) {
|
|
19147
19205
|
if (durationMs < 1e3) return "<1s";
|
|
19148
19206
|
const totalSeconds = Math.floor(durationMs / 1e3);
|
|
@@ -19268,54 +19326,12 @@ function AgentWorkbenchActivity({
|
|
|
19268
19326
|
event.payload.toolCallId
|
|
19269
19327
|
)),
|
|
19270
19328
|
approvals.map((event) => {
|
|
19271
|
-
const requested = event.payload.status === "requested";
|
|
19272
|
-
const approved = event.payload.status === "approved";
|
|
19273
19329
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19274
|
-
|
|
19330
|
+
AgentWorkbenchApproval,
|
|
19275
19331
|
{
|
|
19276
|
-
|
|
19277
|
-
|
|
19278
|
-
|
|
19279
|
-
),
|
|
19280
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
19281
|
-
requested ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock3, { className: "mt-0.5 size-4 shrink-0", "aria-hidden": "true" }) : approved ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "mt-0.5 size-4 shrink-0 text-primary", "aria-hidden": "true" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "mt-0.5 size-4 shrink-0 text-destructive-text", "aria-hidden": "true" }),
|
|
19282
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
19283
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-sm font-medium", children: event.payload.title }),
|
|
19284
|
-
event.payload.description ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: event.payload.description }) : null,
|
|
19285
|
-
event.payload.requestedAction !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3", children: /* @__PURE__ */ jsxRuntime.jsx(JsonValue2, { value: event.payload.requestedAction }) }) : null,
|
|
19286
|
-
requested ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-3 flex flex-wrap gap-2", children: [
|
|
19287
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19288
|
-
Button,
|
|
19289
|
-
{
|
|
19290
|
-
type: "button",
|
|
19291
|
-
size: "sm",
|
|
19292
|
-
className: "h-auto px-3 py-1.5 text-sm",
|
|
19293
|
-
disabled: !onApprovalDecision,
|
|
19294
|
-
onClick: () => onApprovalDecision?.({
|
|
19295
|
-
approvalId: event.payload.approvalId,
|
|
19296
|
-
approved: true
|
|
19297
|
-
}),
|
|
19298
|
-
children: messages.approval.approve
|
|
19299
|
-
}
|
|
19300
|
-
),
|
|
19301
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19302
|
-
Button,
|
|
19303
|
-
{
|
|
19304
|
-
type: "button",
|
|
19305
|
-
variant: "outline",
|
|
19306
|
-
size: "sm",
|
|
19307
|
-
className: "h-auto px-3 py-1.5 text-sm",
|
|
19308
|
-
disabled: !onApprovalDecision,
|
|
19309
|
-
onClick: () => onApprovalDecision?.({
|
|
19310
|
-
approvalId: event.payload.approvalId,
|
|
19311
|
-
approved: false
|
|
19312
|
-
}),
|
|
19313
|
-
children: messages.approval.reject
|
|
19314
|
-
}
|
|
19315
|
-
)
|
|
19316
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-xs text-muted-foreground", children: approved ? messages.approval.approved : messages.approval.rejected })
|
|
19317
|
-
] })
|
|
19318
|
-
] })
|
|
19332
|
+
approval: event.payload,
|
|
19333
|
+
className: classNames?.approval,
|
|
19334
|
+
onDecision: onApprovalDecision
|
|
19319
19335
|
},
|
|
19320
19336
|
event.payload.approvalId
|
|
19321
19337
|
);
|