@datatechsolutions/ui 2.11.81 → 2.11.83

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 (57) hide show
  1. package/dist/astrlabe/contracts.d.mts +5 -0
  2. package/dist/astrlabe/contracts.d.ts +5 -0
  3. package/dist/astrlabe/index.d.mts +59 -82
  4. package/dist/astrlabe/index.d.ts +59 -82
  5. package/dist/astrlabe/index.js +179 -4777
  6. package/dist/astrlabe/index.js.map +1 -1
  7. package/dist/astrlabe/index.mjs +3 -4740
  8. package/dist/astrlabe/index.mjs.map +1 -1
  9. package/dist/astrlabe/workflow-canvas.d.mts +69 -5
  10. package/dist/astrlabe/workflow-canvas.d.ts +69 -5
  11. package/dist/chunk-6PBTB5ZX.js +165 -0
  12. package/dist/chunk-6PBTB5ZX.js.map +1 -0
  13. package/dist/chunk-HZ4LOVHM.js +46 -0
  14. package/dist/chunk-HZ4LOVHM.js.map +1 -0
  15. package/dist/chunk-JFWZHROG.js +4996 -0
  16. package/dist/chunk-JFWZHROG.js.map +1 -0
  17. package/dist/chunk-UHHPBREK.mjs +135 -0
  18. package/dist/chunk-UHHPBREK.mjs.map +1 -0
  19. package/dist/chunk-UVGMKHWH.mjs +4951 -0
  20. package/dist/chunk-UVGMKHWH.mjs.map +1 -0
  21. package/dist/chunk-ZJPNP2YW.mjs +44 -0
  22. package/dist/chunk-ZJPNP2YW.mjs.map +1 -0
  23. package/dist/{workflow-canvas-NSxfr5dy.d.ts → index-AioB90qq.d.mts} +2 -67
  24. package/dist/{workflow-canvas-D4928AfA.d.mts → index-D5ai0cGZ.d.ts} +2 -67
  25. package/dist/platform/index.d.mts +41 -0
  26. package/dist/platform/index.d.ts +41 -0
  27. package/dist/platform/index.js +237 -0
  28. package/dist/platform/index.js.map +1 -0
  29. package/dist/platform/index.mjs +109 -0
  30. package/dist/platform/index.mjs.map +1 -0
  31. package/dist/platform/pages/index.d.mts +272 -0
  32. package/dist/platform/pages/index.d.ts +272 -0
  33. package/dist/platform/pages/index.js +1793 -0
  34. package/dist/platform/pages/index.js.map +1 -0
  35. package/dist/platform/pages/index.mjs +1777 -0
  36. package/dist/platform/pages/index.mjs.map +1 -0
  37. package/dist/platform/rbac.d.mts +41 -0
  38. package/dist/platform/rbac.d.ts +41 -0
  39. package/dist/platform/rbac.js +13 -0
  40. package/dist/platform/rbac.js.map +1 -0
  41. package/dist/platform/rbac.mjs +4 -0
  42. package/dist/platform/rbac.mjs.map +1 -0
  43. package/dist/platform/utils/index.d.mts +32 -0
  44. package/dist/platform/utils/index.d.ts +32 -0
  45. package/dist/platform/utils/index.js +131 -0
  46. package/dist/platform/utils/index.js.map +1 -0
  47. package/dist/platform/utils/index.mjs +119 -0
  48. package/dist/platform/utils/index.mjs.map +1 -0
  49. package/dist/platform/windsock-admin-client.d.mts +57 -0
  50. package/dist/platform/windsock-admin-client.d.ts +57 -0
  51. package/dist/platform/windsock-admin-client.js +125 -0
  52. package/dist/platform/windsock-admin-client.js.map +1 -0
  53. package/dist/platform/windsock-admin-client.mjs +4 -0
  54. package/dist/platform/windsock-admin-client.mjs.map +1 -0
  55. package/dist/rule-form-F5jBOeqk.d.mts +79 -0
  56. package/dist/rule-form-F5jBOeqk.d.ts +79 -0
  57. package/package.json +27 -1
@@ -411,6 +411,11 @@ type AgentPersistPayload = {
411
411
  status?: string;
412
412
  enabledToolIds?: string[];
413
413
  metadata?: Record<string, unknown>;
414
+ /** Structured-output contract — when set, the engine parses + validates
415
+ * the LLM's response against this schema. `undefined` clears any
416
+ * previously-stored schema. See `AgentOutputSchema` for the supported
417
+ * JSON Schema subset. */
418
+ outputSchema?: AgentOutputSchema;
414
419
  };
