@elevasis/ui 1.3.1 → 1.3.2
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/api/index.js +1 -1
- package/dist/auth/guards/AdminGuard.d.ts +32 -0
- package/dist/auth/guards/AdminGuard.d.ts.map +1 -0
- package/dist/auth/guards/ProtectedRoute.d.ts +60 -0
- package/dist/auth/guards/ProtectedRoute.d.ts.map +1 -0
- package/dist/auth/guards/__tests__/AdminGuard.test.d.ts +12 -0
- package/dist/auth/guards/__tests__/AdminGuard.test.d.ts.map +1 -0
- package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts +14 -0
- package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts.map +1 -0
- package/dist/auth/index.d.ts +14 -174
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +1 -1
- package/dist/{chunk-A3MCANC6.js → chunk-6IX5JZEH.js} +110 -50
- package/dist/chunk-GIFAF5ZS.js +313 -0
- package/dist/chunk-JQLT6HBI.js +850 -0
- package/dist/chunk-LFYO3MDC.js +58 -0
- package/dist/{chunk-72HOBFMP.js → chunk-LTQAAIGE.js} +3 -3
- package/dist/{chunk-JBFFCZI4.js → chunk-U34YGJQB.js} +1 -93
- package/dist/components/index.d.ts +1 -1353
- package/dist/components/index.js +1 -20
- package/dist/components/navigation/index.d.ts +2 -32
- package/dist/components/navigation/index.js +1 -29
- package/dist/execution/index.d.ts +63 -231
- package/dist/execution/index.js +1 -4
- package/dist/graph/index.css +0 -1
- package/dist/graph/index.d.ts +4 -203
- package/dist/graph/index.js +1 -1
- package/dist/hooks/command-queue/index.d.ts +7 -0
- package/dist/hooks/command-queue/index.d.ts.map +1 -0
- package/dist/hooks/command-queue/useCommandQueue.d.ts +33 -0
- package/dist/hooks/command-queue/useCommandQueue.d.ts.map +1 -0
- package/dist/hooks/command-queue/useCommandQueueTotals.d.ts +17 -0
- package/dist/hooks/command-queue/useCommandQueueTotals.d.ts.map +1 -0
- package/dist/hooks/command-queue/useDeleteTask.d.ts +5 -0
- package/dist/hooks/command-queue/useDeleteTask.d.ts.map +1 -0
- package/dist/hooks/command-queue/usePatchTask.d.ts +6 -0
- package/dist/hooks/command-queue/usePatchTask.d.ts.map +1 -0
- package/dist/hooks/command-queue/useSubmitAction.d.ts +29 -0
- package/dist/hooks/command-queue/useSubmitAction.d.ts.map +1 -0
- package/dist/hooks/executions/index.d.ts +16 -0
- package/dist/hooks/executions/index.d.ts.map +1 -0
- package/dist/hooks/executions/useBulkDeleteExecutions.d.ts +15 -0
- package/dist/hooks/executions/useBulkDeleteExecutions.d.ts.map +1 -0
- package/dist/hooks/executions/useCancelExecution.d.ts +20 -0
- package/dist/hooks/executions/useCancelExecution.d.ts.map +1 -0
- package/dist/hooks/executions/useDeleteExecution.d.ts +13 -0
- package/dist/hooks/executions/useDeleteExecution.d.ts.map +1 -0
- package/dist/hooks/executions/useExecuteAsync.d.ts +21 -0
- package/dist/hooks/executions/useExecuteAsync.d.ts.map +1 -0
- package/dist/hooks/executions/useExecution.d.ts +10 -0
- package/dist/hooks/executions/useExecution.d.ts.map +1 -0
- package/dist/hooks/executions/useExecutions.d.ts +16 -0
- package/dist/hooks/executions/useExecutions.d.ts.map +1 -0
- package/dist/hooks/executions/useResourceDefinition.d.ts +9 -0
- package/dist/hooks/executions/useResourceDefinition.d.ts.map +1 -0
- package/dist/hooks/executions/useResources.d.ts +15 -0
- package/dist/hooks/executions/useResources.d.ts.map +1 -0
- package/dist/hooks/executions/useRetryExecution.d.ts +16 -0
- package/dist/hooks/executions/useRetryExecution.d.ts.map +1 -0
- package/dist/hooks/feature-access/createUseFeatureAccess.d.ts +44 -0
- package/dist/hooks/feature-access/createUseFeatureAccess.d.ts.map +1 -0
- package/dist/hooks/feature-access/index.d.ts +2 -0
- package/dist/hooks/feature-access/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +11 -4554
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +2 -4
- package/dist/hooks/monitoring/index.d.ts +9 -0
- package/dist/hooks/monitoring/index.d.ts.map +1 -0
- package/dist/hooks/monitoring/useActivities.d.ts +52 -0
- package/dist/hooks/monitoring/useActivities.d.ts.map +1 -0
- package/dist/hooks/monitoring/useCostSummary.d.ts +7 -0
- package/dist/hooks/monitoring/useCostSummary.d.ts.map +1 -0
- package/dist/hooks/monitoring/useExecutionHealth.d.ts +10 -0
- package/dist/hooks/monitoring/useExecutionHealth.d.ts.map +1 -0
- package/dist/hooks/monitoring/useExecutionLogs.d.ts +56 -0
- package/dist/hooks/monitoring/useExecutionLogs.d.ts.map +1 -0
- package/dist/hooks/monitoring/useNotifications.d.ts +11 -0
- package/dist/hooks/monitoring/useNotifications.d.ts.map +1 -0
- package/dist/hooks/notifications/index.d.ts +8 -0
- package/dist/hooks/notifications/index.d.ts.map +1 -0
- package/dist/hooks/notifications/useMarkAllAsRead.d.ts +2 -0
- package/dist/hooks/notifications/useMarkAllAsRead.d.ts.map +1 -0
- package/dist/hooks/notifications/useMarkAsRead.d.ts +2 -0
- package/dist/hooks/notifications/useMarkAsRead.d.ts.map +1 -0
- package/dist/hooks/notifications/useNotificationCount.d.ts +8 -0
- package/dist/hooks/notifications/useNotificationCount.d.ts.map +1 -0
- package/dist/hooks/observability/index.d.ts +19 -0
- package/dist/hooks/observability/index.d.ts.map +1 -0
- package/dist/hooks/observability/useBusinessImpact.d.ts +9 -0
- package/dist/hooks/observability/useBusinessImpact.d.ts.map +1 -0
- package/dist/hooks/observability/useCostBreakdown.d.ts +10 -0
- package/dist/hooks/observability/useCostBreakdown.d.ts.map +1 -0
- package/dist/hooks/observability/useCostByModel.d.ts +3 -0
- package/dist/hooks/observability/useCostByModel.d.ts.map +1 -0
- package/dist/hooks/observability/useCostTrends.d.ts +3 -0
- package/dist/hooks/observability/useCostTrends.d.ts.map +1 -0
- package/dist/hooks/observability/useDashboardMetrics.d.ts +3 -0
- package/dist/hooks/observability/useDashboardMetrics.d.ts.map +1 -0
- package/dist/hooks/observability/useErrorAnalysis.d.ts +7 -0
- package/dist/hooks/observability/useErrorAnalysis.d.ts.map +1 -0
- package/dist/hooks/observability/useErrorDetails.d.ts +20 -0
- package/dist/hooks/observability/useErrorDetails.d.ts.map +1 -0
- package/dist/hooks/observability/useErrorDistribution.d.ts +12 -0
- package/dist/hooks/observability/useErrorDistribution.d.ts.map +1 -0
- package/dist/hooks/observability/useErrorTrends.d.ts +12 -0
- package/dist/hooks/observability/useErrorTrends.d.ts.map +1 -0
- package/dist/hooks/observability/useResolveError.d.ts +17 -0
- package/dist/hooks/observability/useResolveError.d.ts.map +1 -0
- package/dist/hooks/observability/useTopFailingResources.d.ts +13 -0
- package/dist/hooks/observability/useTopFailingResources.d.ts.map +1 -0
- package/dist/hooks/published.d.ts +19 -4279
- package/dist/hooks/published.d.ts.map +1 -0
- package/dist/hooks/published.js +367 -4
- package/dist/hooks/scheduling/index.d.ts +5 -0
- package/dist/hooks/scheduling/index.d.ts.map +1 -0
- package/dist/hooks/scheduling/useSchedules.d.ts +185 -0
- package/dist/hooks/scheduling/useSchedules.d.ts.map +1 -0
- package/dist/hooks/sessions/index.d.ts +8 -0
- package/dist/hooks/sessions/index.d.ts.map +1 -0
- package/dist/hooks/sessions/useSessionExecutions.d.ts +13 -0
- package/dist/hooks/sessions/useSessionExecutions.d.ts.map +1 -0
- package/dist/hooks/sessions/useSessionMessages.d.ts +7 -0
- package/dist/hooks/sessions/useSessionMessages.d.ts.map +1 -0
- package/dist/hooks/sessions/useSessions.d.ts +26 -0
- package/dist/hooks/sessions/useSessions.d.ts.map +1 -0
- package/dist/index.css +0 -118
- package/dist/index.d.ts +15 -7889
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1119 -24
- package/dist/initialization/InitializationProvider.d.ts +48 -0
- package/dist/initialization/InitializationProvider.d.ts.map +1 -0
- package/dist/initialization/hooks/useAppInitialization.d.ts +32 -0
- package/dist/initialization/hooks/useAppInitialization.d.ts.map +1 -0
- package/dist/initialization/index.d.ts +22 -2361
- package/dist/initialization/index.d.ts.map +1 -0
- package/dist/initialization/index.js +1 -1
- package/dist/organization/context/OrganizationProvider.d.ts +20 -0
- package/dist/organization/context/OrganizationProvider.d.ts.map +1 -0
- package/dist/organization/hooks/useOrgInitialization.d.ts +56 -0
- package/dist/organization/hooks/useOrgInitialization.d.ts.map +1 -0
- package/dist/organization/index.d.ts +21 -283
- package/dist/organization/index.d.ts.map +1 -0
- package/dist/organization/index.js +3 -3
- package/dist/profile/context/ProfileProvider.d.ts +27 -0
- package/dist/profile/context/ProfileProvider.d.ts.map +1 -0
- package/dist/profile/hooks/useUserProfile.d.ts +31 -0
- package/dist/profile/hooks/useUserProfile.d.ts.map +1 -0
- package/dist/profile/index.d.ts +14 -2290
- package/dist/profile/index.d.ts.map +1 -0
- package/dist/provider/CoreAuthKitInner.d.ts +12 -0
- package/dist/provider/CoreAuthKitInner.d.ts.map +1 -0
- package/dist/provider/ElevasisCoreProvider.d.ts +39 -0
- package/dist/provider/ElevasisCoreProvider.d.ts.map +1 -0
- package/dist/provider/ElevasisServiceContext.d.ts +31 -0
- package/dist/provider/ElevasisServiceContext.d.ts.map +1 -0
- package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts +2 -0
- package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts.map +1 -0
- package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts +2 -0
- package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts.map +1 -0
- package/dist/provider/index.d.ts +7 -372
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/provider/index.js +6 -6
- package/dist/provider/published.d.ts +9 -263
- package/dist/provider/published.d.ts.map +1 -0
- package/dist/provider/published.js +5 -5
- package/dist/provider/types.d.ts +190 -0
- package/dist/provider/types.d.ts.map +1 -0
- package/dist/sdk-barrel.d.ts +20 -0
- package/dist/sdk-barrel.d.ts.map +1 -0
- package/dist/supabase/index.d.ts +0 -255
- package/dist/theme/cssVariables.d.ts +12 -0
- package/dist/theme/cssVariables.d.ts.map +1 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/presets/__tests__/getPreset.test.d.ts +2 -0
- package/dist/theme/presets/__tests__/getPreset.test.d.ts.map +1 -0
- package/dist/theme/presets/abyss.d.ts +3 -0
- package/dist/theme/presets/abyss.d.ts.map +1 -0
- package/dist/theme/presets/abyss.js +54 -0
- package/dist/theme/presets/aurora.d.ts +8 -0
- package/dist/theme/presets/aurora.d.ts.map +1 -0
- package/dist/theme/presets/aurora.js +59 -0
- package/dist/theme/presets/canopy.d.ts +3 -0
- package/dist/theme/presets/canopy.d.ts.map +1 -0
- package/dist/theme/presets/canopy.js +58 -0
- package/dist/theme/presets/cyber-flux.d.ts +8 -0
- package/dist/theme/presets/cyber-flux.d.ts.map +1 -0
- package/dist/theme/presets/cyber-strike.d.ts +9 -0
- package/dist/theme/presets/cyber-strike.d.ts.map +1 -0
- package/dist/theme/presets/cyber-void.d.ts +8 -0
- package/dist/theme/presets/cyber-void.d.ts.map +1 -0
- package/dist/theme/presets/cyber-volt.d.ts +8 -0
- package/dist/theme/presets/cyber-volt.d.ts.map +1 -0
- package/dist/theme/presets/default.d.ts +4 -0
- package/dist/theme/presets/default.d.ts.map +1 -0
- package/dist/theme/presets/ember.d.ts +8 -0
- package/dist/theme/presets/ember.d.ts.map +1 -0
- package/dist/theme/presets/ember.js +63 -0
- package/dist/theme/presets/honey.d.ts +3 -0
- package/dist/theme/presets/honey.d.ts.map +1 -0
- package/dist/theme/presets/honey.js +62 -0
- package/dist/theme/presets/index.d.ts +6 -0
- package/dist/theme/presets/index.d.ts.map +1 -0
- package/dist/theme/presets/midnight.d.ts +8 -0
- package/dist/theme/presets/midnight.d.ts.map +1 -0
- package/dist/theme/presets/midnight.js +68 -0
- package/dist/theme/presets/obsidian.d.ts +3 -0
- package/dist/theme/presets/obsidian.d.ts.map +1 -0
- package/dist/theme/presets/obsidian.js +56 -0
- package/dist/theme/presets/regal.d.ts +8 -0
- package/dist/theme/presets/regal.d.ts.map +1 -0
- package/dist/theme/presets/rose-gold.d.ts +8 -0
- package/dist/theme/presets/rose-gold.d.ts.map +1 -0
- package/dist/theme/presets/slate.d.ts +3 -0
- package/dist/theme/presets/slate.d.ts.map +1 -0
- package/dist/theme/presets/slate.js +56 -0
- package/dist/theme/presets/tactical.d.ts +8 -0
- package/dist/theme/presets/tactical.d.ts.map +1 -0
- package/dist/theme/presets/types.d.ts +26 -0
- package/dist/theme/presets/types.d.ts.map +1 -0
- package/dist/theme/presets/types.js +1 -0
- package/dist/utils/index.d.ts +1 -22
- package/dist/utils/index.js +1 -1
- package/package.json +67 -51
- package/dist/chunk-3KMDHCAR.js +0 -52
- package/dist/chunk-6BJOYF6E.js +0 -8
- package/dist/chunk-BLO4SISK.js +0 -113
- package/dist/chunk-HUWJXLLF.js +0 -681
- package/dist/chunk-JVAZHVNV.js +0 -110
- package/dist/chunk-JYSYHVLU.js +0 -379
- package/dist/chunk-NE36BUGQ.js +0 -146
- package/dist/chunk-O3PY6B6E.js +0 -749
- package/dist/chunk-OXVOHOP3.js +0 -661
- package/dist/chunk-PSLKGOBZ.js +0 -58
- package/dist/chunk-RJCA5672.js +0 -1664
- package/dist/chunk-TMFCNFLW.js +0 -107
- package/dist/chunk-TN3PU2WK.js +0 -748
- package/dist/chunk-TZPAA4RC.js +0 -1461
- package/dist/chunk-W7ZBF5AA.js +0 -1
- package/dist/chunk-YZ6GTZXL.js +0 -48
- package/dist/components/command-queue/index.css +0 -53
- package/dist/components/command-queue/index.d.ts +0 -204
- package/dist/components/command-queue/index.js +0 -12
- package/dist/components/forms/index.d.ts +0 -56
- package/dist/components/forms/index.js +0 -2
- package/dist/components/index.css +0 -443
- package/dist/components/monitoring/index.d.ts +0 -66
- package/dist/components/monitoring/index.js +0 -2
- package/dist/components/notifications/index.d.ts +0 -52
- package/dist/components/notifications/index.js +0 -5
- package/dist/components/resource-definition/index.css +0 -388
- package/dist/components/resource-definition/index.d.ts +0 -301
- package/dist/components/resource-definition/index.js +0 -3
- package/dist/display/index.css +0 -53
- package/dist/display/index.d.ts +0 -606
- package/dist/display/index.js +0 -7
- package/dist/execution/index.css +0 -388
- package/dist/provider/index.css +0 -61
- package/dist/{chunk-TYV5NJV2.js → chunk-BUZONXAW.js} +0 -0
- package/dist/{chunk-UMXDDEAG.js → chunk-SFF5MJEI.js} +1 -1
- /package/dist/{chunk-NXHL23JW.js → chunk-XXDDMASA.js} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { ExecutionLogsTable, ResourceHealthChart, getHealthColor } from '../chunk-NE36BUGQ.js';
|
|
3
|
-
import '../chunk-W7ZBF5AA.js';
|
|
4
|
-
export { ActionModal, CustomModal, TaskCard, getIcon, iconMap } from '../chunk-JYSYHVLU.js';
|
|
5
|
-
import '../chunk-NXHL23JW.js';
|
|
6
|
-
export { FormFieldRenderer } from '../chunk-PSLKGOBZ.js';
|
|
7
|
-
export { NotificationBell, NotificationItem, NotificationList, NotificationPanel } from '../chunk-TMFCNFLW.js';
|
|
8
|
-
import '../chunk-BLO4SISK.js';
|
|
9
|
-
export { AgentDefinitionDisplay, CollapsibleJsonSection, ConfigCard, ContractDisplay, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, ResourceDefinitionSection, ToolsListDisplay, WorkflowDefinitionDisplay, useNewKnowledgeMapLayout } from '../chunk-OXVOHOP3.js';
|
|
10
|
-
import '../chunk-6BJOYF6E.js';
|
|
11
|
-
import '../chunk-HUWJXLLF.js';
|
|
12
|
-
export { APIErrorAlert, CollapsibleSection, ContextViewer, CustomSelector, DetailCardSkeleton, EmptyState, JsonViewer, ListSkeleton, NavigationButton, PageNotFound, PageTitleCaption, ResourceCard, StatCard, StatCardSkeleton, StatsCardSkeleton, TabCountBadge, TimeRangeSelector, TrendIndicator, catalogItemToResourceDefinition } from '../chunk-O3PY6B6E.js';
|
|
13
|
-
export { StyledMarkdown } from '../chunk-3KMDHCAR.js';
|
|
14
|
-
import '../chunk-YZ6GTZXL.js';
|
|
15
|
-
import '../chunk-TIRMFDM4.js';
|
|
16
|
-
import '../chunk-JVAZHVNV.js';
|
|
17
|
-
import '../chunk-4VGWQ5AN.js';
|
|
18
|
-
import '../chunk-KA7LO7U5.js';
|
|
19
|
-
import '../chunk-7PLEQFHO.js';
|
|
20
|
-
import '../chunk-Q7DJKLEN.js';
|
|
1
|
+
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
1
|
interface BreadcrumbItem {
|
|
5
2
|
label: string;
|
|
6
3
|
path?: string;
|
|
@@ -23,32 +20,5 @@ interface UseBreadcrumbsOptions {
|
|
|
23
20
|
}
|
|
24
21
|
declare const useBreadcrumbs: (options?: UseBreadcrumbsOptions) => BreadcrumbItem[];
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
link: string;
|
|
29
|
-
onClick?: () => void;
|
|
30
|
-
}
|
|
31
|
-
interface LinksGroupProps {
|
|
32
|
-
icon: React.ComponentType<{
|
|
33
|
-
size?: number;
|
|
34
|
-
stroke?: number;
|
|
35
|
-
}>;
|
|
36
|
-
label: string;
|
|
37
|
-
initiallyOpened?: boolean;
|
|
38
|
-
links?: LinkItem[];
|
|
39
|
-
link?: string;
|
|
40
|
-
onClick?: () => void;
|
|
41
|
-
currentPath?: string;
|
|
42
|
-
opened?: boolean;
|
|
43
|
-
onToggle?: () => void;
|
|
44
|
-
/** Optional tour target ID for onboarding highlights */
|
|
45
|
-
dataOnboardingTourId?: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface BreadcrumbsProps extends UseBreadcrumbsOptions {
|
|
49
|
-
navItems: LinksGroupProps[];
|
|
50
|
-
}
|
|
51
|
-
declare const Breadcrumbs: ({ navItems }: BreadcrumbsProps) => react_jsx_runtime.JSX.Element;
|
|
52
|
-
|
|
53
|
-
export { Breadcrumbs, useBreadcrumbs };
|
|
54
|
-
export type { BreadcrumbItem, BreadcrumbsProps, UseBreadcrumbsOptions };
|
|
23
|
+
export { useBreadcrumbs };
|
|
24
|
+
export type { BreadcrumbItem, UseBreadcrumbsOptions };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { useRouterContext } from '../../chunk-Q7DJKLEN.js';
|
|
2
|
-
import { Text, Anchor, Breadcrumbs as Breadcrumbs$1 } from '@mantine/core';
|
|
3
2
|
import { useMemo } from 'react';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
3
|
|
|
6
4
|
var useBreadcrumbs = (options = {}) => {
|
|
7
5
|
const { currentPath } = useRouterContext();
|
|
@@ -61,31 +59,5 @@ var useBreadcrumbs = (options = {}) => {
|
|
|
61
59
|
function formatSegmentLabel(segment) {
|
|
62
60
|
return segment.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
63
61
|
}
|
|
64
|
-
var Breadcrumbs = ({ navItems }) => {
|
|
65
|
-
const { Link } = useRouterContext();
|
|
66
|
-
const breadcrumbs = useBreadcrumbs({ navItems });
|
|
67
|
-
const items = breadcrumbs.map((item) => {
|
|
68
|
-
const isActive = item.isActive;
|
|
69
|
-
if (isActive) {
|
|
70
|
-
return /* @__PURE__ */ jsx(Text, { size: "sm", fw: 500, c: "var(--color-text)", children: item.label }, item.path || item.label);
|
|
71
|
-
}
|
|
72
|
-
return item.path ? /* @__PURE__ */ jsx(
|
|
73
|
-
Anchor,
|
|
74
|
-
{
|
|
75
|
-
component: Link,
|
|
76
|
-
to: item.path,
|
|
77
|
-
size: "sm",
|
|
78
|
-
style: {
|
|
79
|
-
color: "var(--color-text-subtle)",
|
|
80
|
-
textDecoration: "none"
|
|
81
|
-
},
|
|
82
|
-
c: "dimmed",
|
|
83
|
-
children: item.label
|
|
84
|
-
},
|
|
85
|
-
item.path
|
|
86
|
-
) : /* @__PURE__ */ jsx(Text, { size: "sm", c: "var(--color-text-subtle)", children: item.label }, item.label);
|
|
87
|
-
});
|
|
88
|
-
return /* @__PURE__ */ jsx(Breadcrumbs$1, { separator: "/", children: items });
|
|
89
|
-
};
|
|
90
62
|
|
|
91
|
-
export {
|
|
63
|
+
export { useBreadcrumbs };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { Node, Edge
|
|
1
|
+
import { Node, Edge } from '@xyflow/react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { BadgeProps } from '@mantine/core';
|
|
4
|
-
import * as react from 'react';
|
|
5
3
|
|
|
6
4
|
/**
|
|
7
5
|
* Workflow-specific logging types and utilities
|
|
@@ -781,6 +779,38 @@ declare function useReactFlowAgent(iterationData: AgentIterationData | null, _re
|
|
|
781
779
|
edges: Edge[];
|
|
782
780
|
};
|
|
783
781
|
|
|
782
|
+
/**
|
|
783
|
+
* Format duration in milliseconds for display
|
|
784
|
+
*
|
|
785
|
+
* @param ms - Duration in milliseconds
|
|
786
|
+
* @returns Formatted duration string (e.g., "150ms", "2.5s")
|
|
787
|
+
*/
|
|
788
|
+
declare function formatDuration(ms?: number): string;
|
|
789
|
+
|
|
790
|
+
interface StatusIconColors {
|
|
791
|
+
icon: string;
|
|
792
|
+
}
|
|
793
|
+
interface GetStatusIconOptions {
|
|
794
|
+
status: ExecutionStatus;
|
|
795
|
+
colors: StatusIconColors;
|
|
796
|
+
iconSize: number;
|
|
797
|
+
spinDuration?: string;
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Get status icon component for execution nodes
|
|
801
|
+
*
|
|
802
|
+
* @param options - Configuration for icon rendering
|
|
803
|
+
* @returns React component for the status icon
|
|
804
|
+
*/
|
|
805
|
+
declare function getStatusIcon({ status, colors, iconSize, spinDuration }: GetStatusIconOptions): react_jsx_runtime.JSX.Element;
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* Get the color for a resource status badge
|
|
809
|
+
* @param resourceStatus - The resource status ('dev' | 'prod')
|
|
810
|
+
* @returns CSS variable color string
|
|
811
|
+
*/
|
|
812
|
+
declare function getResourceStatusColor(resourceStatus: ResourceStatus): string;
|
|
813
|
+
|
|
784
814
|
/**
|
|
785
815
|
* Unified status color system for execution visualizers
|
|
786
816
|
* Shared between workflow and agent implementations
|
|
@@ -800,163 +830,50 @@ declare const STATUS_COLORS: Record<ExecutionStatus, StatusColorScheme>;
|
|
|
800
830
|
*/
|
|
801
831
|
declare function getStatusColors(status: ExecutionStatus): StatusColorScheme;
|
|
802
832
|
|
|
803
|
-
interface
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
/** Badge size - defaults to 'sm' */
|
|
807
|
-
size?: BadgeProps['size'];
|
|
808
|
-
/** Badge variant - defaults to 'light' */
|
|
809
|
-
variant?: 'light' | 'filled' | 'outline' | 'dot';
|
|
810
|
-
/** Whether to show a loader for running status - defaults to true */
|
|
811
|
-
showLoader?: boolean;
|
|
812
|
-
}
|
|
813
|
-
/**
|
|
814
|
-
* ExecutionStatusBadge - Reusable badge for execution statuses
|
|
815
|
-
*
|
|
816
|
-
* Consolidates status badge rendering across:
|
|
817
|
-
* - ExecutionSummaryRow.tsx
|
|
818
|
-
* - SessionExecutionLogs.tsx
|
|
819
|
-
* - BaseExecutionLogsHeader.tsx
|
|
820
|
-
* - UnifiedWorkflowNode.tsx
|
|
821
|
-
* - Dashboard.tsx task list
|
|
822
|
-
*
|
|
823
|
-
* Uses the centralized STATUS_COLORS from statusColors.ts
|
|
824
|
-
*
|
|
825
|
-
* @example
|
|
826
|
-
* ```tsx
|
|
827
|
-
* <ExecutionStatusBadge status="running" />
|
|
828
|
-
* <ExecutionStatusBadge status="completed" variant="dot" />
|
|
829
|
-
* ```
|
|
830
|
-
*/
|
|
831
|
-
declare function ExecutionStatusBadge({ status, size, variant, showLoader }: ExecutionStatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
832
|
-
|
|
833
|
-
interface ExecutionStatsProps {
|
|
834
|
-
totalExecutions: number;
|
|
835
|
-
successCount: number;
|
|
836
|
-
failureCount: number;
|
|
837
|
-
warningCount?: number;
|
|
838
|
-
successRate: number;
|
|
839
|
-
align?: 'flex-start' | 'flex-end' | 'center';
|
|
840
|
-
/** Compact mode renders metric chips in a horizontal row */
|
|
841
|
-
compact?: boolean;
|
|
833
|
+
interface EdgeColorOptions {
|
|
834
|
+
selected?: boolean;
|
|
835
|
+
sourceStatus: ExecutionStatus;
|
|
842
836
|
}
|
|
843
837
|
/**
|
|
844
|
-
*
|
|
845
|
-
|
|
846
|
-
declare function ExecutionStats({ totalExecutions, successCount, failureCount, warningCount, successRate, align, compact }: ExecutionStatsProps): react_jsx_runtime.JSX.Element | null;
|
|
847
|
-
|
|
848
|
-
/**
|
|
849
|
-
* TimelineContainer Component
|
|
850
|
-
*
|
|
851
|
-
* Outer container for the timeline visualization.
|
|
852
|
-
* Wraps timeline rows and displays time axis at the bottom.
|
|
838
|
+
* Get edge color based on source node status
|
|
839
|
+
* Simplified: uses unified status color system
|
|
853
840
|
*/
|
|
854
|
-
declare function
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
totalDuration: number;
|
|
841
|
+
declare function getEdgeColor({ selected, sourceStatus }: EdgeColorOptions): string;
|
|
842
|
+
interface EdgeOpacityOptions {
|
|
843
|
+
sourceStatus: ExecutionStatus;
|
|
858
844
|
}
|
|
859
845
|
/**
|
|
860
|
-
*
|
|
861
|
-
*
|
|
862
|
-
* Renders time markers at the bottom of the timeline.
|
|
863
|
-
* Shows 0ms on the left, total duration on the right, and 3 intermediate markers.
|
|
864
|
-
*/
|
|
865
|
-
declare function TimelineAxis({ totalDuration }: TimelineAxisProps): react_jsx_runtime.JSX.Element;
|
|
866
|
-
|
|
867
|
-
/**
|
|
868
|
-
* TimelineBar Component
|
|
869
|
-
*
|
|
870
|
-
* Renders a single horizontal bar in the timeline visualization.
|
|
871
|
-
* Position and width are calculated as percentages based on absolute timestamps.
|
|
846
|
+
* Get edge opacity based on source node status
|
|
872
847
|
*/
|
|
873
|
-
declare function
|
|
874
|
-
|
|
848
|
+
declare function getEdgeOpacity({ sourceStatus }: EdgeOpacityOptions): number;
|
|
875
849
|
/**
|
|
876
|
-
*
|
|
877
|
-
*
|
|
878
|
-
* Renders a row in the timeline with a label and one or more timeline bars.
|
|
879
|
-
* Supports indentation for nested rows (e.g., sub-activities within iterations).
|
|
850
|
+
* Check if edge should be animated (when source or target is running)
|
|
880
851
|
*/
|
|
881
|
-
declare function
|
|
882
|
-
|
|
883
|
-
interface IVisualizerContainerProps {
|
|
884
|
-
children: React.ReactNode;
|
|
885
|
-
/** Click handler for container (for deselecting nodes). Optional for definition mode. */
|
|
886
|
-
handleContainerClick?: (event: React.MouseEvent) => void;
|
|
887
|
-
/** Optional dynamic height calculated from graph layout. Falls back to default if not provided. */
|
|
888
|
-
height?: number;
|
|
889
|
-
}
|
|
890
|
-
declare const VisualizerContainer: ({ children, handleContainerClick, height }: IVisualizerContainerProps) => react_jsx_runtime.JSX.Element;
|
|
891
|
-
|
|
892
|
-
declare const EmptyVisualizer: ({ message }: {
|
|
893
|
-
message?: string;
|
|
894
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
895
|
-
|
|
896
|
-
interface UnifiedWorkflowGraphProps {
|
|
897
|
-
/**
|
|
898
|
-
* Workflow definition (entry point, steps, routes)
|
|
899
|
-
* Accepts either SerializedWorkflowDefinition (execution mode) or WorkflowStepsLayoutInput (definition mode)
|
|
900
|
-
*/
|
|
901
|
-
resourceDefinition: SerializedWorkflowDefinition | WorkflowStepsLayoutInput;
|
|
902
|
-
/** Execution logs from SSE or useExecution hook (only used in execution mode) */
|
|
903
|
-
executionLogs?: ExecutionLogMessage[];
|
|
904
|
-
/** Currently selected step ID for highlighting (only used in execution mode) */
|
|
905
|
-
selectedStepId?: string | null;
|
|
906
|
-
/** Callback when step selection changes (only used in execution mode) */
|
|
907
|
-
onStepSelect?: (stepId: string | null) => void;
|
|
908
|
-
/** External trigger for fit view (increment to trigger, used after collapse animations) */
|
|
909
|
-
fitViewTrigger?: number;
|
|
910
|
-
}
|
|
911
|
-
declare function UnifiedWorkflowGraph({ resourceDefinition, executionLogs, selectedStepId, onStepSelect, fitViewTrigger: externalFitViewTrigger }: UnifiedWorkflowGraphProps): react_jsx_runtime.JSX.Element;
|
|
912
|
-
|
|
913
|
-
type UnifiedWorkflowNodeProps = NodeProps<Node<UnifiedWorkflowNodeData>>;
|
|
914
|
-
declare const UnifiedWorkflowNode: react.NamedExoticComponent<UnifiedWorkflowNodeProps>;
|
|
915
|
-
|
|
916
|
-
type UnifiedWorkflowEdgeProps = EdgeProps<Edge<UnifiedWorkflowEdgeData, string>>;
|
|
917
|
-
declare const UnifiedWorkflowEdge: react.NamedExoticComponent<UnifiedWorkflowEdgeProps>;
|
|
852
|
+
declare function shouldAnimateEdge(sourceStatus: ExecutionStatus, targetStatus: ExecutionStatus): boolean;
|
|
918
853
|
|
|
919
|
-
interface WorkflowExecutionTimelineProps {
|
|
920
|
-
timelineData: WorkflowNodeVisualizerData;
|
|
921
|
-
selectedStepId?: string | null;
|
|
922
|
-
}
|
|
923
854
|
/**
|
|
924
|
-
*
|
|
855
|
+
* Calculate timeline bar position and width as percentages
|
|
925
856
|
*
|
|
926
|
-
*
|
|
927
|
-
*
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
interface AgentExecutionVisualizerProps {
|
|
932
|
-
resourceDefinition: SerializedAgentDefinition;
|
|
933
|
-
iterationData: AgentIterationData | null;
|
|
934
|
-
selectedExecutionId?: string;
|
|
935
|
-
liveExecutions: Set<string>;
|
|
936
|
-
selectedIterationId: number | 'initialization' | 'completion' | null;
|
|
937
|
-
onIterationSelect: (iterationId: number | 'initialization' | 'completion' | null) => void;
|
|
938
|
-
}
|
|
939
|
-
declare function AgentExecutionVisualizer({ resourceDefinition, iterationData, selectedExecutionId, liveExecutions, selectedIterationId, onIterationSelect }: AgentExecutionVisualizerProps): react_jsx_runtime.JSX.Element;
|
|
940
|
-
|
|
941
|
-
interface AgentExecutionTimelineProps {
|
|
942
|
-
iterationData: AgentIterationData;
|
|
943
|
-
selectedIterationId?: number | 'initialization' | 'completion' | null;
|
|
944
|
-
}
|
|
945
|
-
/**
|
|
946
|
-
* AgentExecutionTimeline Component
|
|
857
|
+
* Handles edge cases:
|
|
858
|
+
* - Zero duration executions (instant completion)
|
|
859
|
+
* - Activities that start before execution (data inconsistency)
|
|
860
|
+
* - Activities that extend beyond execution end (data inconsistency)
|
|
861
|
+
* - Zero or near-zero duration activities (enforces minimum visible width)
|
|
947
862
|
*
|
|
948
|
-
*
|
|
949
|
-
*
|
|
863
|
+
* @param startTime - Activity start timestamp (absolute)
|
|
864
|
+
* @param endTime - Activity end timestamp (absolute)
|
|
865
|
+
* @param executionStart - Execution start timestamp (absolute)
|
|
866
|
+
* @param executionEnd - Execution end timestamp (absolute)
|
|
867
|
+
* @returns Object with left and width percentages for bar positioning
|
|
950
868
|
*/
|
|
951
|
-
declare function
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
declare const AgentIterationEdge: react.NamedExoticComponent<EdgeProps>;
|
|
869
|
+
declare function calculateBarPosition(startTime: number, endTime: number, executionStart: number, executionEnd: number): {
|
|
870
|
+
left: number;
|
|
871
|
+
width: number;
|
|
872
|
+
};
|
|
956
873
|
|
|
957
874
|
/**
|
|
958
|
-
*
|
|
959
|
-
*
|
|
875
|
+
* Execution visualization constants.
|
|
876
|
+
* Headless layout/sizing data used by hooks and utils (no Mantine dependency).
|
|
960
877
|
*/
|
|
961
878
|
declare const TIMELINE_CONSTANTS: {
|
|
962
879
|
readonly BAR_HEIGHT: 24;
|
|
@@ -967,9 +884,6 @@ declare const TIMELINE_CONSTANTS: {
|
|
|
967
884
|
readonly CONTAINER_PADDING: 16;
|
|
968
885
|
readonly CONTAINER_BORDER_RADIUS: 8;
|
|
969
886
|
};
|
|
970
|
-
/**
|
|
971
|
-
* Shared visualization constants used by both workflow and agent visualizers
|
|
972
|
-
*/
|
|
973
887
|
declare const SHARED_VIZ_CONSTANTS: {
|
|
974
888
|
readonly NODE_WIDTH: 160;
|
|
975
889
|
readonly NODE_SPACING: 220;
|
|
@@ -977,15 +891,6 @@ declare const SHARED_VIZ_CONSTANTS: {
|
|
|
977
891
|
readonly MIN_ZOOM: 0.5;
|
|
978
892
|
readonly MAX_ZOOM: 2;
|
|
979
893
|
};
|
|
980
|
-
/**
|
|
981
|
-
* Container height constant (used by VisualizerContainer and EmptyVisualizer)
|
|
982
|
-
*/
|
|
983
|
-
declare const CONTAINER_CONSTANTS: {
|
|
984
|
-
CONTAINER_HEIGHT: number;
|
|
985
|
-
};
|
|
986
|
-
/**
|
|
987
|
-
* Agent-specific dimension and layout constants
|
|
988
|
-
*/
|
|
989
894
|
declare const AGENT_CONSTANTS: {
|
|
990
895
|
readonly NODE_HEIGHT: 140;
|
|
991
896
|
readonly CONTAINER_HEIGHT: 430;
|
|
@@ -1013,78 +918,5 @@ declare const WORKFLOW_CONSTANTS: {
|
|
|
1013
918
|
readonly MAX_ZOOM: 2;
|
|
1014
919
|
};
|
|
1015
920
|
|
|
1016
|
-
|
|
1017
|
-
* Format duration in milliseconds for display
|
|
1018
|
-
*
|
|
1019
|
-
* @param ms - Duration in milliseconds
|
|
1020
|
-
* @returns Formatted duration string (e.g., "150ms", "2.5s")
|
|
1021
|
-
*/
|
|
1022
|
-
declare function formatDuration(ms?: number): string;
|
|
1023
|
-
|
|
1024
|
-
interface StatusIconColors {
|
|
1025
|
-
icon: string;
|
|
1026
|
-
}
|
|
1027
|
-
interface GetStatusIconOptions {
|
|
1028
|
-
status: ExecutionStatus;
|
|
1029
|
-
colors: StatusIconColors;
|
|
1030
|
-
iconSize: number;
|
|
1031
|
-
spinDuration?: string;
|
|
1032
|
-
}
|
|
1033
|
-
/**
|
|
1034
|
-
* Get status icon component for execution nodes
|
|
1035
|
-
*
|
|
1036
|
-
* @param options - Configuration for icon rendering
|
|
1037
|
-
* @returns React component for the status icon
|
|
1038
|
-
*/
|
|
1039
|
-
declare function getStatusIcon({ status, colors, iconSize, spinDuration }: GetStatusIconOptions): react_jsx_runtime.JSX.Element;
|
|
1040
|
-
|
|
1041
|
-
/**
|
|
1042
|
-
* Get the color for a resource status badge
|
|
1043
|
-
* @param resourceStatus - The resource status ('dev' | 'prod')
|
|
1044
|
-
* @returns CSS variable color string
|
|
1045
|
-
*/
|
|
1046
|
-
declare function getResourceStatusColor(resourceStatus: ResourceStatus): string;
|
|
1047
|
-
|
|
1048
|
-
interface EdgeColorOptions {
|
|
1049
|
-
selected?: boolean;
|
|
1050
|
-
sourceStatus: ExecutionStatus;
|
|
1051
|
-
}
|
|
1052
|
-
/**
|
|
1053
|
-
* Get edge color based on source node status
|
|
1054
|
-
* Simplified: uses unified status color system
|
|
1055
|
-
*/
|
|
1056
|
-
declare function getEdgeColor({ selected, sourceStatus }: EdgeColorOptions): string;
|
|
1057
|
-
interface EdgeOpacityOptions {
|
|
1058
|
-
sourceStatus: ExecutionStatus;
|
|
1059
|
-
}
|
|
1060
|
-
/**
|
|
1061
|
-
* Get edge opacity based on source node status
|
|
1062
|
-
*/
|
|
1063
|
-
declare function getEdgeOpacity({ sourceStatus }: EdgeOpacityOptions): number;
|
|
1064
|
-
/**
|
|
1065
|
-
* Check if edge should be animated (when source or target is running)
|
|
1066
|
-
*/
|
|
1067
|
-
declare function shouldAnimateEdge(sourceStatus: ExecutionStatus, targetStatus: ExecutionStatus): boolean;
|
|
1068
|
-
|
|
1069
|
-
/**
|
|
1070
|
-
* Calculate timeline bar position and width as percentages
|
|
1071
|
-
*
|
|
1072
|
-
* Handles edge cases:
|
|
1073
|
-
* - Zero duration executions (instant completion)
|
|
1074
|
-
* - Activities that start before execution (data inconsistency)
|
|
1075
|
-
* - Activities that extend beyond execution end (data inconsistency)
|
|
1076
|
-
* - Zero or near-zero duration activities (enforces minimum visible width)
|
|
1077
|
-
*
|
|
1078
|
-
* @param startTime - Activity start timestamp (absolute)
|
|
1079
|
-
* @param endTime - Activity end timestamp (absolute)
|
|
1080
|
-
* @param executionStart - Execution start timestamp (absolute)
|
|
1081
|
-
* @param executionEnd - Execution end timestamp (absolute)
|
|
1082
|
-
* @returns Object with left and width percentages for bar positioning
|
|
1083
|
-
*/
|
|
1084
|
-
declare function calculateBarPosition(startTime: number, endTime: number, executionStart: number, executionEnd: number): {
|
|
1085
|
-
left: number;
|
|
1086
|
-
width: number;
|
|
1087
|
-
};
|
|
1088
|
-
|
|
1089
|
-
export { AGENT_CONSTANTS, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationEdge, AgentIterationNode, CONTAINER_CONSTANTS, EmptyVisualizer, ExecutionStats, ExecutionStatusBadge, SHARED_VIZ_CONSTANTS, STATUS_COLORS, TIMELINE_CONSTANTS, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, VisualizerContainer, WORKFLOW_CONSTANTS, WorkflowExecutionTimeline, calculateBarPosition, formatDuration, getEdgeColor, getEdgeOpacity, getResourceStatusColor, getStatusColors, getStatusIcon, shouldAnimateEdge, useAgentIterationData, useExecutionPath, useMergedExecution, useReactFlowAgent, useTimelineData, useUnifiedWorkflowLayout, useWorkflowStepsLayout };
|
|
921
|
+
export { AGENT_CONSTANTS, SHARED_VIZ_CONSTANTS, STATUS_COLORS, TIMELINE_CONSTANTS, WORKFLOW_CONSTANTS, calculateBarPosition, formatDuration, getEdgeColor, getEdgeOpacity, getResourceStatusColor, getStatusColors, getStatusIcon, shouldAnimateEdge, useAgentIterationData, useExecutionPath, useMergedExecution, useReactFlowAgent, useTimelineData, useUnifiedWorkflowLayout, useWorkflowStepsLayout };
|
|
1090
922
|
export type { AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, EdgeColorOptions, EdgeOpacityOptions, ExecutionPathState, ExecutionStatus, GraphMode, StatusColorScheme, StatusIconColors, StepExecutionData, TimelineBarProps, TimelineContainerProps, TimelineRowProps, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };
|
package/dist/execution/index.js
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
export { AGENT_CONSTANTS,
|
|
2
|
-
export { formatDuration } from '../chunk-6BJOYF6E.js';
|
|
3
|
-
import '../chunk-HUWJXLLF.js';
|
|
4
|
-
import '../chunk-YZ6GTZXL.js';
|
|
1
|
+
export { AGENT_CONSTANTS, SHARED_VIZ_CONSTANTS, STATUS_COLORS, TIMELINE_CONSTANTS, WORKFLOW_CONSTANTS, calculateBarPosition, formatDuration, getEdgeColor, getEdgeOpacity, getResourceStatusColor, getStatusColors, getStatusIcon, shouldAnimateEdge, useAgentIterationData, useExecutionPath, useMergedExecution, useReactFlowAgent, useTimelineData, useUnifiedWorkflowLayout, useWorkflowStepsLayout } from '../chunk-JQLT6HBI.js';
|
package/dist/graph/index.css
CHANGED