@datatechsolutions/ui 2.11.47 → 2.11.48

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 (35) hide show
  1. package/dist/astrlabe/index.js +108 -108
  2. package/dist/astrlabe/index.mjs +2 -2
  3. package/dist/astrlabe/workflow-canvas.js +2 -2
  4. package/dist/astrlabe/workflow-canvas.mjs +1 -1
  5. package/dist/{chunk-5KDFTL4I.js → chunk-NWELMK3Y.js} +3 -2
  6. package/dist/chunk-NWELMK3Y.js.map +1 -0
  7. package/dist/{chunk-KDNDLSDW.mjs → chunk-XDS3RWPA.mjs} +3 -2
  8. package/dist/chunk-XDS3RWPA.mjs.map +1 -0
  9. package/package.json +1 -1
  10. package/dist/astrlabe/contracts.d.mts +0 -309
  11. package/dist/astrlabe/contracts.d.ts +0 -309
  12. package/dist/astrlabe/graph-node.d.mts +0 -28
  13. package/dist/astrlabe/graph-node.d.ts +0 -28
  14. package/dist/astrlabe/index.d.mts +0 -749
  15. package/dist/astrlabe/index.d.ts +0 -749
  16. package/dist/astrlabe/utils.d.mts +0 -71
  17. package/dist/astrlabe/utils.d.ts +0 -71
  18. package/dist/astrlabe/workflow-canvas.d.mts +0 -5
  19. package/dist/astrlabe/workflow-canvas.d.ts +0 -5
  20. package/dist/astrlabe/workflow-preview-canvas.d.mts +0 -10
  21. package/dist/astrlabe/workflow-preview-canvas.d.ts +0 -10
  22. package/dist/brand/index.d.mts +0 -85
  23. package/dist/brand/index.d.ts +0 -85
  24. package/dist/chunk-5KDFTL4I.js.map +0 -1
  25. package/dist/chunk-KDNDLSDW.mjs.map +0 -1
  26. package/dist/dynamic-island-confirm-Bw24Ll2r.d.mts +0 -114
  27. package/dist/dynamic-island-confirm-Bw24Ll2r.d.ts +0 -114
  28. package/dist/index.d.mts +0 -4673
  29. package/dist/index.d.ts +0 -4673
  30. package/dist/lib/i18n-context.d.mts +0 -36
  31. package/dist/lib/i18n-context.d.ts +0 -36
  32. package/dist/lib/router-context.d.mts +0 -35
  33. package/dist/lib/router-context.d.ts +0 -35
  34. package/dist/workflow-canvas-D4928AfA.d.mts +0 -273
  35. package/dist/workflow-canvas-NSxfr5dy.d.ts +0 -273