415
420
  type AgentModel = {
416
421
  id: string;
@@ -411,6 +411,11 @@ type AgentPersistPayload = {
411
411
  status?: string;
412
412
  enabledToolIds?: string[];
413
413
  metadata?: Record<string, unknown>;
414
+ /** Structured-output contract — when set, the engine parses + validates
415
+ * the LLM's response against this schema. `undefined` clears any
416
+ * previously-stored schema. See `AgentOutputSchema` for the supported
417
+ * JSON Schema subset. */
418
+ outputSchema?: AgentOutputSchema;
414
419
  };
415
420
  type AgentModel = {
416
421
  id: string;
@@ -1,11 +1,15 @@
1
- import { A as AgentWithPrompts, a as AgentNodeData, T as ToolCanvasData, R as RuleNodeData, E as EntityNodeData, M as ModelProviderNodeData, S as StartNodeData, b as EndNodeData, I as IfElseNodeData, C as CodeNodeData, H as HttpRequestNodeData, c as TemplateTransformNodeData, d as IterationNodeData, K as KnowledgeBaseNodeData, e as AnswerNodeData, Q as QuestionClassifierNodeData, P as ParameterExtractorNodeData, V as VariableAssignerNodeData, f as VariableAggregatorNodeData, D as DocumentExtractorNodeData, L as ListOperatorNodeData, g as IterationStartNodeData, N as NoteNodeData, G as GroupNodeData, W as WorkflowEntityDefinition, h as WorkspaceProps } from '../workflow-canvas-D4928AfA.mjs';
2
- export { i as AgentNodeTool, j as Workspace } from '../workflow-canvas-D4928AfA.mjs';
1
+ import { WorkspaceProps } from './workflow-canvas.mjs';
2
+ export { Workspace } from './workflow-canvas.mjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { Workflow, WorkflowGraph, AgentModel, WorkflowTool, AgentRule, AgentPersistPayload, LogicNodeConfig, AgentOutputSchema, AgentTool, WorkflowRun } from './contracts.mjs';
5
5
  export { AgentNodeConfig, ModelProviderNodeConfig, ModelProviderType } from './contracts.mjs';
6
+ import { A as AgentWithPrompts, a as AgentNodeData, T as ToolCanvasData, R as RuleNodeData, E as EntityNodeData, M as ModelProviderNodeData, S as StartNodeData, b as EndNodeData, I as IfElseNodeData, C as CodeNodeData, H as HttpRequestNodeData, c as TemplateTransformNodeData, d as IterationNodeData, K as KnowledgeBaseNodeData, e as AnswerNodeData, Q as QuestionClassifierNodeData, P as ParameterExtractorNodeData, V as VariableAssignerNodeData, f as VariableAggregatorNodeData, D as DocumentExtractorNodeData, L as ListOperatorNodeData, g as IterationStartNodeData, N as NoteNodeData, G as GroupNodeData, W as WorkflowEntityDefinition } from '../index-AioB90qq.mjs';
7
+ export { h as AgentNodeTool } from '../index-AioB90qq.mjs';
6
8
  import * as React$1 from 'react';
7
9
  import { ReactNode, ComponentProps } from 'react';
8
10
  export { GraphNodeBadge, GraphNodeHeader, GraphNodeIconBubble, GraphNodeMeta } from './graph-node.mjs';
11
+ import { a as RuleCondition, b as RuleAction } from '../rule-form-F5jBOeqk.mjs';
12
+ export { c as RULE_STATUS_OPTIONS, d as RuleConditionOperator, e as RuleForm, R as RuleFormValue, f as RuleStatus, T as TIMEZONE_OPTIONS, g as TimeWindow, h as defaultRuleForm } from '../rule-form-F5jBOeqk.mjs';
9
13
  import { D as DynamicIslandConfirm$1 } from '../dynamic-island-confirm-BKsZkAEP.mjs';
10
14
  import * as zustand from 'zustand';
11
15
  import { Node, Edge } from '@xyflow/react';
@@ -286,57 +290,56 @@ type OutputSchemaBuilderProps = {
286
290
  declare function OutputSchemaBuilder({ value, onChange, depth }: OutputSchemaBuilderProps): react_jsx_runtime.JSX.Element;
287
291
  declare function defaultAgentOutputSchema(): AgentOutputSchema;
288
292
 
289
- /**
290
- * Rule editing types.
291
- *
292
- * Mirrors the shape the Rust `RuleExecutor`
293
- * (`lambda-rs/crates/astrlabe-handlers/src/engine/executors/rule.rs`) reads
294
- * from `astrlabe.agent_rules.condition` + `action`. The UI builder below
295
- * writes exactly this shape, so round-tripping through the backend is a
296
- * no-op.
297
- */
298
- type SimpleComparisonOperator = 'truthy' | 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains';
299
- type RuleConditionOperator = SimpleComparisonOperator | 'regex_match' | 'threshold' | 'time_window' | 'boolean_expression';
300
- type TimeWindow = {
301
- startHour: number;
302
- endHour: number;
303
- startMinute?: number;
304
- endMinute?: number;
305
- /** 0 = Sunday, 6 = Saturday. Omit to match every day. */
306
- daysOfWeek?: number[];
293
+ type ExecutionTimelineStatus = 'completed' | 'running' | 'failed' | 'pending' | 'skipped';
294
+ type ExecutionTimelineMetrics = {
295
+ tokensIn?: number;
296
+ tokensOut?: number;
297
+ costUsd?: number;
298
+ provider?: string;
299
+ model?: string;
307
300
  };
308
- /**
309
- * Canonical rule-condition shape. The executor branches on `operator`,
310
- * so every form tree ultimately serializes to this.
311
- */
312
- type RuleCondition = {
313
- operator: RuleConditionOperator;
314
- /** Simple operators + regex_match + threshold + time_window */
315
- field?: string;
316
- /** Simple operators + threshold */
317
- value?: string | number | boolean | null;
318
- /** regex_match */
319
- pattern?: string;
320
- /** threshold which direction `value` is compared in. */
321
- comparison?: 'gt' | 'gte' | 'lt' | 'lte';
322
- /** time_window */
323
- timezone?: string;
324
- windows?: TimeWindow[];
325
- /** boolean_expression */
326
- combinator?: 'and' | 'or';
327
- operands?: RuleCondition[];
328
- };
329
- type RuleAction = {
330
- type: string;
331
- params?: Record<string, unknown>;
332
- };
333
- /** `agent_rules.status` free-form string — keep the UI picker aligned
334
- * with the values the engine / audit trail recognizes today. */
335
- declare const RULE_STATUS_OPTIONS: readonly ["draft", "active", "archived"];
336
- type RuleStatus = (typeof RULE_STATUS_OPTIONS)[number];
337
- declare const TIMEZONE_OPTIONS: readonly ["UTC", "America/Sao_Paulo", "America/New_York", "America/Los_Angeles", "Europe/London", "Europe/Lisbon"];
338
-
339
- type Props$2 = {
301
+ type ExecutionTimelineEntry = {
302
+ nodeId: string;
303
+ nodeType: string;
304
+ status: ExecutionTimelineStatus;
305
+ startedAt: string | null;
306
+ completedAt: string | null;
307
+ durationMs: number | null;
308
+ inputs?: Record<string, unknown>;
309
+ outputs?: Record<string, unknown>;
310
+ error?: string | null;
311
+ metrics?: ExecutionTimelineMetrics;
312
+ };
313
+ type ExecutionTimelineLabels = {
314
+ status: string;
315
+ duration: string;
316
+ inputs: string;
317
+ outputs: string;
318
+ error: string;
319
+ started: string;
320
+ completed: string;
321
+ pending: string;
322
+ running: string;
323
+ failed: string;
324
+ skipped: string;
325
+ selectNode: string;
326
+ model: string;
327
+ tokens: string;
328
+ cost: string;
329
+ /** Used as the empty-state heading when `entries` is empty. */
330
+ empty?: string;
331
+ };
332
+ type ExecutionTimelinePanelProps = {
333
+ entries: ExecutionTimelineEntry[];
334
+ labels: ExecutionTimelineLabels;
335
+ /** When set, drives selection from the parent. Useful when the page
336
+ * syncs the selection with a URL query param. */
337
+ selectedNodeId?: string;
338
+ onSelect?: (nodeId: string) => void;
339
+ };
340
+ declare function ExecutionTimelinePanel({ entries, labels, selectedNodeId, onSelect, }: ExecutionTimelinePanelProps): react_jsx_runtime.JSX.Element;
341
+
342
+ type Props$1 = {
340
343
  value: RuleCondition;
341
344
  onChange: (next: RuleCondition) => void;
342
345
  /** Recursion depth. Boolean_expression is capped at one level to keep
@@ -345,10 +348,10 @@ type Props$2 = {
345
348
  * operands. */
346
349
  depth?: number;
347
350
  };
348
- declare function RuleConditionBuilder({ value, onChange, depth }: Props$2): react_jsx_runtime.JSX.Element;
351
+ declare function RuleConditionBuilder({ value, onChange, depth }: Props$1): react_jsx_runtime.JSX.Element;
349
352
  declare function defaultRuleCondition(): RuleCondition;
350
353
 
351
- type Props$1 = {
354
+ type Props = {
352
355
  value: RuleAction;
353
356
  onChange: (next: RuleAction) => void;
354
357
  };
@@ -357,35 +360,9 @@ type Props$1 = {
357
360
  * executor contract. The `custom` type drops to a raw key/value editor for
358
361
  * actions the UI doesn't have a dedicated template for.
359
362
  */
360
- declare function RuleActionBuilder({ value, onChange }: Props$1): react_jsx_runtime.JSX.Element;
363
+ declare function RuleActionBuilder({ value, onChange }: Props): react_jsx_runtime.JSX.Element;
361
364
  declare function defaultRuleAction(): RuleAction;
362
365
 
363
- type RuleFormValue = {
364
- ruleId?: string;
365
- name: string;
366
- description?: string;
367
- enabled: boolean;
368
- priority: number;
369
- status?: RuleStatus;
370
- validFrom?: string | null;
371
- validUntil?: string | null;
372
- tags?: string[];
373
- condition: RuleCondition;
374
- action: RuleAction;
375
- };
376
- type Props = {
377
- value: RuleFormValue;
378
- onChange: (next: RuleFormValue) => void;
379
- };
380
- /**
381
- * Full-field rule editor used inside the create/edit modal. Composes the
382
- * visual condition + action builders and exposes the schedule / tagging /
383
- * lifecycle fields that the `agent_rules` entity has but the old JSON-
384
- * textarea form never surfaced.
385
- */
386
- declare function RuleForm({ value, onChange }: Props): react_jsx_runtime.JSX.Element;
387
- declare function defaultRuleForm(): RuleFormValue;
388
-
389
366
  type ModelProvider = {
390
367
  id: string;
391
368
  name: string;
@@ -886,4 +863,4 @@ declare function getEntityBadgeColor(entityKey: string | undefined): string;
886
863
  declare function getEntityHandleColor(entityKey: string | undefined): string;
887
864
  declare function getEntityMinimapColor(entityKey: string | undefined): string;
888
865
 
889
- export { AgentFlowNode, type AgentFramework, AgentModal, AgentNodeData, AgentOutputSchema, AgentToolFlowNode, AgentWithPrompts, AmazonNovaIcon, AnswerFlowNode, AnswerNodeData, AnthropicIcon, AnthropicModelIcon, AutoSaveWorkspace, type AutoSaveWorkspaceProps, CodeFlowNode, CodeNodeData, CrewAIIcon, DocumentExtractorFlowNode, DocumentExtractorNodeData, DslExportModal, DslImportModal, DynamicIslandConfirm, type DynamicIslandConfirmProps, EndFlowNode, EndNodeData, EntityFlowNode, EntityNodeData, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, GroupNodeData, HttpRequestFlowNode, HttpRequestNodeData, IfElseFlowNode, IfElseNodeData, IterationFlowNode, IterationNodeData, IterationStartFlowNode, IterationStartNodeData, KnowledgeBaseFlowNode, KnowledgeBaseNodeData, LOGIC_ICON_MAP, LOGIC_NODE_BADGE_COLORS, LOGIC_NODE_GRADIENTS, LOGIC_NODE_HANDLE_COLORS, LangChainIcon, LayoutDirection, ListOperatorFlowNode, ListOperatorNodeData, LogicNodeModal, MINIMAP_NODE_COLORS, MetaLlamaIcon, type ModelProvider, ModelProviderFlowNode, ModelProviderNodeData, NODE_EXECUTION_ACCENT_COLORS, NodeCard, NodeContextMenu, NodePalette, type NodeRunResult, NoteFlowNode, NoteNodeData, OpenAIIcon, OutputSchemaBuilder, type OutputSchemaBuilderProps, PanelContextMenu, ParameterExtractorFlowNode, ParameterExtractorNodeData, PipelineSettingsModal, type PipelineSettingsPatch, PreviewPanel, type PreviewPanelProps, QuestionClassifierFlowNode, QuestionClassifierNodeData, RULE_STATUS_OPTIONS, type ReplayInputVariables, type RuleAction, RuleActionBuilder, type RuleCondition, RuleConditionBuilder, type RuleConditionOperator, RuleFlowNode, RuleForm, type RuleFormValue, RuleNodeData, type RuleStatus, RunInputDialog, type RunInputDialogProps, RunPanel, RunReplayModal, type RunReplayModalProps, SaveStatusBadge, type SaveStatusBadgeProps, SelectionContextMenu, StartFlowNode, StartNodeData, StrandsIcon, SubworkflowModal, TIMEZONE_OPTIONS, TemplateTransformFlowNode, TemplateTransformNodeData, type TimeWindow, ToolCanvasData, ToolFlowNode, VariableAggregatorFlowNode, VariableAggregatorNodeData, VariableAssignerFlowNode, VariableAssignerNodeData, VariableInspector, VersionHistoryPanel, type WorkflowBuilderClient, WorkflowBuilderProvider, type WorkflowBuilderProviderProps, WorkflowEntityDefinition, WorkflowGraph, WorkflowListBar, type WorkflowStore, type WorkspaceBootstrapPayload, WorkspaceProps, defaultAgentOutputSchema, defaultRuleAction, defaultRuleCondition, defaultRuleForm, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getModelIcon, getNodeExecutionAccent, getNodeExecutionAccentRgb, isModelCompatibleWithFramework, useCanRedo, useCanUndo, useCanvasShortcuts, useClipboard, useContextMenu, useEditingNodeId, useHasCopied, useHelpLines, useIsRunning, useModalStore, useNodeResults, useSelectedNodeCount, useSubworkflowStore, useUndoRedo, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
866
+ export { AgentFlowNode, type AgentFramework, AgentModal, AgentNodeData, AgentOutputSchema, AgentToolFlowNode, AgentWithPrompts, AmazonNovaIcon, AnswerFlowNode, AnswerNodeData, AnthropicIcon, AnthropicModelIcon, AutoSaveWorkspace, type AutoSaveWorkspaceProps, CodeFlowNode, CodeNodeData, CrewAIIcon, DocumentExtractorFlowNode, DocumentExtractorNodeData, DslExportModal, DslImportModal, DynamicIslandConfirm, type DynamicIslandConfirmProps, EndFlowNode, EndNodeData, EntityFlowNode, EntityNodeData, type ExecutionTimelineEntry, type ExecutionTimelineLabels, type ExecutionTimelineMetrics, ExecutionTimelinePanel, type ExecutionTimelinePanelProps, type ExecutionTimelineStatus, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, GroupNodeData, HttpRequestFlowNode, HttpRequestNodeData, IfElseFlowNode, IfElseNodeData, IterationFlowNode, IterationNodeData, IterationStartFlowNode, IterationStartNodeData, KnowledgeBaseFlowNode, KnowledgeBaseNodeData, LOGIC_ICON_MAP, LOGIC_NODE_BADGE_COLORS, LOGIC_NODE_GRADIENTS, LOGIC_NODE_HANDLE_COLORS, LangChainIcon, LayoutDirection, ListOperatorFlowNode, ListOperatorNodeData, LogicNodeModal, MINIMAP_NODE_COLORS, MetaLlamaIcon, type ModelProvider, ModelProviderFlowNode, ModelProviderNodeData, NODE_EXECUTION_ACCENT_COLORS, NodeCard, NodeContextMenu, NodePalette, type NodeRunResult, NoteFlowNode, NoteNodeData, OpenAIIcon, OutputSchemaBuilder, type OutputSchemaBuilderProps, PanelContextMenu, ParameterExtractorFlowNode, ParameterExtractorNodeData, PipelineSettingsModal, type PipelineSettingsPatch, PreviewPanel, type PreviewPanelProps, QuestionClassifierFlowNode, QuestionClassifierNodeData, type ReplayInputVariables, RuleAction, RuleActionBuilder, RuleCondition, RuleConditionBuilder, RuleFlowNode, RuleNodeData, RunInputDialog, type RunInputDialogProps, RunPanel, RunReplayModal, type RunReplayModalProps, SaveStatusBadge, type SaveStatusBadgeProps, SelectionContextMenu, StartFlowNode, StartNodeData, StrandsIcon, SubworkflowModal, TemplateTransformFlowNode, TemplateTransformNodeData, ToolCanvasData, ToolFlowNode, VariableAggregatorFlowNode, VariableAggregatorNodeData, VariableAssignerFlowNode, VariableAssignerNodeData, VariableInspector, VersionHistoryPanel, type WorkflowBuilderClient, WorkflowBuilderProvider, type WorkflowBuilderProviderProps, WorkflowEntityDefinition, WorkflowGraph, WorkflowListBar, type WorkflowStore, type WorkspaceBootstrapPayload, WorkspaceProps, defaultAgentOutputSchema, defaultRuleAction, defaultRuleCondition, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getModelIcon, getNodeExecutionAccent, getNodeExecutionAccentRgb, isModelCompatibleWithFramework, useCanRedo, useCanUndo, useCanvasShortcuts, useClipboard, useContextMenu, useEditingNodeId, useHasCopied, useHelpLines, useIsRunning, useModalStore, useNodeResults, useSelectedNodeCount, useSubworkflowStore, useUndoRedo, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
@@ -1,11 +1,15 @@
1
- import { A as AgentWithPrompts, a as AgentNodeData, T as ToolCanvasData, R as RuleNodeData, E as EntityNodeData, M as ModelProviderNodeData, S as StartNodeData, b as EndNodeData, I as IfElseNodeData, C as CodeNodeData, H as HttpRequestNodeData, c as TemplateTransformNodeData, d as IterationNodeData, K as KnowledgeBaseNodeData, e as AnswerNodeData, Q as QuestionClassifierNodeData, P as ParameterExtractorNodeData, V as VariableAssignerNodeData, f as VariableAggregatorNodeData, D as DocumentExtractorNodeData, L as ListOperatorNodeData, g as IterationStartNodeData, N as NoteNodeData, G as GroupNodeData, W as WorkflowEntityDefinition, h as WorkspaceProps } from '../workflow-canvas-NSxfr5dy.js';
2
- export { i as AgentNodeTool, j as Workspace } from '../workflow-canvas-NSxfr5dy.js';
1
+ import { WorkspaceProps } from './workflow-canvas.js';
2
+ export { Workspace } from './workflow-canvas.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { Workflow, WorkflowGraph, AgentModel, WorkflowTool, AgentRule, AgentPersistPayload, LogicNodeConfig, AgentOutputSchema, AgentTool, WorkflowRun } from './contracts.js';
5
5
  export { AgentNodeConfig, ModelProviderNodeConfig, ModelProviderType } from './contracts.js';
6
+ import { A as AgentWithPrompts, a as AgentNodeData, T as ToolCanvasData, R as RuleNodeData, E as EntityNodeData, M as ModelProviderNodeData, S as StartNodeData, b as EndNodeData, I as IfElseNodeData, C as CodeNodeData, H as HttpRequestNodeData, c as TemplateTransformNodeData, d as IterationNodeData, K as KnowledgeBaseNodeData, e as AnswerNodeData, Q as QuestionClassifierNodeData, P as ParameterExtractorNodeData, V as VariableAssignerNodeData, f as VariableAggregatorNodeData, D as DocumentExtractorNodeData, L as ListOperatorNodeData, g as IterationStartNodeData, N as NoteNodeData, G as GroupNodeData, W as WorkflowEntityDefinition } from '../index-D5ai0cGZ.js';
7
+ export { h as AgentNodeTool } from '../index-D5ai0cGZ.js';
6
8
  import * as React$1 from 'react';
7
9
  import { ReactNode, ComponentProps } from 'react';
8
10
  export { GraphNodeBadge, GraphNodeHeader, GraphNodeIconBubble, GraphNodeMeta } from './graph-node.js';
11
+ import { a as RuleCondition, b as RuleAction } from '../rule-form-F5jBOeqk.js';
12
+ export { c as RULE_STATUS_OPTIONS, d as RuleConditionOperator, e as RuleForm, R as RuleFormValue, f as RuleStatus, T as TIMEZONE_OPTIONS, g as TimeWindow, h as defaultRuleForm } from '../rule-form-F5jBOeqk.js';
9
13
  import { D as DynamicIslandConfirm$1 } from '../dynamic-island-confirm-BKsZkAEP.js';
10
14
  import * as zustand from 'zustand';
11
15
  import { Node, Edge } from '@xyflow/react';
@@ -286,57 +290,56 @@ type OutputSchemaBuilderProps = {
286
290
  declare function OutputSchemaBuilder({ value, onChange, depth }: OutputSchemaBuilderProps): react_jsx_runtime.JSX.Element;
287
291
  declare function defaultAgentOutputSchema(): AgentOutputSchema;
288
292
 
289
- /**
290
- * Rule editing types.
291
- *
292
- * Mirrors the shape the Rust `RuleExecutor`
293
- * (`lambda-rs/crates/astrlabe-handlers/src/engine/executors/rule.rs`) reads
294
- * from `astrlabe.agent_rules.condition` + `action`. The UI builder below
295
- * writes exactly this shape, so round-tripping through the backend is a
296
- * no-op.
297
- */
298
- type SimpleComparisonOperator = 'truthy' | 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains';
299
- type RuleConditionOperator = SimpleComparisonOperator | 'regex_match' | 'threshold' | 'time_window' | 'boolean_expression';
300
- type TimeWindow = {
301
- startHour: number;
302
- endHour: number;
303
- startMinute?: number;
304
- endMinute?: number;
305
- /** 0 = Sunday, 6 = Saturday. Omit to match every day. */
306
- daysOfWeek?: number[];
293
+ type ExecutionTimelineStatus = 'completed' | 'running' | 'failed' | 'pending' | 'skipped';
294
+ type ExecutionTimelineMetrics = {
295
+ tokensIn?: number;
296
+ tokensOut?: number;
297
+ costUsd?: number;
298
+ provider?: string;
299
+ model?: string;
307
300
  };
308
- /**
309
- * Canonical rule-condition shape. The executor branches on `operator`,
310
- * so every form tree ultimately serializes to this.
311
- */
312
- type RuleCondition = {
313
- operator: RuleConditionOperator;
314
- /** Simple operators + regex_match + threshold + time_window */
315
- field?: string;
316
- /** Simple operators + threshold */
317
- value?: string | number | boolean | null;
318
- /** regex_match */
319
- pattern?: string;
320
- /** threshold which direction `value` is compared in. */
321
- comparison?: 'gt' | 'gte' | 'lt' | 'lte';
322
- /** time_window */
323
- timezone?: string;
324
- windows?: TimeWindow[];
325
- /** boolean_expression */
326
- combinator?: 'and' | 'or';
327
- operands?: RuleCondition[];
328
- };
329
- type RuleAction = {
330
- type: string;
331
- params?: Record<string, unknown>;
332
- };
333
- /** `agent_rules.status` free-form string — keep the UI picker aligned
334
- * with the values the engine / audit trail recognizes today. */
335
- declare const RULE_STATUS_OPTIONS: readonly ["draft", "active", "archived"];
336
- type RuleStatus = (typeof RULE_STATUS_OPTIONS)[number];
337
- declare const TIMEZONE_OPTIONS: readonly ["UTC", "America/Sao_Paulo", "America/New_York", "America/Los_Angeles", "Europe/London", "Europe/Lisbon"];
338
-
339
- type Props$2 = {
301
+ type ExecutionTimelineEntry = {
302
+ nodeId: string;
303
+ nodeType: string;
304
+ status: ExecutionTimelineStatus;
305
+ startedAt: string | null;
306
+ completedAt: string | null;
307
+ durationMs: number | null;
308
+ inputs?: Record<string, unknown>;
309
+ outputs?: Record<string, unknown>;
310
+ error?: string | null;
311
+ metrics?: ExecutionTimelineMetrics;
312
+ };
313
+ type ExecutionTimelineLabels = {
314
+ status: string;
315
+ duration: string;
316
+ inputs: string;
317
+ outputs: string;
318
+ error: string;
319
+ started: string;
320
+ completed: string;
321
+ pending: string;
322
+ running: string;
323
+ failed: string;
324
+ skipped: string;
325
+ selectNode: string;
326
+ model: string;
327
+ tokens: string;
328
+ cost: string;
329
+ /** Used as the empty-state heading when `entries` is empty. */
330
+ empty?: string;
331
+ };
332
+ type ExecutionTimelinePanelProps = {
333
+ entries: ExecutionTimelineEntry[];
334
+ labels: ExecutionTimelineLabels;
335
+ /** When set, drives selection from the parent. Useful when the page
336
+ * syncs the selection with a URL query param. */
337
+ selectedNodeId?: string;
338
+ onSelect?: (nodeId: string) => void;
339
+ };
340
+ declare function ExecutionTimelinePanel({ entries, labels, selectedNodeId, onSelect, }: ExecutionTimelinePanelProps): react_jsx_runtime.JSX.Element;
341
+
342
+ type Props$1 = {
340
343
  value: RuleCondition;
341
344
  onChange: (next: RuleCondition) => void;
342
345
  /** Recursion depth. Boolean_expression is capped at one level to keep
@@ -345,10 +348,10 @@ type Props$2 = {
345
348
  * operands. */
346
349
  depth?: number;
347
350
  };
348
- declare function RuleConditionBuilder({ value, onChange, depth }: Props$2): react_jsx_runtime.JSX.Element;
351
+ declare function RuleConditionBuilder({ value, onChange, depth }: Props$1): react_jsx_runtime.JSX.Element;
349
352
  declare function defaultRuleCondition(): RuleCondition;
350
353
 
351
- type Props$1 = {
354
+ type Props = {
352
355
  value: RuleAction;
353
356
  onChange: (next: RuleAction) => void;
354
357
  };
@@ -357,35 +360,9 @@ type Props$1 = {
357
360
  * executor contract. The `custom` type drops to a raw key/value editor for
358
361
  * actions the UI doesn't have a dedicated template for.
359
362
  */
360
- declare function RuleActionBuilder({ value, onChange }: Props$1): react_jsx_runtime.JSX.Element;
363
+ declare function RuleActionBuilder({ value, onChange }: Props): react_jsx_runtime.JSX.Element;
361
364
  declare function defaultRuleAction(): RuleAction;
362
365
 
363
- type RuleFormValue = {
364
- ruleId?: string;
365
- name: string;
366
- description?: string;
367
- enabled: boolean;
368
- priority: number;
369
- status?: RuleStatus;
370
- validFrom?: string | null;
371
- validUntil?: string | null;
372
- tags?: string[];
373
- condition: RuleCondition;
374
- action: RuleAction;
375
- };
376
- type Props = {
377
- value: RuleFormValue;
378
- onChange: (next: RuleFormValue) => void;
379
- };
380
- /**
381
- * Full-field rule editor used inside the create/edit modal. Composes the
382
- * visual condition + action builders and exposes the schedule / tagging /
383
- * lifecycle fields that the `agent_rules` entity has but the old JSON-
384
- * textarea form never surfaced.
385
- */
386
- declare function RuleForm({ value, onChange }: Props): react_jsx_runtime.JSX.Element;
387
- declare function defaultRuleForm(): RuleFormValue;
388
-
389
366
  type ModelProvider = {
390
367
  id: string;
391
368
  name: string;
@@ -886,4 +863,4 @@ declare function getEntityBadgeColor(entityKey: string | undefined): string;
886
863
  declare function getEntityHandleColor(entityKey: string | undefined): string;
887
864
  declare function getEntityMinimapColor(entityKey: string | undefined): string;
888
865
 
889
- export { AgentFlowNode, type AgentFramework, AgentModal, AgentNodeData, AgentOutputSchema, AgentToolFlowNode, AgentWithPrompts, AmazonNovaIcon, AnswerFlowNode, AnswerNodeData, AnthropicIcon, AnthropicModelIcon, AutoSaveWorkspace, type AutoSaveWorkspaceProps, CodeFlowNode, CodeNodeData, CrewAIIcon, DocumentExtractorFlowNode, DocumentExtractorNodeData, DslExportModal, DslImportModal, DynamicIslandConfirm, type DynamicIslandConfirmProps, EndFlowNode, EndNodeData, EntityFlowNode, EntityNodeData, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, GroupNodeData, HttpRequestFlowNode, HttpRequestNodeData, IfElseFlowNode, IfElseNodeData, IterationFlowNode, IterationNodeData, IterationStartFlowNode, IterationStartNodeData, KnowledgeBaseFlowNode, KnowledgeBaseNodeData, LOGIC_ICON_MAP, LOGIC_NODE_BADGE_COLORS, LOGIC_NODE_GRADIENTS, LOGIC_NODE_HANDLE_COLORS, LangChainIcon, LayoutDirection, ListOperatorFlowNode, ListOperatorNodeData, LogicNodeModal, MINIMAP_NODE_COLORS, MetaLlamaIcon, type ModelProvider, ModelProviderFlowNode, ModelProviderNodeData, NODE_EXECUTION_ACCENT_COLORS, NodeCard, NodeContextMenu, NodePalette, type NodeRunResult, NoteFlowNode, NoteNodeData, OpenAIIcon, OutputSchemaBuilder, type OutputSchemaBuilderProps, PanelContextMenu, ParameterExtractorFlowNode, ParameterExtractorNodeData, PipelineSettingsModal, type PipelineSettingsPatch, PreviewPanel, type PreviewPanelProps, QuestionClassifierFlowNode, QuestionClassifierNodeData, RULE_STATUS_OPTIONS, type ReplayInputVariables, type RuleAction, RuleActionBuilder, type RuleCondition, RuleConditionBuilder, type RuleConditionOperator, RuleFlowNode, RuleForm, type RuleFormValue, RuleNodeData, type RuleStatus, RunInputDialog, type RunInputDialogProps, RunPanel, RunReplayModal, type RunReplayModalProps, SaveStatusBadge, type SaveStatusBadgeProps, SelectionContextMenu, StartFlowNode, StartNodeData, StrandsIcon, SubworkflowModal, TIMEZONE_OPTIONS, TemplateTransformFlowNode, TemplateTransformNodeData, type TimeWindow, ToolCanvasData, ToolFlowNode, VariableAggregatorFlowNode, VariableAggregatorNodeData, VariableAssignerFlowNode, VariableAssignerNodeData, VariableInspector, VersionHistoryPanel, type WorkflowBuilderClient, WorkflowBuilderProvider, type WorkflowBuilderProviderProps, WorkflowEntityDefinition, WorkflowGraph, WorkflowListBar, type WorkflowStore, type WorkspaceBootstrapPayload, WorkspaceProps, defaultAgentOutputSchema, defaultRuleAction, defaultRuleCondition, defaultRuleForm, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getModelIcon, getNodeExecutionAccent, getNodeExecutionAccentRgb, isModelCompatibleWithFramework, useCanRedo, useCanUndo, useCanvasShortcuts, useClipboard, useContextMenu, useEditingNodeId, useHasCopied, useHelpLines, useIsRunning, useModalStore, useNodeResults, useSelectedNodeCount, useSubworkflowStore, useUndoRedo, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
866
+ export { AgentFlowNode, type AgentFramework, AgentModal, AgentNodeData, AgentOutputSchema, AgentToolFlowNode, AgentWithPrompts, AmazonNovaIcon, AnswerFlowNode, AnswerNodeData, AnthropicIcon, AnthropicModelIcon, AutoSaveWorkspace, type AutoSaveWorkspaceProps, CodeFlowNode, CodeNodeData, CrewAIIcon, DocumentExtractorFlowNode, DocumentExtractorNodeData, DslExportModal, DslImportModal, DynamicIslandConfirm, type DynamicIslandConfirmProps, EndFlowNode, EndNodeData, EntityFlowNode, EntityNodeData, type ExecutionTimelineEntry, type ExecutionTimelineLabels, type ExecutionTimelineMetrics, ExecutionTimelinePanel, type ExecutionTimelinePanelProps, type ExecutionTimelineStatus, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, GroupNodeData, HttpRequestFlowNode, HttpRequestNodeData, IfElseFlowNode, IfElseNodeData, IterationFlowNode, IterationNodeData, IterationStartFlowNode, IterationStartNodeData, KnowledgeBaseFlowNode, KnowledgeBaseNodeData, LOGIC_ICON_MAP, LOGIC_NODE_BADGE_COLORS, LOGIC_NODE_GRADIENTS, LOGIC_NODE_HANDLE_COLORS, LangChainIcon, LayoutDirection, ListOperatorFlowNode, ListOperatorNodeData, LogicNodeModal, MINIMAP_NODE_COLORS, MetaLlamaIcon, type ModelProvider, ModelProviderFlowNode, ModelProviderNodeData, NODE_EXECUTION_ACCENT_COLORS, NodeCard, NodeContextMenu, NodePalette, type NodeRunResult, NoteFlowNode, NoteNodeData, OpenAIIcon, OutputSchemaBuilder, type OutputSchemaBuilderProps, PanelContextMenu, ParameterExtractorFlowNode, ParameterExtractorNodeData, PipelineSettingsModal, type PipelineSettingsPatch, PreviewPanel, type PreviewPanelProps, QuestionClassifierFlowNode, QuestionClassifierNodeData, type ReplayInputVariables, RuleAction, RuleActionBuilder, RuleCondition, RuleConditionBuilder, RuleFlowNode, RuleNodeData, RunInputDialog, type RunInputDialogProps, RunPanel, RunReplayModal, type RunReplayModalProps, SaveStatusBadge, type SaveStatusBadgeProps, SelectionContextMenu, StartFlowNode, StartNodeData, StrandsIcon, SubworkflowModal, TemplateTransformFlowNode, TemplateTransformNodeData, ToolCanvasData, ToolFlowNode, VariableAggregatorFlowNode, VariableAggregatorNodeData, VariableAssignerFlowNode, VariableAssignerNodeData, VariableInspector, VersionHistoryPanel, type WorkflowBuilderClient, WorkflowBuilderProvider, type WorkflowBuilderProviderProps, WorkflowEntityDefinition, WorkflowGraph, WorkflowListBar, type WorkflowStore, type WorkspaceBootstrapPayload, WorkspaceProps, defaultAgentOutputSchema, defaultRuleAction, defaultRuleCondition, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getModelIcon, getNodeExecutionAccent, getNodeExecutionAccentRgb, isModelCompatibleWithFramework, useCanRedo, useCanUndo, useCanvasShortcuts, useClipboard, useContextMenu, useEditingNodeId, useHasCopied, useHelpLines, useIsRunning, useModalStore, useNodeResults, useSelectedNodeCount, useSubworkflowStore, useUndoRedo, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };