@elevasis/ui 1.8.0 → 1.8.1
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/charts/index.js +2 -2
- package/dist/{chunk-EHXOR5LA.js → chunk-3I2P4XG6.js} +1 -1
- package/dist/{chunk-YZ6GTZXL.js → chunk-ELJIFLCB.js} +4 -1
- package/dist/chunk-WSVFUERF.js +1438 -0
- package/dist/{chunk-3Q5V2T6L.js → chunk-XA34RETF.js} +1 -1
- package/dist/components/index.d.ts +666 -2
- package/dist/components/index.js +3562 -32
- package/dist/execution/index.js +2 -2
- package/dist/index.js +3 -3
- package/dist/layout/index.js +3 -1438
- package/package.json +3 -3
|
@@ -830,6 +830,47 @@ interface WorkflowNodeVisualizerData {
|
|
|
830
830
|
isRunning: boolean;
|
|
831
831
|
}
|
|
832
832
|
|
|
833
|
+
/**
|
|
834
|
+
* Memory type definitions
|
|
835
|
+
* Types for agent memory management with semantic entry types
|
|
836
|
+
*/
|
|
837
|
+
/**
|
|
838
|
+
* Semantic memory entry types
|
|
839
|
+
* Use-case agnostic types that describe the purpose of each entry
|
|
840
|
+
* Memory types mirror action types for clarity and filtering
|
|
841
|
+
*/
|
|
842
|
+
type MemoryEntryType = 'context' | 'input' | 'reasoning' | 'tool-result' | 'delegation-result' | 'error';
|
|
843
|
+
/**
|
|
844
|
+
* Memory entry - represents a single entry in agent memory
|
|
845
|
+
* Stored in agent memory, translated by adapters to vendor-specific formats
|
|
846
|
+
*/
|
|
847
|
+
interface MemoryEntry {
|
|
848
|
+
type: MemoryEntryType;
|
|
849
|
+
content: string;
|
|
850
|
+
timestamp: number;
|
|
851
|
+
turnNumber: number | null;
|
|
852
|
+
iterationNumber: number | null;
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* Agent memory - Self-orchestrated memory with session + working storage
|
|
856
|
+
* Agent has full control over what persists, framework handles auto-compaction
|
|
857
|
+
*/
|
|
858
|
+
interface AgentMemory {
|
|
859
|
+
/**
|
|
860
|
+
* Session memory - Persists for session/conversation duration
|
|
861
|
+
* Never auto-trimmed by framework
|
|
862
|
+
* Agent-managed key-value store for critical information
|
|
863
|
+
* Agent provides strings, framework wraps in MemoryEntry
|
|
864
|
+
*/
|
|
865
|
+
sessionMemory: Record<string, MemoryEntry>;
|
|
866
|
+
/**
|
|
867
|
+
* Working memory - Execution history
|
|
868
|
+
* Automatically compacted by framework when needed
|
|
869
|
+
* Agent doesn't control compaction
|
|
870
|
+
*/
|
|
871
|
+
history: MemoryEntry[];
|
|
872
|
+
}
|
|
873
|
+
|
|
833
874
|
/**
|
|
834
875
|
* Agent timeline and observability types
|
|
835
876
|
* Used for UI timeline visualization and backend processing
|
|
@@ -987,6 +1028,76 @@ interface Task extends OriginTracking {
|
|
|
987
1028
|
*/
|
|
988
1029
|
type TaskStatus = 'pending' | 'processing' | 'completed' | 'failed' | 'expired';
|
|
989
1030
|
|
|
1031
|
+
/**
|
|
1032
|
+
* Target for schedule execution - identifies what resource to execute.
|
|
1033
|
+
* Unlike ExecutionTarget, payload is NOT included here because schedules
|
|
1034
|
+
* store payload in the scheduleConfig (varies per step/item).
|
|
1035
|
+
*/
|
|
1036
|
+
interface ScheduleTarget {
|
|
1037
|
+
resourceType: 'agent' | 'workflow';
|
|
1038
|
+
resourceId: string;
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
* Optional origin tracking for schedules.
|
|
1042
|
+
* Unlike OriginTracking (which is required), these fields are all optional
|
|
1043
|
+
* for schedules created directly via API (not triggered by another resource).
|
|
1044
|
+
*/
|
|
1045
|
+
interface ScheduleOriginTracking {
|
|
1046
|
+
originExecutionId?: string;
|
|
1047
|
+
originResourceType?: OriginResourceType;
|
|
1048
|
+
originResourceId?: string;
|
|
1049
|
+
}
|
|
1050
|
+
type TaskScheduleConfig = RecurringScheduleConfig | RelativeScheduleConfig | AbsoluteScheduleConfig;
|
|
1051
|
+
interface RecurringScheduleConfig {
|
|
1052
|
+
type: 'recurring';
|
|
1053
|
+
cron?: string;
|
|
1054
|
+
interval?: 'daily' | 'weekly' | 'monthly';
|
|
1055
|
+
time?: string;
|
|
1056
|
+
timezone: string;
|
|
1057
|
+
payload: Record<string, unknown>;
|
|
1058
|
+
endAt?: string | null;
|
|
1059
|
+
overduePolicy?: 'skip' | 'execute';
|
|
1060
|
+
}
|
|
1061
|
+
interface RelativeScheduleConfig {
|
|
1062
|
+
type: 'relative';
|
|
1063
|
+
anchorAt: string;
|
|
1064
|
+
anchorLabel?: string;
|
|
1065
|
+
items: RelativeScheduleItem[];
|
|
1066
|
+
overduePolicy?: 'skip' | 'execute';
|
|
1067
|
+
}
|
|
1068
|
+
interface RelativeScheduleItem {
|
|
1069
|
+
offset: string;
|
|
1070
|
+
payload: Record<string, unknown>;
|
|
1071
|
+
label?: string;
|
|
1072
|
+
}
|
|
1073
|
+
interface AbsoluteScheduleConfig {
|
|
1074
|
+
type: 'absolute';
|
|
1075
|
+
items: AbsoluteScheduleItem[];
|
|
1076
|
+
overduePolicy?: 'skip' | 'execute';
|
|
1077
|
+
}
|
|
1078
|
+
interface AbsoluteScheduleItem {
|
|
1079
|
+
runAt: string;
|
|
1080
|
+
payload: Record<string, unknown>;
|
|
1081
|
+
label?: string;
|
|
1082
|
+
}
|
|
1083
|
+
interface TaskSchedule extends ScheduleOriginTracking {
|
|
1084
|
+
id: string;
|
|
1085
|
+
organizationId: string;
|
|
1086
|
+
name: string;
|
|
1087
|
+
description?: string;
|
|
1088
|
+
target: ScheduleTarget;
|
|
1089
|
+
scheduleConfig: TaskScheduleConfig;
|
|
1090
|
+
nextRunAt?: Date;
|
|
1091
|
+
currentStep: number;
|
|
1092
|
+
status: 'active' | 'paused' | 'completed' | 'cancelled';
|
|
1093
|
+
lastRunAt?: Date;
|
|
1094
|
+
lastExecutionId?: string;
|
|
1095
|
+
maxRetries: number;
|
|
1096
|
+
idempotencyKey?: string;
|
|
1097
|
+
createdAt: Date;
|
|
1098
|
+
updatedAt: Date;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
990
1101
|
/**
|
|
991
1102
|
* Wire-format DTO for notification API responses.
|
|
992
1103
|
* Dates are ISO 8601 strings (not Date objects like the domain Notification type).
|
|
@@ -1241,6 +1352,23 @@ declare const DOMAINS: {
|
|
|
1241
1352
|
type ResourceDomain = (typeof DOMAINS)[keyof typeof DOMAINS];
|
|
1242
1353
|
|
|
1243
1354
|
type ExecutionStatus = 'pending' | 'running' | 'completed' | 'failed' | 'warning';
|
|
1355
|
+
interface APIExecutionSummary {
|
|
1356
|
+
id: string;
|
|
1357
|
+
status: ExecutionStatus;
|
|
1358
|
+
startTime: number;
|
|
1359
|
+
endTime?: number;
|
|
1360
|
+
resourceStatus?: ResourceStatus;
|
|
1361
|
+
}
|
|
1362
|
+
interface APIExecutionDetail extends APIExecutionSummary {
|
|
1363
|
+
executionLogs: ExecutionLogMessage[];
|
|
1364
|
+
input?: unknown;
|
|
1365
|
+
result?: unknown;
|
|
1366
|
+
error?: string;
|
|
1367
|
+
resourceStatus: ResourceStatus;
|
|
1368
|
+
apiVersion?: string | null;
|
|
1369
|
+
resourceVersion?: string | null;
|
|
1370
|
+
sdkVersion?: string | null;
|
|
1371
|
+
}
|
|
1244
1372
|
|
|
1245
1373
|
/**
|
|
1246
1374
|
* Resource Type Metadata
|
|
@@ -1425,6 +1553,128 @@ interface ExecutionLogsFilters$1 {
|
|
|
1425
1553
|
resourceStatus: 'all' | 'dev' | 'prod';
|
|
1426
1554
|
}
|
|
1427
1555
|
|
|
1556
|
+
interface DocFile {
|
|
1557
|
+
path: string;
|
|
1558
|
+
frontmatter: {
|
|
1559
|
+
title: string;
|
|
1560
|
+
order?: number;
|
|
1561
|
+
[key: string]: unknown;
|
|
1562
|
+
};
|
|
1563
|
+
compiledSource: string;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
* Command View Types
|
|
1568
|
+
*
|
|
1569
|
+
* Frontend graph types for React Flow rendering.
|
|
1570
|
+
*
|
|
1571
|
+
* Backend API returns CommandViewData with separate arrays (workflows[], agents[], etc.)
|
|
1572
|
+
* Frontend transforms this to CommandViewGraph with unified nodes[] array.
|
|
1573
|
+
*
|
|
1574
|
+
* @see transformCommandViewData for the mapping logic
|
|
1575
|
+
* @see CommandViewData from @repo/core for backend type
|
|
1576
|
+
*/
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* Base resource node - common fields for all resources
|
|
1580
|
+
*/
|
|
1581
|
+
interface BaseResourceNode {
|
|
1582
|
+
id: string;
|
|
1583
|
+
name: string;
|
|
1584
|
+
description: string;
|
|
1585
|
+
status: ResourceStatus;
|
|
1586
|
+
stats?: {
|
|
1587
|
+
totalRuns: number;
|
|
1588
|
+
successCount: number;
|
|
1589
|
+
failureCount: number;
|
|
1590
|
+
warningCount: number;
|
|
1591
|
+
lastRunAt: string | null;
|
|
1592
|
+
} | null;
|
|
1593
|
+
}
|
|
1594
|
+
/**
|
|
1595
|
+
* Agent node - autonomous AI agents
|
|
1596
|
+
*/
|
|
1597
|
+
interface AgentNode extends BaseResourceNode {
|
|
1598
|
+
type: 'agent';
|
|
1599
|
+
modelProvider: string;
|
|
1600
|
+
modelId: string;
|
|
1601
|
+
toolCount: number;
|
|
1602
|
+
hasKnowledgeMap: boolean;
|
|
1603
|
+
hasMemory: boolean;
|
|
1604
|
+
}
|
|
1605
|
+
/**
|
|
1606
|
+
* Workflow node - multi-step orchestrations
|
|
1607
|
+
*/
|
|
1608
|
+
interface WorkflowNode extends BaseResourceNode {
|
|
1609
|
+
type: 'workflow';
|
|
1610
|
+
stepCount: number;
|
|
1611
|
+
entryPoint: string;
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
* Integration node - external service connections
|
|
1615
|
+
*/
|
|
1616
|
+
interface IntegrationNode extends BaseResourceNode {
|
|
1617
|
+
type: 'integration';
|
|
1618
|
+
provider: string;
|
|
1619
|
+
connectionStatus: 'connected' | 'disconnected' | 'error';
|
|
1620
|
+
credentialName?: string;
|
|
1621
|
+
}
|
|
1622
|
+
/**
|
|
1623
|
+
* Trigger node - what initiates executions
|
|
1624
|
+
*/
|
|
1625
|
+
interface TriggerNode extends BaseResourceNode {
|
|
1626
|
+
type: 'trigger';
|
|
1627
|
+
triggerType: 'webhook' | 'schedule' | 'manual' | 'event';
|
|
1628
|
+
schedule?: string;
|
|
1629
|
+
webhookPath?: string;
|
|
1630
|
+
}
|
|
1631
|
+
/**
|
|
1632
|
+
* External resource node - third-party automation platforms
|
|
1633
|
+
*/
|
|
1634
|
+
interface ExternalResourceNode extends BaseResourceNode {
|
|
1635
|
+
type: 'external';
|
|
1636
|
+
platform: 'n8n' | 'make' | 'zapier' | 'other';
|
|
1637
|
+
platformUrl?: string;
|
|
1638
|
+
externalId?: string;
|
|
1639
|
+
}
|
|
1640
|
+
/**
|
|
1641
|
+
* Human node - approval points requiring human decisions
|
|
1642
|
+
*/
|
|
1643
|
+
interface HumanNode extends Omit<BaseResourceNode, 'stats'> {
|
|
1644
|
+
type: 'human';
|
|
1645
|
+
stats?: {
|
|
1646
|
+
pendingCount: number;
|
|
1647
|
+
completedCount: number;
|
|
1648
|
+
expiredCount: number;
|
|
1649
|
+
lastDecisionAt: string | null;
|
|
1650
|
+
} | null;
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Union type for all node types
|
|
1654
|
+
*/
|
|
1655
|
+
type CommandViewNode$1 = AgentNode | WorkflowNode | IntegrationNode | TriggerNode | ExternalResourceNode | HumanNode;
|
|
1656
|
+
/**
|
|
1657
|
+
* Relationship types between resources
|
|
1658
|
+
*/
|
|
1659
|
+
type RelationshipType = 'triggers' | 'uses' | 'approval';
|
|
1660
|
+
/**
|
|
1661
|
+
* Edge representing a relationship
|
|
1662
|
+
*/
|
|
1663
|
+
interface CommandViewEdge$1 {
|
|
1664
|
+
id: string;
|
|
1665
|
+
source: string;
|
|
1666
|
+
target: string;
|
|
1667
|
+
relationship: RelationshipType;
|
|
1668
|
+
label?: string;
|
|
1669
|
+
}
|
|
1670
|
+
/**
|
|
1671
|
+
* Complete graph data for visualization
|
|
1672
|
+
*/
|
|
1673
|
+
interface CommandViewGraph$1 {
|
|
1674
|
+
nodes: CommandViewNode$1[];
|
|
1675
|
+
edges: CommandViewEdge$1[];
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1428
1678
|
interface SortableHeaderProps {
|
|
1429
1679
|
column: string;
|
|
1430
1680
|
children: React.ReactNode;
|
|
@@ -2309,5 +2559,419 @@ declare const showWarningNotification: (message: string) => void;
|
|
|
2309
2559
|
*/
|
|
2310
2560
|
declare const showApiErrorNotification: (error: unknown) => void;
|
|
2311
2561
|
|
|
2312
|
-
|
|
2313
|
-
|
|
2562
|
+
interface BaseExecutionLogsProps {
|
|
2563
|
+
resourceId: string;
|
|
2564
|
+
resourceType?: ResourceType;
|
|
2565
|
+
executionId?: string;
|
|
2566
|
+
/** Pre-merged execution (includes streaming logs). When provided, skips internal useExecution fetch for display. */
|
|
2567
|
+
execution?: APIExecutionDetail;
|
|
2568
|
+
onExecutionDeleted?: () => void;
|
|
2569
|
+
renderLogsSection?: (execution: APIExecutionDetail) => React.ReactNode;
|
|
2570
|
+
renderMetrics?: (execution: APIExecutionDetail) => React.ReactNode;
|
|
2571
|
+
hideInput?: boolean;
|
|
2572
|
+
hideResult?: boolean;
|
|
2573
|
+
hideError?: boolean;
|
|
2574
|
+
}
|
|
2575
|
+
declare function BaseExecutionLogs({ resourceId, resourceType, executionId, execution: externalExecution, onExecutionDeleted, renderLogsSection, renderMetrics, hideInput, hideResult, hideError }: BaseExecutionLogsProps): react_jsx_runtime.JSX.Element;
|
|
2576
|
+
|
|
2577
|
+
interface BaseExecutionLogsHeaderProps {
|
|
2578
|
+
execution: APIExecutionDetail;
|
|
2579
|
+
resourceId: string;
|
|
2580
|
+
onDeleteClick: () => void;
|
|
2581
|
+
onRetryClick?: () => void;
|
|
2582
|
+
onCancelClick?: () => void;
|
|
2583
|
+
renderMetrics?: (execution: APIExecutionDetail) => React.ReactNode;
|
|
2584
|
+
}
|
|
2585
|
+
declare function BaseExecutionLogsHeader({ execution, resourceId, onDeleteClick, onRetryClick, onCancelClick, renderMetrics }: BaseExecutionLogsHeaderProps): react_jsx_runtime.JSX.Element;
|
|
2586
|
+
|
|
2587
|
+
interface BaseExecutionLogsStatesProps {
|
|
2588
|
+
executionId?: string;
|
|
2589
|
+
isLoading: boolean;
|
|
2590
|
+
execution?: APIExecutionDetail;
|
|
2591
|
+
}
|
|
2592
|
+
declare function BaseExecutionLogsStates({ executionId, isLoading, execution }: BaseExecutionLogsStatesProps): react_jsx_runtime.JSX.Element | null;
|
|
2593
|
+
|
|
2594
|
+
/**
|
|
2595
|
+
* ExecutionErrorSection - Structured error display for execution logs.
|
|
2596
|
+
* Fetches structured error data via useErrorDetail hook.
|
|
2597
|
+
* Falls back to plain text display if structured data is unavailable.
|
|
2598
|
+
*/
|
|
2599
|
+
interface ExecutionErrorSectionProps {
|
|
2600
|
+
executionId: string;
|
|
2601
|
+
fallbackError: string;
|
|
2602
|
+
}
|
|
2603
|
+
declare function ExecutionErrorSection({ executionId, fallbackError }: ExecutionErrorSectionProps): react_jsx_runtime.JSX.Element;
|
|
2604
|
+
|
|
2605
|
+
interface LogGroupProps {
|
|
2606
|
+
title: string;
|
|
2607
|
+
logs: ExecutionLogMessage[];
|
|
2608
|
+
statusBadge?: {
|
|
2609
|
+
label: string;
|
|
2610
|
+
color: string;
|
|
2611
|
+
};
|
|
2612
|
+
}
|
|
2613
|
+
/**
|
|
2614
|
+
* Shared component for rendering a group of logs
|
|
2615
|
+
* Used by both workflow and agent execution logs
|
|
2616
|
+
*/
|
|
2617
|
+
declare function LogGroup({ title, logs, statusBadge }: LogGroupProps): react_jsx_runtime.JSX.Element;
|
|
2618
|
+
|
|
2619
|
+
interface LogEntryProps {
|
|
2620
|
+
log: ExecutionLogMessage;
|
|
2621
|
+
index: number;
|
|
2622
|
+
}
|
|
2623
|
+
declare function LogEntry({ log, index }: LogEntryProps): react_jsx_runtime.JSX.Element;
|
|
2624
|
+
|
|
2625
|
+
type StatusFilter = 'all' | 'dev' | 'prod';
|
|
2626
|
+
interface ResourceFilterProps {
|
|
2627
|
+
value: StatusFilter;
|
|
2628
|
+
onChange: (value: StatusFilter) => void;
|
|
2629
|
+
/** When true, buttons stretch to fill container width */
|
|
2630
|
+
fullWidth?: boolean;
|
|
2631
|
+
}
|
|
2632
|
+
declare const ResourceFilter: ({ value, onChange, fullWidth }: ResourceFilterProps) => react_jsx_runtime.JSX.Element;
|
|
2633
|
+
|
|
2634
|
+
interface ResourceDetailPageProps {
|
|
2635
|
+
type: ResourceType;
|
|
2636
|
+
resourceId: string;
|
|
2637
|
+
/**
|
|
2638
|
+
* Render prop for the execution panel (e.g. ExecutionPanel from operations/executions).
|
|
2639
|
+
* Accepts resource details and a connection status callback.
|
|
2640
|
+
*/
|
|
2641
|
+
renderExecutionPanel?: (props: {
|
|
2642
|
+
resourceId: string;
|
|
2643
|
+
resourceType: ResourceType;
|
|
2644
|
+
resourceName: string;
|
|
2645
|
+
resourceDefinition: AIResourceDefinition;
|
|
2646
|
+
onConnectionStatus: (connected: boolean, runningCount: number) => void;
|
|
2647
|
+
}) => React.ReactNode;
|
|
2648
|
+
/**
|
|
2649
|
+
* Render prop for the resource health panel.
|
|
2650
|
+
* Accepts resourceId and resourceType.
|
|
2651
|
+
*/
|
|
2652
|
+
renderHealthPanel?: (props: {
|
|
2653
|
+
resourceId: string;
|
|
2654
|
+
resourceType: ResourceType;
|
|
2655
|
+
}) => React.ReactNode;
|
|
2656
|
+
/**
|
|
2657
|
+
* Render prop for the resource definition section.
|
|
2658
|
+
* Accepts the AIResourceDefinition.
|
|
2659
|
+
*/
|
|
2660
|
+
renderDefinitionSection?: (resourceDefinition: AIResourceDefinition) => React.ReactNode;
|
|
2661
|
+
}
|
|
2662
|
+
declare function ResourceDetailPage({ type, resourceId, renderExecutionPanel, renderHealthPanel, renderDefinitionSection }: ResourceDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
2663
|
+
|
|
2664
|
+
interface ResourceHeaderProps {
|
|
2665
|
+
resource: ResourceDefinition;
|
|
2666
|
+
type: ResourceType;
|
|
2667
|
+
connected?: boolean;
|
|
2668
|
+
runningCount?: number;
|
|
2669
|
+
sessionCapable?: boolean;
|
|
2670
|
+
}
|
|
2671
|
+
declare function ResourceHeader({ resource, type, connected, runningCount, sessionCapable }: ResourceHeaderProps): react_jsx_runtime.JSX.Element;
|
|
2672
|
+
|
|
2673
|
+
interface ResourceErrorStateProps {
|
|
2674
|
+
error: Error;
|
|
2675
|
+
}
|
|
2676
|
+
declare function ResourceErrorState({ error }: ResourceErrorStateProps): react_jsx_runtime.JSX.Element;
|
|
2677
|
+
|
|
2678
|
+
interface ResourceNotFoundStateProps {
|
|
2679
|
+
type: ResourceType;
|
|
2680
|
+
resourceId: string;
|
|
2681
|
+
}
|
|
2682
|
+
declare function ResourceNotFoundState({ type, resourceId }: ResourceNotFoundStateProps): react_jsx_runtime.JSX.Element;
|
|
2683
|
+
|
|
2684
|
+
interface AgentExecutionLogsProps {
|
|
2685
|
+
resourceId: string;
|
|
2686
|
+
executionId?: string;
|
|
2687
|
+
/** Pre-merged execution (includes streaming logs). Forwarded to BaseExecutionLogs. */
|
|
2688
|
+
execution?: APIExecutionDetail;
|
|
2689
|
+
selectedIterationId: number | 'initialization' | 'completion' | null;
|
|
2690
|
+
iterationData: AgentIterationData | null;
|
|
2691
|
+
onExecutionDeleted?: () => void;
|
|
2692
|
+
}
|
|
2693
|
+
declare function AgentExecutionLogs({ resourceId, executionId, execution: externalExecution, selectedIterationId, iterationData, onExecutionDeleted }: AgentExecutionLogsProps): react_jsx_runtime.JSX.Element;
|
|
2694
|
+
|
|
2695
|
+
interface WorkflowExecutionLogsProps {
|
|
2696
|
+
resourceId: string;
|
|
2697
|
+
executionId?: string;
|
|
2698
|
+
/** Pre-merged execution (includes streaming logs). Skips internal fetch when provided. */
|
|
2699
|
+
execution?: APIExecutionDetail;
|
|
2700
|
+
selectedStepId?: string | null;
|
|
2701
|
+
timelineData?: WorkflowNodeVisualizerData;
|
|
2702
|
+
onExecutionDeleted?: () => void;
|
|
2703
|
+
}
|
|
2704
|
+
declare function WorkflowExecutionLogs({ resourceId, executionId, execution: externalExecution, selectedStepId, timelineData, onExecutionDeleted }: WorkflowExecutionLogsProps): react_jsx_runtime.JSX.Element;
|
|
2705
|
+
|
|
2706
|
+
declare const LOG_LEVEL_CONFIG: {
|
|
2707
|
+
readonly debug: {
|
|
2708
|
+
readonly label: "DEBUG";
|
|
2709
|
+
readonly color: "gray";
|
|
2710
|
+
readonly textColor: "var(--color-text-subtle)";
|
|
2711
|
+
readonly icon: "🔍";
|
|
2712
|
+
};
|
|
2713
|
+
readonly info: {
|
|
2714
|
+
readonly label: "INFO";
|
|
2715
|
+
readonly color: "blue";
|
|
2716
|
+
readonly textColor: "var(--color-text-dimmed)";
|
|
2717
|
+
readonly icon: "ℹ️";
|
|
2718
|
+
};
|
|
2719
|
+
readonly warn: {
|
|
2720
|
+
readonly label: "WARN";
|
|
2721
|
+
readonly color: "yellow";
|
|
2722
|
+
readonly textColor: "var(--color-warning)";
|
|
2723
|
+
readonly icon: "⚠️";
|
|
2724
|
+
};
|
|
2725
|
+
readonly error: {
|
|
2726
|
+
readonly label: "ERROR";
|
|
2727
|
+
readonly color: "red";
|
|
2728
|
+
readonly textColor: "var(--color-error)";
|
|
2729
|
+
readonly icon: "❌";
|
|
2730
|
+
};
|
|
2731
|
+
};
|
|
2732
|
+
type LogLevel = keyof typeof LOG_LEVEL_CONFIG;
|
|
2733
|
+
declare function getLogLevelConfig(level: string): {
|
|
2734
|
+
readonly label: "DEBUG";
|
|
2735
|
+
readonly color: "gray";
|
|
2736
|
+
readonly textColor: "var(--color-text-subtle)";
|
|
2737
|
+
readonly icon: "🔍";
|
|
2738
|
+
} | {
|
|
2739
|
+
readonly label: "INFO";
|
|
2740
|
+
readonly color: "blue";
|
|
2741
|
+
readonly textColor: "var(--color-text-dimmed)";
|
|
2742
|
+
readonly icon: "ℹ️";
|
|
2743
|
+
} | {
|
|
2744
|
+
readonly label: "WARN";
|
|
2745
|
+
readonly color: "yellow";
|
|
2746
|
+
readonly textColor: "var(--color-warning)";
|
|
2747
|
+
readonly icon: "⚠️";
|
|
2748
|
+
} | {
|
|
2749
|
+
readonly label: "ERROR";
|
|
2750
|
+
readonly color: "red";
|
|
2751
|
+
readonly textColor: "var(--color-error)";
|
|
2752
|
+
readonly icon: "❌";
|
|
2753
|
+
};
|
|
2754
|
+
declare function getExecutionStatusConfig(status: string): {
|
|
2755
|
+
readonly label: "Pending";
|
|
2756
|
+
readonly color: "gray";
|
|
2757
|
+
readonly textColor: "var(--color-text-dimmed)";
|
|
2758
|
+
} | {
|
|
2759
|
+
readonly label: "Running";
|
|
2760
|
+
readonly color: "blue";
|
|
2761
|
+
readonly textColor: "var(--color-primary)";
|
|
2762
|
+
} | {
|
|
2763
|
+
readonly label: "Completed";
|
|
2764
|
+
readonly color: "green";
|
|
2765
|
+
readonly textColor: "var(--color-success)";
|
|
2766
|
+
} | {
|
|
2767
|
+
readonly label: "Failed";
|
|
2768
|
+
readonly color: "red";
|
|
2769
|
+
readonly textColor: "var(--color-error)";
|
|
2770
|
+
} | {
|
|
2771
|
+
readonly label: "Warning";
|
|
2772
|
+
readonly color: "yellow";
|
|
2773
|
+
readonly textColor: "var(--color-warning)";
|
|
2774
|
+
};
|
|
2775
|
+
|
|
2776
|
+
interface DocTreeNavProps {
|
|
2777
|
+
files: DocFile[];
|
|
2778
|
+
selectedPath: string | null;
|
|
2779
|
+
onSelect: (path: string) => void;
|
|
2780
|
+
}
|
|
2781
|
+
/**
|
|
2782
|
+
* Renders a tree navigation for documentation files.
|
|
2783
|
+
* Builds a tree from flat file paths, supports nested collapsible directories.
|
|
2784
|
+
* index.mdx files represent their parent directory's page.
|
|
2785
|
+
*/
|
|
2786
|
+
declare function DocTreeNav({ files, selectedPath, onSelect }: DocTreeNavProps): react_jsx_runtime.JSX.Element;
|
|
2787
|
+
|
|
2788
|
+
interface KnowledgeBasePageProps {
|
|
2789
|
+
/** MDX renderer component. Pass your app's MdxRenderer since it's app-specific. */
|
|
2790
|
+
mdxRenderer?: ComponentType<{
|
|
2791
|
+
compiledSource: string;
|
|
2792
|
+
}>;
|
|
2793
|
+
}
|
|
2794
|
+
/**
|
|
2795
|
+
* Knowledge Base page -- sub-shell layout for viewing deployment documentation.
|
|
2796
|
+
*
|
|
2797
|
+
* Sidebar: deployment selector + doc tree navigation.
|
|
2798
|
+
* Content: MdxRenderer for selected file.
|
|
2799
|
+
*/
|
|
2800
|
+
declare function KnowledgeBasePage({ mdxRenderer: MdxRenderer }: KnowledgeBasePageProps): react_jsx_runtime.JSX.Element;
|
|
2801
|
+
|
|
2802
|
+
declare const TaskScheduler: () => react_jsx_runtime.JSX.Element;
|
|
2803
|
+
|
|
2804
|
+
interface CreateScheduleModalProps {
|
|
2805
|
+
opened: boolean;
|
|
2806
|
+
onClose: () => void;
|
|
2807
|
+
}
|
|
2808
|
+
declare function CreateScheduleModal({ opened, onClose }: CreateScheduleModalProps): react_jsx_runtime.JSX.Element;
|
|
2809
|
+
|
|
2810
|
+
interface DeleteScheduleModalProps {
|
|
2811
|
+
opened: boolean;
|
|
2812
|
+
onClose: () => void;
|
|
2813
|
+
onConfirm: () => void;
|
|
2814
|
+
schedule: TaskSchedule | null;
|
|
2815
|
+
isDeleting: boolean;
|
|
2816
|
+
}
|
|
2817
|
+
declare function DeleteScheduleModal({ opened, onClose, onConfirm, schedule, isDeleting }: DeleteScheduleModalProps): react_jsx_runtime.JSX.Element;
|
|
2818
|
+
|
|
2819
|
+
interface ScheduleDetailModalProps {
|
|
2820
|
+
opened: boolean;
|
|
2821
|
+
onClose: () => void;
|
|
2822
|
+
schedule: TaskSchedule | null;
|
|
2823
|
+
/** Resource deploy status (e.g. 'dev', 'prod'). Undefined = resource not found. */
|
|
2824
|
+
resourceStatus?: string;
|
|
2825
|
+
}
|
|
2826
|
+
declare function ScheduleDetailModal({ opened, onClose, schedule, resourceStatus }: ScheduleDetailModalProps): react_jsx_runtime.JSX.Element;
|
|
2827
|
+
|
|
2828
|
+
interface ScheduleCardProps {
|
|
2829
|
+
schedule: TaskSchedule;
|
|
2830
|
+
/** Resource deploy status from the resources list (e.g. 'dev', 'prod'). Undefined = not found. */
|
|
2831
|
+
resourceStatus?: string;
|
|
2832
|
+
onPause: (id: string) => void;
|
|
2833
|
+
onResume: (id: string) => void;
|
|
2834
|
+
onCancel: (id: string) => void;
|
|
2835
|
+
onDelete: (id: string) => void;
|
|
2836
|
+
onClick?: (schedule: TaskSchedule) => void;
|
|
2837
|
+
isLoading?: boolean;
|
|
2838
|
+
}
|
|
2839
|
+
declare function ScheduleCard({ schedule, resourceStatus, onPause, onResume, onCancel, onDelete, onClick, isLoading }: ScheduleCardProps): react_jsx_runtime.JSX.Element;
|
|
2840
|
+
|
|
2841
|
+
type ScheduleType = 'recurring' | 'relative' | 'absolute';
|
|
2842
|
+
interface ScheduleTypeSelectorProps {
|
|
2843
|
+
value: ScheduleType;
|
|
2844
|
+
onChange: (value: ScheduleType) => void;
|
|
2845
|
+
disabled?: boolean;
|
|
2846
|
+
}
|
|
2847
|
+
declare function ScheduleTypeSelector({ value, onChange, disabled }: ScheduleTypeSelectorProps): react_jsx_runtime.JSX.Element;
|
|
2848
|
+
|
|
2849
|
+
interface RecurringScheduleFormProps {
|
|
2850
|
+
value: Partial<RecurringScheduleConfig>;
|
|
2851
|
+
onChange: (value: Partial<RecurringScheduleConfig>) => void;
|
|
2852
|
+
disabled?: boolean;
|
|
2853
|
+
}
|
|
2854
|
+
declare function RecurringScheduleForm({ value, onChange, disabled }: RecurringScheduleFormProps): react_jsx_runtime.JSX.Element;
|
|
2855
|
+
|
|
2856
|
+
interface RelativeScheduleFormProps {
|
|
2857
|
+
value: Partial<RelativeScheduleConfig>;
|
|
2858
|
+
onChange: (value: Partial<RelativeScheduleConfig>) => void;
|
|
2859
|
+
disabled?: boolean;
|
|
2860
|
+
}
|
|
2861
|
+
declare function RelativeScheduleForm({ value, onChange, disabled }: RelativeScheduleFormProps): react_jsx_runtime.JSX.Element;
|
|
2862
|
+
|
|
2863
|
+
interface AbsoluteScheduleFormProps {
|
|
2864
|
+
value: Partial<AbsoluteScheduleConfig>;
|
|
2865
|
+
onChange: (value: Partial<AbsoluteScheduleConfig>) => void;
|
|
2866
|
+
disabled?: boolean;
|
|
2867
|
+
}
|
|
2868
|
+
declare function AbsoluteScheduleForm({ value, onChange, disabled }: AbsoluteScheduleFormProps): react_jsx_runtime.JSX.Element;
|
|
2869
|
+
|
|
2870
|
+
interface CommandQueueTaskRowProps {
|
|
2871
|
+
task: Task;
|
|
2872
|
+
onClick: () => void;
|
|
2873
|
+
onDelete: (taskId: string) => void;
|
|
2874
|
+
}
|
|
2875
|
+
declare function CommandQueueTaskRow({ task, onClick, onDelete }: CommandQueueTaskRowProps): react_jsx_runtime.JSX.Element;
|
|
2876
|
+
|
|
2877
|
+
interface CheckpointGroupProps {
|
|
2878
|
+
id: string | undefined;
|
|
2879
|
+
name: string;
|
|
2880
|
+
count: number;
|
|
2881
|
+
isActive: boolean;
|
|
2882
|
+
onClick: () => void;
|
|
2883
|
+
}
|
|
2884
|
+
/**
|
|
2885
|
+
* CheckpointGroup - Displays a checkpoint filter option with task count
|
|
2886
|
+
*
|
|
2887
|
+
* Follows DevResourceGroup pattern for styling and interaction.
|
|
2888
|
+
* Used in CommandQueueSidebarMiddle to show checkpoint filters.
|
|
2889
|
+
*/
|
|
2890
|
+
declare function CheckpointGroup({ name, count, isActive, onClick }: CheckpointGroupProps): react_jsx_runtime.JSX.Element;
|
|
2891
|
+
|
|
2892
|
+
type TaskFilterStatus = 'all' | 'pending' | 'completed' | 'expired';
|
|
2893
|
+
interface CommandQueueSidebarTopProps {
|
|
2894
|
+
status: TaskFilterStatus;
|
|
2895
|
+
onStatusChange: (status: TaskFilterStatus) => void;
|
|
2896
|
+
priorityRange: [number, number];
|
|
2897
|
+
onPriorityRangeChange: (range: [number, number]) => void;
|
|
2898
|
+
}
|
|
2899
|
+
declare const CommandQueueSidebarTop: ({ status, onStatusChange, priorityRange, onPriorityRangeChange }: CommandQueueSidebarTopProps) => react_jsx_runtime.JSX.Element;
|
|
2900
|
+
|
|
2901
|
+
interface CommandQueueSidebarProps {
|
|
2902
|
+
selectedCheckpoint: string | undefined;
|
|
2903
|
+
onSelectCheckpoint: (checkpoint: string | undefined) => void;
|
|
2904
|
+
status: TaskFilterStatus;
|
|
2905
|
+
onStatusChange: (status: TaskFilterStatus) => void;
|
|
2906
|
+
priorityRange: [number, number];
|
|
2907
|
+
onPriorityRangeChange: (range: [number, number]) => void;
|
|
2908
|
+
timeRange: TimeRange;
|
|
2909
|
+
}
|
|
2910
|
+
/**
|
|
2911
|
+
* CommandQueueSidebar - Main sidebar component with donut charts and checkpoint groups
|
|
2912
|
+
*/
|
|
2913
|
+
declare const CommandQueueSidebar: ({ selectedCheckpoint, onSelectCheckpoint, status, onStatusChange, priorityRange, onPriorityRangeChange, timeRange }: CommandQueueSidebarProps) => react_jsx_runtime.JSX.Element;
|
|
2914
|
+
|
|
2915
|
+
interface CommandQueueSidebarMiddleProps {
|
|
2916
|
+
selectedCheckpoint: string | undefined;
|
|
2917
|
+
onSelectCheckpoint: (checkpoint: string | undefined) => void;
|
|
2918
|
+
priorityRange: [number, number];
|
|
2919
|
+
status: 'all' | 'pending' | 'completed' | 'expired';
|
|
2920
|
+
timeRange: TimeRange;
|
|
2921
|
+
}
|
|
2922
|
+
/**
|
|
2923
|
+
* CommandQueueSidebarMiddle - Displays checkpoint filter groups
|
|
2924
|
+
*
|
|
2925
|
+
* Shows "All Tasks" option plus individual checkpoints with task counts.
|
|
2926
|
+
* Uses useCommandQueueTotals hook to fetch checkpoint data.
|
|
2927
|
+
*/
|
|
2928
|
+
declare function CommandQueueSidebarMiddle({ selectedCheckpoint, onSelectCheckpoint, priorityRange, status, timeRange }: CommandQueueSidebarMiddleProps): react_jsx_runtime.JSX.Element;
|
|
2929
|
+
|
|
2930
|
+
interface ContextUsageBadgeProps {
|
|
2931
|
+
currentTokens: number;
|
|
2932
|
+
maxTokens: number;
|
|
2933
|
+
}
|
|
2934
|
+
declare function ContextUsageBadge({ currentTokens, maxTokens }: ContextUsageBadgeProps): react_jsx_runtime.JSX.Element;
|
|
2935
|
+
|
|
2936
|
+
interface SessionMemoryProps {
|
|
2937
|
+
memory?: AgentMemory;
|
|
2938
|
+
}
|
|
2939
|
+
/**
|
|
2940
|
+
* Display session memory snapshot (session memory + history).
|
|
2941
|
+
* Shows the current state of the agent's memory in a JSON viewer.
|
|
2942
|
+
*/
|
|
2943
|
+
declare function SessionMemory({ memory }: SessionMemoryProps): react_jsx_runtime.JSX.Element;
|
|
2944
|
+
|
|
2945
|
+
interface CommandViewGraphRef {
|
|
2946
|
+
fitView: () => void;
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2949
|
+
interface CommandViewGraphProps {
|
|
2950
|
+
graph: CommandViewGraph$1;
|
|
2951
|
+
height?: number | string;
|
|
2952
|
+
/** Currently selected node ID */
|
|
2953
|
+
selectedNodeId?: string | null;
|
|
2954
|
+
/** Callback when node selection changes */
|
|
2955
|
+
onNodeSelect?: (id: string | null) => void;
|
|
2956
|
+
}
|
|
2957
|
+
/**
|
|
2958
|
+
* Main export - wrapped with ReactFlowProvider
|
|
2959
|
+
*/
|
|
2960
|
+
declare const CommandViewGraph: react.ForwardRefExoticComponent<CommandViewGraphProps & react.RefAttributes<CommandViewGraphRef>>;
|
|
2961
|
+
|
|
2962
|
+
type CommandViewNodeProps = NodeProps<Node<CommandViewNode$1 & Record<string, unknown>>>;
|
|
2963
|
+
declare const CommandViewNode: react.NamedExoticComponent<CommandViewNodeProps>;
|
|
2964
|
+
|
|
2965
|
+
interface CommandViewEdgeData extends Record<string, unknown> {
|
|
2966
|
+
relationship: RelationshipType;
|
|
2967
|
+
label?: string;
|
|
2968
|
+
animated?: boolean;
|
|
2969
|
+
dimmed?: boolean;
|
|
2970
|
+
edgeIndex?: number;
|
|
2971
|
+
totalEdges?: number;
|
|
2972
|
+
}
|
|
2973
|
+
type CommandViewEdgeProps = EdgeProps<Edge<CommandViewEdgeData, string>>;
|
|
2974
|
+
declare const CommandViewEdge: react.NamedExoticComponent<CommandViewEdgeProps>;
|
|
2975
|
+
|
|
2976
|
+
export { APIErrorAlert, AbsoluteScheduleForm, ActionModal, ActivityCard, ActivityFilters as ActivityFiltersBar, ActivityTable, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationEdge, AgentIterationNode, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, BusinessImpactCard, CONTAINER_CONSTANTS, CardHeader, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CommandViewEdge, CommandViewGraph, CommandViewNode, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, CostBreakdownCard, CostByModelTable, CostMetricsCard, CreateScheduleModal, CustomModal, CustomSelector, DeleteScheduleModal, DetailCardSkeleton, DocTreeNav, ElevasisLoader, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FilterBar, FormFieldRenderer, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, JsonViewer, KnowledgeBasePage, ListSkeleton, LogEntry, LogGroup, NavigationButton, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, NotificationBell, NotificationItem, NotificationList, NotificationPanel, PageNotFound, PageTitleCaption, RecurringScheduleForm, RelativeScheduleForm, ResourceCard, ResourceDefinitionSection, ResourceDetailPage, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, SHARED_VIZ_CONSTANTS, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, SessionMemory, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StyledMarkdown, TabCountBadge, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, VisualizerContainer, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionTimeline, catalogItemToResourceDefinition, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getLogLevelConfig, iconMap, showApiErrorNotification, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, useGraphBackgroundStyles, useGraphTheme, useNewKnowledgeMapLayout };
|
|
2977
|
+
export type { ActivityFiltersProps, ActivityTableProps, BaseEdgeProps, BaseExecutionLogsProps, CommandViewGraphRef, ContextViewerProps, CostByModelTableProps, ErrorAnalysisCardProps, ExecutionBreakdownTableProps, ExecutionHealthCardProps, ExecutionLogEntry, ExecutionLogsFiltersProps, ExecutionLogsTableProps, FitViewButtonVariant, GraphFitViewHandlerProps, JsonViewerProps, KnowledgeMapEdgeData, KnowledgeMapNodeData, LogLevel, NavigationButtonProps, ResourceHealthPanelProps, ScheduleType, SerializedKnowledgeMap, SerializedKnowledgeNode, StatCardProps, StyledMarkdownProps, TaskFilterStatus, TrendIndicatorProps };
|