@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/chunk-W7ZBF5AA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/chunk-YZ6GTZXL.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// ../core/src/execution/engine/workflow/logging.ts
|
|
2
|
-
function isStepStartedContext(ctx) {
|
|
3
|
-
return ctx.contextType === "step-started" || "stepStatus" in ctx && ctx.stepStatus === "started";
|
|
4
|
-
}
|
|
5
|
-
function isStepCompletedContext(ctx) {
|
|
6
|
-
return ctx.contextType === "step-completed" || "stepStatus" in ctx && ctx.stepStatus === "completed";
|
|
7
|
-
}
|
|
8
|
-
function isStepFailedContext(ctx) {
|
|
9
|
-
return ctx.contextType === "step-failed" || "stepStatus" in ctx && ctx.stepStatus === "failed";
|
|
10
|
-
}
|
|
11
|
-
function isConditionalRouteContext(ctx) {
|
|
12
|
-
return ctx.contextType === "conditional-route" || "target" in ctx && "stepId" in ctx && !("stepStatus" in ctx);
|
|
13
|
-
}
|
|
14
|
-
function toWorkflowLogMessage(log) {
|
|
15
|
-
if (log.context?.type === "workflow") {
|
|
16
|
-
return {
|
|
17
|
-
level: log.level,
|
|
18
|
-
message: log.message,
|
|
19
|
-
timestamp: log.timestamp,
|
|
20
|
-
context: log.context
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
return {
|
|
24
|
-
level: log.level,
|
|
25
|
-
message: log.message,
|
|
26
|
-
timestamp: log.timestamp,
|
|
27
|
-
context: log.context
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// ../core/src/execution/engine/agent/observability/logging.ts
|
|
32
|
-
function isLifecycleEvent(ctx) {
|
|
33
|
-
return "stage" in ctx && ctx.stage !== void 0;
|
|
34
|
-
}
|
|
35
|
-
function isIterationEvent(ctx) {
|
|
36
|
-
return "eventType" in ctx && ctx.eventType !== void 0;
|
|
37
|
-
}
|
|
38
|
-
function isToolCallEvent(ctx) {
|
|
39
|
-
return "eventType" in ctx && ctx.eventType === "tool-call";
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// ../core/src/execution/engine/base/types.ts
|
|
43
|
-
var ResourceStatusColors = {
|
|
44
|
-
dev: "var(--color-primary)",
|
|
45
|
-
prod: "var(--color-success)"
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export { ResourceStatusColors, isConditionalRouteContext, isIterationEvent, isLifecycleEvent, isStepCompletedContext, isStepFailedContext, isStepStartedContext, isToolCallEvent, toWorkflowLogMessage };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/* src/components/display/StatCard.module.css */
|
|
2
|
-
.heroCard {
|
|
3
|
-
background: var(--glass-background);
|
|
4
|
-
backdrop-filter: var(--glass-blur);
|
|
5
|
-
border: 1px solid var(--color-border);
|
|
6
|
-
}
|
|
7
|
-
.iconRing {
|
|
8
|
-
position: relative;
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
width: 46px;
|
|
13
|
-
height: 46px;
|
|
14
|
-
border-radius: 50%;
|
|
15
|
-
background: color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
16
|
-
border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
|
|
17
|
-
color: var(--color-primary);
|
|
18
|
-
flex-shrink: 0;
|
|
19
|
-
box-shadow: 0 0 12px color-mix(in srgb, var(--color-primary) 15%, transparent);
|
|
20
|
-
}
|
|
21
|
-
.iconRingSm {
|
|
22
|
-
composes: iconRing;
|
|
23
|
-
width: 36px;
|
|
24
|
-
height: 36px;
|
|
25
|
-
box-shadow: 0 0 8px color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
26
|
-
}
|
|
27
|
-
.heroValue {
|
|
28
|
-
font-family: var(--elevasis-font-family-subtitle);
|
|
29
|
-
font-size: 1.85rem;
|
|
30
|
-
font-weight: 800;
|
|
31
|
-
line-height: 1;
|
|
32
|
-
letter-spacing: -0.02em;
|
|
33
|
-
font-variant-numeric: tabular-nums;
|
|
34
|
-
}
|
|
35
|
-
[data-mantine-color-scheme=dark] .heroValue {
|
|
36
|
-
text-shadow: 0 0 20px color-mix(in srgb, var(--color-primary) 20%, transparent);
|
|
37
|
-
}
|
|
38
|
-
.heroValueSm {
|
|
39
|
-
composes: heroValue;
|
|
40
|
-
font-size: 1.35rem;
|
|
41
|
-
font-weight: 700;
|
|
42
|
-
}
|
|
43
|
-
.heroLabel {
|
|
44
|
-
font-size: 0.68rem;
|
|
45
|
-
font-weight: 700;
|
|
46
|
-
text-transform: uppercase;
|
|
47
|
-
letter-spacing: 0.12em;
|
|
48
|
-
color: var(--color-text-dimmed);
|
|
49
|
-
}
|
|
50
|
-
.heroLabelSm {
|
|
51
|
-
composes: heroLabel;
|
|
52
|
-
font-size: 0.62rem;
|
|
53
|
-
}
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import { IconCheck } from '@tabler/icons-react';
|
|
5
|
-
import { UseFormReturnType } from '@mantine/form';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Shared form field types for dynamic form generation
|
|
9
|
-
* Used by: Command Queue, Execution Runner UI, future form-based features
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Supported form field types for action payloads
|
|
13
|
-
* Maps to Mantine form components
|
|
14
|
-
*/
|
|
15
|
-
type FormFieldType = 'text' | 'textarea' | 'number' | 'select' | 'checkbox' | 'radio' | 'richtext';
|
|
16
|
-
/**
|
|
17
|
-
* Form field definition
|
|
18
|
-
*/
|
|
19
|
-
interface FormField {
|
|
20
|
-
/** Field key in payload object */
|
|
21
|
-
name: string;
|
|
22
|
-
/** Field label for UI */
|
|
23
|
-
label: string;
|
|
24
|
-
/** Field type (determines UI component) */
|
|
25
|
-
type: FormFieldType;
|
|
26
|
-
/** Default value */
|
|
27
|
-
defaultValue?: unknown;
|
|
28
|
-
/** Required field */
|
|
29
|
-
required?: boolean;
|
|
30
|
-
/** Placeholder text */
|
|
31
|
-
placeholder?: string;
|
|
32
|
-
/** Help text */
|
|
33
|
-
description?: string;
|
|
34
|
-
/** Options for select/radio */
|
|
35
|
-
options?: Array<{
|
|
36
|
-
label: string;
|
|
37
|
-
value: string | number;
|
|
38
|
-
}>;
|
|
39
|
-
/** Min/max for number */
|
|
40
|
-
min?: number;
|
|
41
|
-
max?: number;
|
|
42
|
-
/** Path to context value for pre-filling (dot notation, e.g., 'proposal.summary') */
|
|
43
|
-
defaultValueFromContext?: string;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Form schema for action payload collection
|
|
47
|
-
*/
|
|
48
|
-
interface FormSchema {
|
|
49
|
-
/** Form title */
|
|
50
|
-
title?: string;
|
|
51
|
-
/** Form description */
|
|
52
|
-
description?: string;
|
|
53
|
-
/** Form fields */
|
|
54
|
-
fields: FormField[];
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Action configuration for HITL tasks
|
|
59
|
-
* Defines available user actions and their behavior
|
|
60
|
-
*/
|
|
61
|
-
interface ActionConfig {
|
|
62
|
-
/** Unique action identifier (e.g., 'approve', 'retry', 'escalate') */
|
|
63
|
-
id: string;
|
|
64
|
-
/** Display label for UI button */
|
|
65
|
-
label: string;
|
|
66
|
-
/** Button variant/style */
|
|
67
|
-
type: 'primary' | 'secondary' | 'danger' | 'outline';
|
|
68
|
-
/** Tabler icon name (e.g., 'IconCheck', 'IconRefresh') */
|
|
69
|
-
icon?: string;
|
|
70
|
-
/** Button color (Mantine theme colors) */
|
|
71
|
-
color?: string;
|
|
72
|
-
/** Button variant (Mantine button variant, e.g., 'light', 'filled', 'outline') */
|
|
73
|
-
variant?: string;
|
|
74
|
-
/** Execution target (agent/workflow to invoke) */
|
|
75
|
-
target?: {
|
|
76
|
-
resourceType: 'agent' | 'workflow';
|
|
77
|
-
resourceId: string;
|
|
78
|
-
/**
|
|
79
|
-
* Optional session ID for agent continuation.
|
|
80
|
-
* If provided, invokes a new turn on the existing session instead of standalone execution.
|
|
81
|
-
* Only valid when resourceType is 'agent'.
|
|
82
|
-
*/
|
|
83
|
-
sessionId?: string;
|
|
84
|
-
};
|
|
85
|
-
/** Form schema for collecting action-specific data */
|
|
86
|
-
form?: FormSchema;
|
|
87
|
-
/** Payload template for pre-filling forms */
|
|
88
|
-
payloadTemplate?: unknown;
|
|
89
|
-
/** Requires confirmation dialog */
|
|
90
|
-
requiresConfirmation?: boolean;
|
|
91
|
-
/** Confirmation message */
|
|
92
|
-
confirmationMessage?: string;
|
|
93
|
-
/** Help text / tooltip */
|
|
94
|
-
description?: string;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Origin resource type - where an execution/task originated from.
|
|
99
|
-
* Used for audit trails and tracking execution lineage.
|
|
100
|
-
*/
|
|
101
|
-
type OriginResourceType = 'agent' | 'workflow' | 'scheduler' | 'api';
|
|
102
|
-
/**
|
|
103
|
-
* Origin tracking metadata - who/what created this execution/task.
|
|
104
|
-
* Used by both TaskScheduler and CommandQueue for complete audit trails.
|
|
105
|
-
*/
|
|
106
|
-
interface OriginTracking {
|
|
107
|
-
originExecutionId: string;
|
|
108
|
-
originResourceType: OriginResourceType;
|
|
109
|
-
originResourceId: string;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Command queue task with flexible action system
|
|
114
|
-
*/
|
|
115
|
-
interface Task extends OriginTracking {
|
|
116
|
-
id: string;
|
|
117
|
-
organizationId: string;
|
|
118
|
-
actions: ActionConfig[];
|
|
119
|
-
context: unknown;
|
|
120
|
-
selectedAction?: string;
|
|
121
|
-
actionPayload?: unknown;
|
|
122
|
-
description?: string;
|
|
123
|
-
priority: number;
|
|
124
|
-
/** Optional checkpoint identifier for grouping related human approval tasks */
|
|
125
|
-
humanCheckpoint?: string;
|
|
126
|
-
status: TaskStatus;
|
|
127
|
-
/**
|
|
128
|
-
* Target resource tracking — mirrors origin columns.
|
|
129
|
-
* Set when task is created; patchable to redirect execution to a different resource.
|
|
130
|
-
*/
|
|
131
|
-
targetResourceId?: string;
|
|
132
|
-
targetResourceType?: 'agent' | 'workflow';
|
|
133
|
-
/**
|
|
134
|
-
* Execution ID for the action that runs AFTER user approval.
|
|
135
|
-
* NULL until execution starts.
|
|
136
|
-
*
|
|
137
|
-
* Naming distinction:
|
|
138
|
-
* - originExecutionId = Parent execution that CREATED the HITL task
|
|
139
|
-
* - targetExecutionId = Child execution that RUNS AFTER user approval
|
|
140
|
-
*/
|
|
141
|
-
targetExecutionId?: string;
|
|
142
|
-
createdAt: Date;
|
|
143
|
-
completedAt?: Date;
|
|
144
|
-
completedBy?: string;
|
|
145
|
-
expiresAt?: Date;
|
|
146
|
-
idempotencyKey?: string | null;
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Task status values
|
|
150
|
-
* - pending: awaiting action
|
|
151
|
-
* - processing: execution in progress after user approval
|
|
152
|
-
* - completed: action was taken and execution succeeded
|
|
153
|
-
* - failed: execution failed, task can be retried
|
|
154
|
-
* - expired: timed out before action
|
|
155
|
-
*/
|
|
156
|
-
type TaskStatus = 'pending' | 'processing' | 'completed' | 'failed' | 'expired';
|
|
157
|
-
|
|
158
|
-
interface TaskCardProps {
|
|
159
|
-
task: Task;
|
|
160
|
-
onViewExecution?: (params: {
|
|
161
|
-
resourceType: string;
|
|
162
|
-
resourceId: string;
|
|
163
|
-
executionId: string;
|
|
164
|
-
}) => void;
|
|
165
|
-
richTextRenderer?: (props: {
|
|
166
|
-
content: string;
|
|
167
|
-
onChange: (content: string) => void;
|
|
168
|
-
placeholder?: string;
|
|
169
|
-
}) => ReactNode;
|
|
170
|
-
}
|
|
171
|
-
declare function TaskCard({ task, onViewExecution, richTextRenderer }: TaskCardProps): react_jsx_runtime.JSX.Element;
|
|
172
|
-
|
|
173
|
-
interface ActionModalProps {
|
|
174
|
-
action: ActionConfig;
|
|
175
|
-
task: Task;
|
|
176
|
-
opened: boolean;
|
|
177
|
-
onClose: () => void;
|
|
178
|
-
onSubmit: (payload: unknown, notes?: string) => void;
|
|
179
|
-
richTextRenderer?: (props: {
|
|
180
|
-
content: string;
|
|
181
|
-
onChange: (content: string) => void;
|
|
182
|
-
placeholder?: string;
|
|
183
|
-
}) => ReactNode;
|
|
184
|
-
error?: unknown;
|
|
185
|
-
isPending?: boolean;
|
|
186
|
-
}
|
|
187
|
-
declare function ActionModal({ action, task, opened, onClose, onSubmit, richTextRenderer, error, isPending }: ActionModalProps): react_jsx_runtime.JSX.Element | null;
|
|
188
|
-
|
|
189
|
-
declare const iconMap: Record<string, typeof IconCheck>;
|
|
190
|
-
/** Allowed icon names: IconCheck, IconX, IconRefresh, IconAlertTriangle, IconEdit, IconEye, IconRocket, IconMessageCircle, IconArrowUp, IconClock, IconFileText, IconSend, IconMail */
|
|
191
|
-
declare function getIcon(iconName?: string): typeof IconCheck | null;
|
|
192
|
-
|
|
193
|
-
interface FormFieldRendererProps {
|
|
194
|
-
field: FormField;
|
|
195
|
-
form: UseFormReturnType<any>;
|
|
196
|
-
richTextRenderer?: (props: {
|
|
197
|
-
content: string;
|
|
198
|
-
onChange: (content: string) => void;
|
|
199
|
-
placeholder?: string;
|
|
200
|
-
}) => ReactNode;
|
|
201
|
-
}
|
|
202
|
-
declare function FormFieldRenderer({ field, form, richTextRenderer }: FormFieldRendererProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
203
|
-
|
|
204
|
-
export { ActionModal, FormFieldRenderer, TaskCard, getIcon, iconMap };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { ActionModal, TaskCard, getIcon, iconMap } from '../../chunk-JYSYHVLU.js';
|
|
2
|
-
import '../../chunk-NXHL23JW.js';
|
|
3
|
-
export { FormFieldRenderer } from '../../chunk-PSLKGOBZ.js';
|
|
4
|
-
import '../../chunk-O3PY6B6E.js';
|
|
5
|
-
import '../../chunk-3KMDHCAR.js';
|
|
6
|
-
import '../../chunk-YZ6GTZXL.js';
|
|
7
|
-
import '../../chunk-TIRMFDM4.js';
|
|
8
|
-
import '../../chunk-JVAZHVNV.js';
|
|
9
|
-
import '../../chunk-4VGWQ5AN.js';
|
|
10
|
-
import '../../chunk-KA7LO7U5.js';
|
|
11
|
-
import '../../chunk-7PLEQFHO.js';
|
|
12
|
-
import '../../chunk-Q7DJKLEN.js';
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import { UseFormReturnType } from '@mantine/form';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Shared form field types for dynamic form generation
|
|
8
|
-
* Used by: Command Queue, Execution Runner UI, future form-based features
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Supported form field types for action payloads
|
|
12
|
-
* Maps to Mantine form components
|
|
13
|
-
*/
|
|
14
|
-
type FormFieldType = 'text' | 'textarea' | 'number' | 'select' | 'checkbox' | 'radio' | 'richtext';
|
|
15
|
-
/**
|
|
16
|
-
* Form field definition
|
|
17
|
-
*/
|
|
18
|
-
interface FormField {
|
|
19
|
-
/** Field key in payload object */
|
|
20
|
-
name: string;
|
|
21
|
-
/** Field label for UI */
|
|
22
|
-
label: string;
|
|
23
|
-
/** Field type (determines UI component) */
|
|
24
|
-
type: FormFieldType;
|
|
25
|
-
/** Default value */
|
|
26
|
-
defaultValue?: unknown;
|
|
27
|
-
/** Required field */
|
|
28
|
-
required?: boolean;
|
|
29
|
-
/** Placeholder text */
|
|
30
|
-
placeholder?: string;
|
|
31
|
-
/** Help text */
|
|
32
|
-
description?: string;
|
|
33
|
-
/** Options for select/radio */
|
|
34
|
-
options?: Array<{
|
|
35
|
-
label: string;
|
|
36
|
-
value: string | number;
|
|
37
|
-
}>;
|
|
38
|
-
/** Min/max for number */
|
|
39
|
-
min?: number;
|
|
40
|
-
max?: number;
|
|
41
|
-
/** Path to context value for pre-filling (dot notation, e.g., 'proposal.summary') */
|
|
42
|
-
defaultValueFromContext?: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface FormFieldRendererProps {
|
|
46
|
-
field: FormField;
|
|
47
|
-
form: UseFormReturnType<any>;
|
|
48
|
-
richTextRenderer?: (props: {
|
|
49
|
-
content: string;
|
|
50
|
-
onChange: (content: string) => void;
|
|
51
|
-
placeholder?: string;
|
|
52
|
-
}) => ReactNode;
|
|
53
|
-
}
|
|
54
|
-
declare function FormFieldRenderer({ field, form, richTextRenderer }: FormFieldRendererProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
55
|
-
|
|
56
|
-
export { FormFieldRenderer };
|