@datatechsolutions/ui 2.11.81 → 2.11.82
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/astrlabe/contracts.d.mts +5 -0
- package/dist/astrlabe/contracts.d.ts +5 -0
- package/dist/astrlabe/index.d.mts +11 -83
- package/dist/astrlabe/index.d.ts +11 -83
- package/dist/astrlabe/index.js +175 -4777
- package/dist/astrlabe/index.js.map +1 -1
- package/dist/astrlabe/index.mjs +3 -4740
- package/dist/astrlabe/index.mjs.map +1 -1
- package/dist/astrlabe/workflow-canvas.d.mts +69 -5
- package/dist/astrlabe/workflow-canvas.d.ts +69 -5
- package/dist/chunk-6PBTB5ZX.js +165 -0
- package/dist/chunk-6PBTB5ZX.js.map +1 -0
- package/dist/chunk-HAZP5J67.mjs +4781 -0
- package/dist/chunk-HAZP5J67.mjs.map +1 -0
- package/dist/chunk-HZ4LOVHM.js +46 -0
- package/dist/chunk-HZ4LOVHM.js.map +1 -0
- package/dist/chunk-K4QJV3GC.js +4825 -0
- package/dist/chunk-K4QJV3GC.js.map +1 -0
- package/dist/chunk-UHHPBREK.mjs +135 -0
- package/dist/chunk-UHHPBREK.mjs.map +1 -0
- package/dist/chunk-ZJPNP2YW.mjs +44 -0
- package/dist/chunk-ZJPNP2YW.mjs.map +1 -0
- package/dist/{workflow-canvas-NSxfr5dy.d.ts → index-AioB90qq.d.mts} +2 -67
- package/dist/{workflow-canvas-D4928AfA.d.mts → index-D5ai0cGZ.d.ts} +2 -67
- package/dist/platform/index.d.mts +41 -0
- package/dist/platform/index.d.ts +41 -0
- package/dist/platform/index.js +237 -0
- package/dist/platform/index.js.map +1 -0
- package/dist/platform/index.mjs +109 -0
- package/dist/platform/index.mjs.map +1 -0
- package/dist/platform/pages/index.d.mts +272 -0
- package/dist/platform/pages/index.d.ts +272 -0
- package/dist/platform/pages/index.js +1793 -0
- package/dist/platform/pages/index.js.map +1 -0
- package/dist/platform/pages/index.mjs +1777 -0
- package/dist/platform/pages/index.mjs.map +1 -0
- package/dist/platform/rbac.d.mts +41 -0
- package/dist/platform/rbac.d.ts +41 -0
- package/dist/platform/rbac.js +13 -0
- package/dist/platform/rbac.js.map +1 -0
- package/dist/platform/rbac.mjs +4 -0
- package/dist/platform/rbac.mjs.map +1 -0
- package/dist/platform/utils/index.d.mts +32 -0
- package/dist/platform/utils/index.d.ts +32 -0
- package/dist/platform/utils/index.js +131 -0
- package/dist/platform/utils/index.js.map +1 -0
- package/dist/platform/utils/index.mjs +119 -0
- package/dist/platform/utils/index.mjs.map +1 -0
- package/dist/platform/windsock-admin-client.d.mts +57 -0
- package/dist/platform/windsock-admin-client.d.ts +57 -0
- package/dist/platform/windsock-admin-client.js +125 -0
- package/dist/platform/windsock-admin-client.js.map +1 -0
- package/dist/platform/windsock-admin-client.mjs +4 -0
- package/dist/platform/windsock-admin-client.mjs.map +1 -0
- package/dist/rule-form-F5jBOeqk.d.mts +79 -0
- package/dist/rule-form-F5jBOeqk.d.ts +79 -0
- 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 {
|
|
2
|
-
export {
|
|
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,7 @@ 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[];
|
|
307
|
-
};
|
|
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 = {
|
|
293
|
+
type Props$1 = {
|
|
340
294
|
value: RuleCondition;
|
|
341
295
|
onChange: (next: RuleCondition) => void;
|
|
342
296
|
/** Recursion depth. Boolean_expression is capped at one level to keep
|
|
@@ -345,10 +299,10 @@ type Props$2 = {
|
|
|
345
299
|
* operands. */
|
|
346
300
|
depth?: number;
|
|
347
301
|
};
|
|
348
|
-
declare function RuleConditionBuilder({ value, onChange, depth }: Props$
|
|
302
|
+
declare function RuleConditionBuilder({ value, onChange, depth }: Props$1): react_jsx_runtime.JSX.Element;
|
|
349
303
|
declare function defaultRuleCondition(): RuleCondition;
|
|
350
304
|
|
|
351
|
-
type Props
|
|
305
|
+
type Props = {
|
|
352
306
|
value: RuleAction;
|
|
353
307
|
onChange: (next: RuleAction) => void;
|
|
354
308
|
};
|
|
@@ -357,35 +311,9 @@ type Props$1 = {
|
|
|
357
311
|
* executor contract. The `custom` type drops to a raw key/value editor for
|
|
358
312
|
* actions the UI doesn't have a dedicated template for.
|
|
359
313
|
*/
|
|
360
|
-
declare function RuleActionBuilder({ value, onChange }: Props
|
|
314
|
+
declare function RuleActionBuilder({ value, onChange }: Props): react_jsx_runtime.JSX.Element;
|
|
361
315
|
declare function defaultRuleAction(): RuleAction;
|
|
362
316
|
|
|
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
317
|
type ModelProvider = {
|
|
390
318
|
id: string;
|
|
391
319
|
name: string;
|
|
@@ -886,4 +814,4 @@ declare function getEntityBadgeColor(entityKey: string | undefined): string;
|
|
|
886
814
|
declare function getEntityHandleColor(entityKey: string | undefined): string;
|
|
887
815
|
declare function getEntityMinimapColor(entityKey: string | undefined): string;
|
|
888
816
|
|
|
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,
|
|
817
|
+
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, 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 };
|
package/dist/astrlabe/index.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
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,7 @@ 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[];
|
|
307
|
-
};
|
|
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 = {
|
|
293
|
+
type Props$1 = {
|
|
340
294
|
value: RuleCondition;
|
|
341
295
|
onChange: (next: RuleCondition) => void;
|
|
342
296
|
/** Recursion depth. Boolean_expression is capped at one level to keep
|
|
@@ -345,10 +299,10 @@ type Props$2 = {
|
|
|
345
299
|
* operands. */
|
|
346
300
|
depth?: number;
|
|
347
301
|
};
|
|
348
|
-
declare function RuleConditionBuilder({ value, onChange, depth }: Props$
|
|
302
|
+
declare function RuleConditionBuilder({ value, onChange, depth }: Props$1): react_jsx_runtime.JSX.Element;
|
|
349
303
|
declare function defaultRuleCondition(): RuleCondition;
|
|
350
304
|
|
|
351
|
-
type Props
|
|
305
|
+
type Props = {
|
|
352
306
|
value: RuleAction;
|
|
353
307
|
onChange: (next: RuleAction) => void;
|
|
354
308
|
};
|
|
@@ -357,35 +311,9 @@ type Props$1 = {
|
|
|
357
311
|
* executor contract. The `custom` type drops to a raw key/value editor for
|
|
358
312
|
* actions the UI doesn't have a dedicated template for.
|
|
359
313
|
*/
|
|
360
|
-
declare function RuleActionBuilder({ value, onChange }: Props
|
|
314
|
+
declare function RuleActionBuilder({ value, onChange }: Props): react_jsx_runtime.JSX.Element;
|
|
361
315
|
declare function defaultRuleAction(): RuleAction;
|
|
362
316
|
|
|
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
317
|
type ModelProvider = {
|
|
390
318
|
id: string;
|
|
391
319
|
name: string;
|
|
@@ -886,4 +814,4 @@ declare function getEntityBadgeColor(entityKey: string | undefined): string;
|
|
|
886
814
|
declare function getEntityHandleColor(entityKey: string | undefined): string;
|
|
887
815
|
declare function getEntityMinimapColor(entityKey: string | undefined): string;
|
|
888
816
|
|
|
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,
|
|
817
|
+
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, 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 };
|