@elevasis/ui 1.3.1 → 1.3.3

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.
Files changed (272) hide show
  1. package/dist/api/index.js +1 -1
  2. package/dist/auth/guards/AdminGuard.d.ts +32 -0
  3. package/dist/auth/guards/AdminGuard.d.ts.map +1 -0
  4. package/dist/auth/guards/ProtectedRoute.d.ts +60 -0
  5. package/dist/auth/guards/ProtectedRoute.d.ts.map +1 -0
  6. package/dist/auth/guards/__tests__/AdminGuard.test.d.ts +12 -0
  7. package/dist/auth/guards/__tests__/AdminGuard.test.d.ts.map +1 -0
  8. package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts +14 -0
  9. package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts.map +1 -0
  10. package/dist/auth/index.d.ts +14 -174
  11. package/dist/auth/index.d.ts.map +1 -0
  12. package/dist/auth/index.js +1 -1
  13. package/dist/{chunk-A3MCANC6.js → chunk-6IX5JZEH.js} +110 -50
  14. package/dist/chunk-GIFAF5ZS.js +313 -0
  15. package/dist/chunk-JQLT6HBI.js +850 -0
  16. package/dist/chunk-LFYO3MDC.js +58 -0
  17. package/dist/{chunk-72HOBFMP.js → chunk-LTQAAIGE.js} +3 -3
  18. package/dist/{chunk-JBFFCZI4.js → chunk-U34YGJQB.js} +1 -93
  19. package/dist/components/index.d.ts +1 -1353
  20. package/dist/components/index.js +1 -20
  21. package/dist/components/navigation/index.d.ts +2 -32
  22. package/dist/components/navigation/index.js +1 -29
  23. package/dist/execution/index.d.ts +63 -231
  24. package/dist/execution/index.js +1 -4
  25. package/dist/graph/index.css +0 -1
  26. package/dist/graph/index.d.ts +4 -203
  27. package/dist/graph/index.js +1 -1
  28. package/dist/hooks/command-queue/index.d.ts +7 -0
  29. package/dist/hooks/command-queue/index.d.ts.map +1 -0
  30. package/dist/hooks/command-queue/useCommandQueue.d.ts +33 -0
  31. package/dist/hooks/command-queue/useCommandQueue.d.ts.map +1 -0
  32. package/dist/hooks/command-queue/useCommandQueueTotals.d.ts +17 -0
  33. package/dist/hooks/command-queue/useCommandQueueTotals.d.ts.map +1 -0
  34. package/dist/hooks/command-queue/useDeleteTask.d.ts +5 -0
  35. package/dist/hooks/command-queue/useDeleteTask.d.ts.map +1 -0
  36. package/dist/hooks/command-queue/usePatchTask.d.ts +6 -0
  37. package/dist/hooks/command-queue/usePatchTask.d.ts.map +1 -0
  38. package/dist/hooks/command-queue/useSubmitAction.d.ts +29 -0
  39. package/dist/hooks/command-queue/useSubmitAction.d.ts.map +1 -0
  40. package/dist/hooks/executions/index.d.ts +16 -0
  41. package/dist/hooks/executions/index.d.ts.map +1 -0
  42. package/dist/hooks/executions/useBulkDeleteExecutions.d.ts +15 -0
  43. package/dist/hooks/executions/useBulkDeleteExecutions.d.ts.map +1 -0
  44. package/dist/hooks/executions/useCancelExecution.d.ts +20 -0
  45. package/dist/hooks/executions/useCancelExecution.d.ts.map +1 -0
  46. package/dist/hooks/executions/useDeleteExecution.d.ts +13 -0
  47. package/dist/hooks/executions/useDeleteExecution.d.ts.map +1 -0
  48. package/dist/hooks/executions/useExecuteAsync.d.ts +21 -0
  49. package/dist/hooks/executions/useExecuteAsync.d.ts.map +1 -0
  50. package/dist/hooks/executions/useExecution.d.ts +10 -0
  51. package/dist/hooks/executions/useExecution.d.ts.map +1 -0
  52. package/dist/hooks/executions/useExecutions.d.ts +16 -0
  53. package/dist/hooks/executions/useExecutions.d.ts.map +1 -0
  54. package/dist/hooks/executions/useResourceDefinition.d.ts +9 -0
  55. package/dist/hooks/executions/useResourceDefinition.d.ts.map +1 -0
  56. package/dist/hooks/executions/useResources.d.ts +15 -0
  57. package/dist/hooks/executions/useResources.d.ts.map +1 -0
  58. package/dist/hooks/executions/useRetryExecution.d.ts +16 -0
  59. package/dist/hooks/executions/useRetryExecution.d.ts.map +1 -0
  60. package/dist/hooks/feature-access/createUseFeatureAccess.d.ts +44 -0
  61. package/dist/hooks/feature-access/createUseFeatureAccess.d.ts.map +1 -0
  62. package/dist/hooks/feature-access/index.d.ts +2 -0
  63. package/dist/hooks/feature-access/index.d.ts.map +1 -0
  64. package/dist/hooks/index.d.ts +11 -4554
  65. package/dist/hooks/index.d.ts.map +1 -0
  66. package/dist/hooks/index.js +2 -4
  67. package/dist/hooks/monitoring/index.d.ts +9 -0
  68. package/dist/hooks/monitoring/index.d.ts.map +1 -0
  69. package/dist/hooks/monitoring/useActivities.d.ts +52 -0
  70. package/dist/hooks/monitoring/useActivities.d.ts.map +1 -0
  71. package/dist/hooks/monitoring/useCostSummary.d.ts +7 -0
  72. package/dist/hooks/monitoring/useCostSummary.d.ts.map +1 -0
  73. package/dist/hooks/monitoring/useExecutionHealth.d.ts +10 -0
  74. package/dist/hooks/monitoring/useExecutionHealth.d.ts.map +1 -0
  75. package/dist/hooks/monitoring/useExecutionLogs.d.ts +56 -0
  76. package/dist/hooks/monitoring/useExecutionLogs.d.ts.map +1 -0
  77. package/dist/hooks/monitoring/useNotifications.d.ts +11 -0
  78. package/dist/hooks/monitoring/useNotifications.d.ts.map +1 -0
  79. package/dist/hooks/notifications/index.d.ts +8 -0
  80. package/dist/hooks/notifications/index.d.ts.map +1 -0
  81. package/dist/hooks/notifications/useMarkAllAsRead.d.ts +2 -0
  82. package/dist/hooks/notifications/useMarkAllAsRead.d.ts.map +1 -0
  83. package/dist/hooks/notifications/useMarkAsRead.d.ts +2 -0
  84. package/dist/hooks/notifications/useMarkAsRead.d.ts.map +1 -0
  85. package/dist/hooks/notifications/useNotificationCount.d.ts +8 -0
  86. package/dist/hooks/notifications/useNotificationCount.d.ts.map +1 -0
  87. package/dist/hooks/observability/index.d.ts +19 -0
  88. package/dist/hooks/observability/index.d.ts.map +1 -0
  89. package/dist/hooks/observability/useBusinessImpact.d.ts +9 -0
  90. package/dist/hooks/observability/useBusinessImpact.d.ts.map +1 -0
  91. package/dist/hooks/observability/useCostBreakdown.d.ts +10 -0
  92. package/dist/hooks/observability/useCostBreakdown.d.ts.map +1 -0
  93. package/dist/hooks/observability/useCostByModel.d.ts +3 -0
  94. package/dist/hooks/observability/useCostByModel.d.ts.map +1 -0
  95. package/dist/hooks/observability/useCostTrends.d.ts +3 -0
  96. package/dist/hooks/observability/useCostTrends.d.ts.map +1 -0
  97. package/dist/hooks/observability/useDashboardMetrics.d.ts +3 -0
  98. package/dist/hooks/observability/useDashboardMetrics.d.ts.map +1 -0
  99. package/dist/hooks/observability/useErrorAnalysis.d.ts +7 -0
  100. package/dist/hooks/observability/useErrorAnalysis.d.ts.map +1 -0
  101. package/dist/hooks/observability/useErrorDetails.d.ts +20 -0
  102. package/dist/hooks/observability/useErrorDetails.d.ts.map +1 -0
  103. package/dist/hooks/observability/useErrorDistribution.d.ts +12 -0
  104. package/dist/hooks/observability/useErrorDistribution.d.ts.map +1 -0
  105. package/dist/hooks/observability/useErrorTrends.d.ts +12 -0
  106. package/dist/hooks/observability/useErrorTrends.d.ts.map +1 -0
  107. package/dist/hooks/observability/useResolveError.d.ts +17 -0
  108. package/dist/hooks/observability/useResolveError.d.ts.map +1 -0
  109. package/dist/hooks/observability/useTopFailingResources.d.ts +13 -0
  110. package/dist/hooks/observability/useTopFailingResources.d.ts.map +1 -0
  111. package/dist/hooks/published.d.ts +19 -4279
  112. package/dist/hooks/published.d.ts.map +1 -0
  113. package/dist/hooks/published.js +367 -4
  114. package/dist/hooks/scheduling/index.d.ts +5 -0
  115. package/dist/hooks/scheduling/index.d.ts.map +1 -0
  116. package/dist/hooks/scheduling/useSchedules.d.ts +185 -0
  117. package/dist/hooks/scheduling/useSchedules.d.ts.map +1 -0
  118. package/dist/hooks/sessions/index.d.ts +8 -0
  119. package/dist/hooks/sessions/index.d.ts.map +1 -0
  120. package/dist/hooks/sessions/useSessionExecutions.d.ts +13 -0
  121. package/dist/hooks/sessions/useSessionExecutions.d.ts.map +1 -0
  122. package/dist/hooks/sessions/useSessionMessages.d.ts +7 -0
  123. package/dist/hooks/sessions/useSessionMessages.d.ts.map +1 -0
  124. package/dist/hooks/sessions/useSessions.d.ts +26 -0
  125. package/dist/hooks/sessions/useSessions.d.ts.map +1 -0
  126. package/dist/index.css +0 -118
  127. package/dist/index.d.ts +15 -7889
  128. package/dist/index.d.ts.map +1 -0
  129. package/dist/index.js +1119 -24
  130. package/dist/initialization/InitializationProvider.d.ts +48 -0
  131. package/dist/initialization/InitializationProvider.d.ts.map +1 -0
  132. package/dist/initialization/hooks/useAppInitialization.d.ts +32 -0
  133. package/dist/initialization/hooks/useAppInitialization.d.ts.map +1 -0
  134. package/dist/initialization/index.d.ts +22 -2361
  135. package/dist/initialization/index.d.ts.map +1 -0
  136. package/dist/initialization/index.js +1 -1
  137. package/dist/organization/context/OrganizationProvider.d.ts +20 -0
  138. package/dist/organization/context/OrganizationProvider.d.ts.map +1 -0
  139. package/dist/organization/hooks/useOrgInitialization.d.ts +56 -0
  140. package/dist/organization/hooks/useOrgInitialization.d.ts.map +1 -0
  141. package/dist/organization/index.d.ts +21 -283
  142. package/dist/organization/index.d.ts.map +1 -0
  143. package/dist/organization/index.js +3 -3
  144. package/dist/profile/context/ProfileProvider.d.ts +27 -0
  145. package/dist/profile/context/ProfileProvider.d.ts.map +1 -0
  146. package/dist/profile/hooks/useUserProfile.d.ts +31 -0
  147. package/dist/profile/hooks/useUserProfile.d.ts.map +1 -0
  148. package/dist/profile/index.d.ts +14 -2290
  149. package/dist/profile/index.d.ts.map +1 -0
  150. package/dist/provider/CoreAuthKitInner.d.ts +12 -0
  151. package/dist/provider/CoreAuthKitInner.d.ts.map +1 -0
  152. package/dist/provider/ElevasisCoreProvider.d.ts +39 -0
  153. package/dist/provider/ElevasisCoreProvider.d.ts.map +1 -0
  154. package/dist/provider/ElevasisServiceContext.d.ts +31 -0
  155. package/dist/provider/ElevasisServiceContext.d.ts.map +1 -0
  156. package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts +2 -0
  157. package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts.map +1 -0
  158. package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts +2 -0
  159. package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts.map +1 -0
  160. package/dist/provider/index.d.ts +7 -372
  161. package/dist/provider/index.d.ts.map +1 -0
  162. package/dist/provider/index.js +3 -12
  163. package/dist/provider/published.d.ts +9 -263
  164. package/dist/provider/published.d.ts.map +1 -0
  165. package/dist/provider/published.js +5 -5
  166. package/dist/provider/types.d.ts +143 -0
  167. package/dist/provider/types.d.ts.map +1 -0
  168. package/dist/provider/types.js +1 -0
  169. package/dist/sdk-barrel.d.ts +20 -0
  170. package/dist/sdk-barrel.d.ts.map +1 -0
  171. package/dist/supabase/index.d.ts +0 -255
  172. package/dist/theme/cssVariables.d.ts +12 -0
  173. package/dist/theme/cssVariables.d.ts.map +1 -0
  174. package/dist/theme/cssVariables.js +93 -0
  175. package/dist/theme/index.d.ts +4 -0
  176. package/dist/theme/index.d.ts.map +1 -0
  177. package/dist/theme/index.js +1 -0
  178. package/dist/theme/presets/__tests__/getPreset.test.d.ts +2 -0
  179. package/dist/theme/presets/__tests__/getPreset.test.d.ts.map +1 -0
  180. package/dist/theme/presets/abyss.d.ts +3 -0
  181. package/dist/theme/presets/abyss.d.ts.map +1 -0
  182. package/dist/theme/presets/abyss.js +54 -0
  183. package/dist/theme/presets/aurora.d.ts +8 -0
  184. package/dist/theme/presets/aurora.d.ts.map +1 -0
  185. package/dist/theme/presets/aurora.js +59 -0
  186. package/dist/theme/presets/canopy.d.ts +3 -0
  187. package/dist/theme/presets/canopy.d.ts.map +1 -0
  188. package/dist/theme/presets/canopy.js +58 -0
  189. package/dist/theme/presets/cyber-flux.d.ts +8 -0
  190. package/dist/theme/presets/cyber-flux.d.ts.map +1 -0
  191. package/dist/theme/presets/cyber-flux.js +66 -0
  192. package/dist/theme/presets/cyber-strike.d.ts +9 -0
  193. package/dist/theme/presets/cyber-strike.d.ts.map +1 -0
  194. package/dist/theme/presets/cyber-strike.js +62 -0
  195. package/dist/theme/presets/cyber-void.d.ts +8 -0
  196. package/dist/theme/presets/cyber-void.d.ts.map +1 -0
  197. package/dist/theme/presets/cyber-void.js +62 -0
  198. package/dist/theme/presets/cyber-volt.d.ts +8 -0
  199. package/dist/theme/presets/cyber-volt.d.ts.map +1 -0
  200. package/dist/theme/presets/cyber-volt.js +66 -0
  201. package/dist/theme/presets/default.d.ts +4 -0
  202. package/dist/theme/presets/default.d.ts.map +1 -0
  203. package/dist/theme/presets/ember.d.ts +8 -0
  204. package/dist/theme/presets/ember.d.ts.map +1 -0
  205. package/dist/theme/presets/ember.js +63 -0
  206. package/dist/theme/presets/honey.d.ts +3 -0
  207. package/dist/theme/presets/honey.d.ts.map +1 -0
  208. package/dist/theme/presets/honey.js +62 -0
  209. package/dist/theme/presets/index.d.ts +6 -0
  210. package/dist/theme/presets/index.d.ts.map +1 -0
  211. package/dist/theme/presets/index.js +39 -0
  212. package/dist/theme/presets/midnight.d.ts +8 -0
  213. package/dist/theme/presets/midnight.d.ts.map +1 -0
  214. package/dist/theme/presets/midnight.js +68 -0
  215. package/dist/theme/presets/obsidian.d.ts +3 -0
  216. package/dist/theme/presets/obsidian.d.ts.map +1 -0
  217. package/dist/theme/presets/obsidian.js +56 -0
  218. package/dist/theme/presets/regal.d.ts +8 -0
  219. package/dist/theme/presets/regal.d.ts.map +1 -0
  220. package/dist/theme/presets/regal.js +63 -0
  221. package/dist/theme/presets/rose-gold.d.ts +8 -0
  222. package/dist/theme/presets/rose-gold.d.ts.map +1 -0
  223. package/dist/theme/presets/rose-gold.js +63 -0
  224. package/dist/theme/presets/slate.d.ts +3 -0
  225. package/dist/theme/presets/slate.d.ts.map +1 -0
  226. package/dist/theme/presets/slate.js +56 -0
  227. package/dist/theme/presets/tactical.d.ts +8 -0
  228. package/dist/theme/presets/tactical.d.ts.map +1 -0
  229. package/dist/theme/presets/tactical.js +57 -0
  230. package/dist/theme/presets/types.d.ts +26 -0
  231. package/dist/theme/presets/types.d.ts.map +1 -0
  232. package/dist/theme/presets/types.js +1 -0
  233. package/dist/utils/index.d.ts +1 -22
  234. package/dist/utils/index.js +1 -1
  235. package/package.json +4 -52
  236. package/dist/chunk-3KMDHCAR.js +0 -52
  237. package/dist/chunk-6BJOYF6E.js +0 -8
  238. package/dist/chunk-BLO4SISK.js +0 -113
  239. package/dist/chunk-HUWJXLLF.js +0 -681
  240. package/dist/chunk-JVAZHVNV.js +0 -110
  241. package/dist/chunk-JYSYHVLU.js +0 -379
  242. package/dist/chunk-NE36BUGQ.js +0 -146
  243. package/dist/chunk-O3PY6B6E.js +0 -749
  244. package/dist/chunk-OXVOHOP3.js +0 -661
  245. package/dist/chunk-PSLKGOBZ.js +0 -58
  246. package/dist/chunk-RJCA5672.js +0 -1664
  247. package/dist/chunk-TMFCNFLW.js +0 -107
  248. package/dist/chunk-TN3PU2WK.js +0 -748
  249. package/dist/chunk-TZPAA4RC.js +0 -1461
  250. package/dist/chunk-W7ZBF5AA.js +0 -1
  251. package/dist/chunk-YZ6GTZXL.js +0 -48
  252. package/dist/components/command-queue/index.css +0 -53
  253. package/dist/components/command-queue/index.d.ts +0 -204
  254. package/dist/components/command-queue/index.js +0 -12
  255. package/dist/components/forms/index.d.ts +0 -56
  256. package/dist/components/forms/index.js +0 -2
  257. package/dist/components/index.css +0 -443
  258. package/dist/components/monitoring/index.d.ts +0 -66
  259. package/dist/components/monitoring/index.js +0 -2
  260. package/dist/components/notifications/index.d.ts +0 -52
  261. package/dist/components/notifications/index.js +0 -5
  262. package/dist/components/resource-definition/index.css +0 -388
  263. package/dist/components/resource-definition/index.d.ts +0 -301
  264. package/dist/components/resource-definition/index.js +0 -3
  265. package/dist/display/index.css +0 -53
  266. package/dist/display/index.d.ts +0 -606
  267. package/dist/display/index.js +0 -7
  268. package/dist/execution/index.css +0 -388
  269. package/dist/provider/index.css +0 -61
  270. package/dist/{chunk-TYV5NJV2.js → chunk-BUZONXAW.js} +0 -0
  271. package/dist/{chunk-UMXDDEAG.js → chunk-SFF5MJEI.js} +1 -1
  272. /package/dist/{chunk-NXHL23JW.js → chunk-XXDDMASA.js} +0 -0
@@ -1 +0,0 @@
1
-
@@ -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 };
@@ -1,2 +0,0 @@
1
- import '../../chunk-W7ZBF5AA.js';
2
- export { FormFieldRenderer } from '../../chunk-PSLKGOBZ.js';