@@ -1,71 +0,0 @@
1
- import { WorkflowNodeType, LogicNodeConfig, WorkflowGraph } from './contracts.mjs';
2
- import { Node, Edge } from '@xyflow/react';
3
-
4
- /**
5
- * Layout Engine
6
- * =============
7
- * Auto-layout for workflow graphs using @dagrejs/dagre.
8
- * Pure utility — no React dependencies.
9
- */
10
-
11
- /** Layout direction: free means no auto-layout is applied. */
12
- type LayoutDirection = 'free' | 'LR' | 'TB';
13
- /**
14
- * Apply dagre layout to the given nodes and edges.
15
- * Returns a new array of nodes with updated positions.
16
- * Group child nodes (parentId set) and note nodes are excluded from layout.
17
- */
18
- declare function applyDagreLayout(nodes: Node[], edges: Edge[], direction: Exclude<LayoutDirection, 'free'>): Node[];
19
-
20
- /**
21
- * Logic Node Default Configs
22
- * ==========================
23
- * Factory function to create default configs for each logic node type.
24
- */
25
-
26
- declare function createDefaultLogicNodeConfig(nodeType: WorkflowNodeType): LogicNodeConfig | null;
27
-
28
- /**
29
- * Workflow Validator
30
- * =================
31
- * Validates the workflow graph before publishing.
32
- * Ensures the graph forms a valid DAG with proper node connections.
33
- */
34
-
35
- type ValidationResult = {
36
- valid: boolean;
37
- errors: string[];
38
- };
39
- /**
40
- * Validate a workflow graph for publishing.
41
- * Checks:
42
- * - At least one agent node exists
43
- * - All edges have valid source/target nodes
44
- * - No orphan nodes (every node has at least one connection, except note nodes)
45
- * - Tool nodes connect to agent nodes only
46
- * - Agent chain forms a valid DAG (no cycles)
47
- * - Rule nodes have incoming edges from agents
48
- * - Logic node constraints (start/end uniqueness, config validation)
49
- * - New node type validations (answer, question_classifier, parameter_extractor, etc.)
50
- */
51
- declare function validateWorkflowGraph(graph: WorkflowGraph): ValidationResult;
52
- /**
53
- * Topologically sort agent nodes from the graph edges.
54
- * Returns agent entityIds in execution order.
55
- * Logic nodes are skipped — only agent entityIds are returned.
56
- */
57
- declare function topologicalSortAgents(graph: WorkflowGraph): string[];
58
-
59
- /**
60
- * Agent ELO Tier
61
- * ==============
62
- * Derives difficulty tier from agent ELO rating.
63
- * Used in node palette, agent flow node, and agent modal.
64
- */
65
- type AgentTier = {
66
- key: 'beginner' | 'intermediate' | 'advanced' | 'expert';
67
- pillColor: string;
68
- };
69
- declare function getAgentTier(elo: number | undefined): AgentTier;
70
-
71
- export { type AgentTier, type LayoutDirection, applyDagreLayout, createDefaultLogicNodeConfig, getAgentTier, topologicalSortAgents, validateWorkflowGraph };
@@ -1,71 +0,0 @@
1
- import { WorkflowNodeType, LogicNodeConfig, WorkflowGraph } from './contracts.js';
2
- import { Node, Edge } from '@xyflow/react';
3
-
4
- /**
5
- * Layout Engine
6
- * =============
7
- * Auto-layout for workflow graphs using @dagrejs/dagre.
8
- * Pure utility — no React dependencies.
9
- */
10
-
11
- /** Layout direction: free means no auto-layout is applied. */
12
- type LayoutDirection = 'free' | 'LR' | 'TB';
13
- /**
14
- * Apply dagre layout to the given nodes and edges.
15
- * Returns a new array of nodes with updated positions.
16
- * Group child nodes (parentId set) and note nodes are excluded from layout.
17
- */
18
- declare function applyDagreLayout(nodes: Node[], edges: Edge[], direction: Exclude<LayoutDirection, 'free'>): Node[];
19
-
20
- /**
21
- * Logic Node Default Configs
22
- * ==========================
23
- * Factory function to create default configs for each logic node type.
24
- */
25
-
26
- declare function createDefaultLogicNodeConfig(nodeType: WorkflowNodeType): LogicNodeConfig | null;
27
-
28
- /**
29
- * Workflow Validator
30
- * =================
31
- * Validates the workflow graph before publishing.
32
- * Ensures the graph forms a valid DAG with proper node connections.
33
- */
34
-
35
- type ValidationResult = {
36
- valid: boolean;
37
- errors: string[];
38
- };
39
- /**
40
- * Validate a workflow graph for publishing.
41
- * Checks:
42
- * - At least one agent node exists
43
- * - All edges have valid source/target nodes
44
- * - No orphan nodes (every node has at least one connection, except note nodes)
45
- * - Tool nodes connect to agent nodes only
46
- * - Agent chain forms a valid DAG (no cycles)
47
- * - Rule nodes have incoming edges from agents
48
- * - Logic node constraints (start/end uniqueness, config validation)
49
- * - New node type validations (answer, question_classifier, parameter_extractor, etc.)
50
- */
51
- declare function validateWorkflowGraph(graph: WorkflowGraph): ValidationResult;
52
- /**
53
- * Topologically sort agent nodes from the graph edges.
54
- * Returns agent entityIds in execution order.
55
- * Logic nodes are skipped — only agent entityIds are returned.
56
- */
57
- declare function topologicalSortAgents(graph: WorkflowGraph): string[];
58
-
59
- /**
60
- * Agent ELO Tier
61
- * ==============
62
- * Derives difficulty tier from agent ELO rating.
63
- * Used in node palette, agent flow node, and agent modal.
64
- */
65
- type AgentTier = {
66
- key: 'beginner' | 'intermediate' | 'advanced' | 'expert';
67
- pillColor: string;
68
- };
69
- declare function getAgentTier(elo: number | undefined): AgentTier;
70
-
71
- export { type AgentTier, type LayoutDirection, applyDagreLayout, createDefaultLogicNodeConfig, getAgentTier, topologicalSortAgents, validateWorkflowGraph };
@@ -1,5 +0,0 @@
1
- import 'react/jsx-runtime';
2
- import 'react';
3
- export { j as Workspace, h as WorkspaceProps } from '../workflow-canvas-D4928AfA.mjs';
4
- import '@xyflow/react';
5
- import './contracts.mjs';
@@ -1,5 +0,0 @@
1
- import 'react/jsx-runtime';
2
- import 'react';
3
- export { j as Workspace, h as WorkspaceProps } from '../workflow-canvas-NSxfr5dy.js';
4
- import '@xyflow/react';
5
- import './contracts.js';
@@ -1,10 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { WorkflowGraph } from './contracts.mjs';
3
-
4
- type WorkflowPreviewCanvasProps = {
5
- graph: WorkflowGraph;
6
- className?: string;
7
- };
8
- declare function WorkflowPreviewCanvas({ graph, className }: WorkflowPreviewCanvasProps): react_jsx_runtime.JSX.Element;
9
-
10
- export { WorkflowPreviewCanvas, type WorkflowPreviewCanvasProps };
@@ -1,10 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { WorkflowGraph } from './contracts.js';
3
-
4
- type WorkflowPreviewCanvasProps = {
5
- graph: WorkflowGraph;
6
- className?: string;
7
- };
8
- declare function WorkflowPreviewCanvas({ graph, className }: WorkflowPreviewCanvasProps): react_jsx_runtime.JSX.Element;
9
-
10
- export { WorkflowPreviewCanvas, type WorkflowPreviewCanvasProps };
@@ -1,85 +0,0 @@
1
- /**
2
- * Brand — centralized app themes, icons, and logos
3
- * =================================================
4
- * Single source of truth for all app branding across the platform.
5
- *
6
- * Logo SVGs live in src/brand/logos/ and are published as-is.
7
- * Vite apps can import them directly:
8
- * import fuelIcon from '@datatechsolutions/ui/src/brand/logos/fuel-icon.svg'
9
- * Or use the APP_LOGOS/APP_THEMES which re-export them (works in Vite).
10
- */
11
- interface AppTheme {
12
- text: string;
13
- textLight: string;
14
- badgeBg: string;
15
- badgeText: string;
16
- ring: string;
17
- border: string;
18
- borderGlow: string;
19
- surfaceBg: string;
20
- dot: string;
21
- tileGradient: string;
22
- tileShadow: string;
23
- gradient: string;
24
- }
25
- declare const APP_THEMES: {
26
- readonly astrlabe: {
27
- readonly text: "text-violet-400";
28
- readonly textLight: "text-violet-300";
29
- readonly badgeBg: "bg-violet-500/10";
30
- readonly badgeText: "text-violet-300";
31
- readonly ring: "ring-violet-500/30";
32
- readonly border: "border-violet-500/30";
33
- readonly borderGlow: "border-violet-500/20";
34
- readonly surfaceBg: "bg-violet-500/[0.06]";
35
- readonly dot: "bg-violet-400";
36
- readonly tileGradient: "from-violet-600/80 to-purple-600/80";
37
- readonly tileShadow: "shadow-violet-500/20";
38
- readonly gradient: "from-violet-400 to-purple-400";
39
- };
40
- readonly 'fuel-price-ai': {
41
- readonly text: "text-blue-400";
42
- readonly textLight: "text-blue-300";
43
- readonly badgeBg: "bg-blue-500/10";
44
- readonly badgeText: "text-blue-300";
45
- readonly ring: "ring-blue-500/30";
46
- readonly border: "border-blue-500/30";
47
- readonly borderGlow: "border-blue-500/20";
48
- readonly surfaceBg: "bg-blue-500/[0.06]";
49
- readonly dot: "bg-blue-400";
50
- readonly tileGradient: "from-blue-600/80 to-indigo-600/80";
51
- readonly tileShadow: "shadow-blue-500/20";
52
- readonly gradient: "from-blue-400 to-indigo-400";
53
- };
54
- readonly 'kori-erp': {
55
- readonly text: "text-orange-400";
56
- readonly textLight: "text-orange-300";
57
- readonly badgeBg: "bg-orange-500/10";
58
- readonly badgeText: "text-orange-300";
59
- readonly ring: "ring-orange-500/30";
60
- readonly border: "border-orange-500/30";
61
- readonly borderGlow: "border-orange-500/20";
62
- readonly surfaceBg: "bg-orange-500/[0.06]";
63
- readonly dot: "bg-orange-400";
64
- readonly tileGradient: "from-orange-600/80 to-amber-600/80";
65
- readonly tileShadow: "shadow-orange-500/20";
66
- readonly gradient: "from-orange-400 to-amber-400";
67
- };
68
- readonly windsock: {
69
- readonly text: "text-emerald-400";
70
- readonly textLight: "text-emerald-300";
71
- readonly badgeBg: "bg-emerald-500/10";
72
- readonly badgeText: "text-emerald-300";
73
- readonly ring: "ring-emerald-500/30";
74
- readonly border: "border-emerald-500/30";
75
- readonly borderGlow: "border-emerald-500/20";
76
- readonly surfaceBg: "bg-emerald-500/[0.06]";
77
- readonly dot: "bg-emerald-400";
78
- readonly tileGradient: "from-emerald-600/80 to-teal-600/80";
79
- readonly tileShadow: "shadow-emerald-500/20";
80
- readonly gradient: "from-emerald-400 to-teal-400";
81
- };
82
- };
83
- type AppId = keyof typeof APP_THEMES;
84
-
85
- export { APP_THEMES, type AppId, type AppTheme };
@@ -1,85 +0,0 @@
1
- /**
2
- * Brand — centralized app themes, icons, and logos
3
- * =================================================
4
- * Single source of truth for all app branding across the platform.
5
- *
6
- * Logo SVGs live in src/brand/logos/ and are published as-is.
7
- * Vite apps can import them directly:
8
- * import fuelIcon from '@datatechsolutions/ui/src/brand/logos/fuel-icon.svg'
9
- * Or use the APP_LOGOS/APP_THEMES which re-export them (works in Vite).
10
- */
11
- interface AppTheme {
12
- text: string;
13
- textLight: string;
14
- badgeBg: string;
15
- badgeText: string;
16
- ring: string;
17
- border: string;
18
- borderGlow: string;
19
- surfaceBg: string;
20
- dot: string;
21
- tileGradient: string;
22
- tileShadow: string;
23
- gradient: string;
24
- }
25
- declare const APP_THEMES: {
26
- readonly astrlabe: {
27
- readonly text: "text-violet-400";
28
- readonly textLight: "text-violet-300";
29
- readonly badgeBg: "bg-violet-500/10";
30
- readonly badgeText: "text-violet-300";
31
- readonly ring: "ring-violet-500/30";
32
- readonly border: "border-violet-500/30";
33
- readonly borderGlow: "border-violet-500/20";
34
- readonly surfaceBg: "bg-violet-500/[0.06]";
35
- readonly dot: "bg-violet-400";
36
- readonly tileGradient: "from-violet-600/80 to-purple-600/80";
37
- readonly tileShadow: "shadow-violet-500/20";
38
- readonly gradient: "from-violet-400 to-purple-400";
39
- };
40
- readonly 'fuel-price-ai': {
41
- readonly text: "text-blue-400";
42
- readonly textLight: "text-blue-300";
43
- readonly badgeBg: "bg-blue-500/10";
44
- readonly badgeText: "text-blue-300";
45
- readonly ring: "ring-blue-500/30";
46
- readonly border: "border-blue-500/30";
47
- readonly borderGlow: "border-blue-500/20";
48
- readonly surfaceBg: "bg-blue-500/[0.06]";
49
- readonly dot: "bg-blue-400";
50
- readonly tileGradient: "from-blue-600/80 to-indigo-600/80";
51
- readonly tileShadow: "shadow-blue-500/20";
52
- readonly gradient: "from-blue-400 to-indigo-400";
53
- };
54
- readonly 'kori-erp': {
55
- readonly text: "text-orange-400";
56
- readonly textLight: "text-orange-300";
57
- readonly badgeBg: "bg-orange-500/10";
58
- readonly badgeText: "text-orange-300";
59
- readonly ring: "ring-orange-500/30";
60
- readonly border: "border-orange-500/30";
61
- readonly borderGlow: "border-orange-500/20";
62
- readonly surfaceBg: "bg-orange-500/[0.06]";
63
- readonly dot: "bg-orange-400";
64
- readonly tileGradient: "from-orange-600/80 to-amber-600/80";
65
- readonly tileShadow: "shadow-orange-500/20";
66
- readonly gradient: "from-orange-400 to-amber-400";
67
- };
68
- readonly windsock: {
69
- readonly text: "text-emerald-400";
70
- readonly textLight: "text-emerald-300";
71
- readonly badgeBg: "bg-emerald-500/10";
72
- readonly badgeText: "text-emerald-300";
73
- readonly ring: "ring-emerald-500/30";
74
- readonly border: "border-emerald-500/30";
75
- readonly borderGlow: "border-emerald-500/20";
76
- readonly surfaceBg: "bg-emerald-500/[0.06]";
77
- readonly dot: "bg-emerald-400";
78
- readonly tileGradient: "from-emerald-600/80 to-teal-600/80";
79
- readonly tileShadow: "shadow-emerald-500/20";
80
- readonly gradient: "from-emerald-400 to-teal-400";
81
- };
82
- };
83
- type AppId = keyof typeof APP_THEMES;
84
-
85
- export { APP_THEMES, type AppId, type AppTheme };