@datatechsolutions/ui 2.7.117 → 2.7.119

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 (33) hide show
  1. package/dist/{chunk-OQAZ2BIC.mjs → chunk-55S2KOTZ.mjs} +2 -2
  2. package/dist/{chunk-OQAZ2BIC.mjs.map → chunk-55S2KOTZ.mjs.map} +1 -1
  3. package/dist/{chunk-MGR7H5X2.mjs → chunk-6KYBGBI4.mjs} +18 -3
  4. package/dist/chunk-6KYBGBI4.mjs.map +1 -0
  5. package/dist/{chunk-UZHWA7CM.js → chunk-DOO5ICHD.js} +35 -9
  6. package/dist/chunk-DOO5ICHD.js.map +1 -0
  7. package/dist/{chunk-5YIUJXPD.js → chunk-E42PD4X6.js} +2 -2
  8. package/dist/{chunk-5YIUJXPD.js.map → chunk-E42PD4X6.js.map} +1 -1
  9. package/dist/{chunk-FAAXHLWI.js → chunk-F4FMGGHO.js} +18 -2
  10. package/dist/chunk-F4FMGGHO.js.map +1 -0
  11. package/dist/{chunk-2KZEO34C.mjs → chunk-MAYOV7OM.mjs} +29 -3
  12. package/dist/chunk-MAYOV7OM.mjs.map +1 -0
  13. package/dist/workflow/index.d.mts +3 -3
  14. package/dist/workflow/index.d.ts +3 -3
  15. package/dist/workflow/index.js +133 -123
  16. package/dist/workflow/index.js.map +1 -1
  17. package/dist/workflow/index.mjs +12 -6
  18. package/dist/workflow/index.mjs.map +1 -1
  19. package/dist/workflow/utils.d.mts +13 -1
  20. package/dist/workflow/utils.d.ts +13 -1
  21. package/dist/workflow/utils.js +10 -6
  22. package/dist/workflow/utils.mjs +2 -2
  23. package/dist/workflow/workflow-canvas.d.mts +1 -1
  24. package/dist/workflow/workflow-canvas.d.ts +1 -1
  25. package/dist/workflow/workflow-canvas.js +3 -3
  26. package/dist/workflow/workflow-canvas.mjs +2 -2
  27. package/dist/{workflow-canvas-AmdoIvqQ.d.ts → workflow-canvas-B3k03HVM.d.mts} +2 -1
  28. package/dist/{workflow-canvas-CBA_3y6P.d.mts → workflow-canvas-CVkbfTQu.d.ts} +2 -1
  29. package/package.json +1 -1
  30. package/dist/chunk-2KZEO34C.mjs.map +0 -1
  31. package/dist/chunk-FAAXHLWI.js.map +0 -1
  32. package/dist/chunk-MGR7H5X2.mjs.map +0 -1
  33. package/dist/chunk-UZHWA7CM.js.map +0 -1
@@ -56,4 +56,16 @@ declare function validateWorkflowGraph(graph: WorkflowGraph): ValidationResult;
56
56
  */
57
57
  declare function topologicalSortAgents(graph: WorkflowGraph): string[];
58
58
 
59
- export { type LayoutDirection, applyDagreLayout, createDefaultLogicNodeConfig, topologicalSortAgents, validateWorkflowGraph };
59
+ /**
60
+ * Agent ELO Tier
61
+ * ==============
62
+ * Derives difficulty tier from agent ELO rating.
63
+ * Used in node palette, agent flow node, and agent drawer.
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 };
@@ -56,4 +56,16 @@ declare function validateWorkflowGraph(graph: WorkflowGraph): ValidationResult;
56
56
  */
57
57
  declare function topologicalSortAgents(graph: WorkflowGraph): string[];
58
58
 
59
- export { type LayoutDirection, applyDagreLayout, createDefaultLogicNodeConfig, topologicalSortAgents, validateWorkflowGraph };
59
+ /**
60
+ * Agent ELO Tier
61
+ * ==============
62
+ * Derives difficulty tier from agent ELO rating.
63
+ * Used in node palette, agent flow node, and agent drawer.
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,26 +1,30 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunk5YIUJXPD_js = require('../chunk-5YIUJXPD.js');
5
- var chunkFAAXHLWI_js = require('../chunk-FAAXHLWI.js');
4
+ var chunkE42PD4X6_js = require('../chunk-E42PD4X6.js');
5
+ var chunkF4FMGGHO_js = require('../chunk-F4FMGGHO.js');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "topologicalSortAgents", {
10
10
  enumerable: true,
11
- get: function () { return chunk5YIUJXPD_js.topologicalSortAgents; }
11
+ get: function () { return chunkE42PD4X6_js.topologicalSortAgents; }
12
12
  });
13
13
  Object.defineProperty(exports, "validateWorkflowGraph", {
14
14
  enumerable: true,
15
- get: function () { return chunk5YIUJXPD_js.validateWorkflowGraph; }
15
+ get: function () { return chunkE42PD4X6_js.validateWorkflowGraph; }
16
16
  });
17
17
  Object.defineProperty(exports, "applyDagreLayout", {
18
18
  enumerable: true,
19
- get: function () { return chunkFAAXHLWI_js.applyDagreLayout; }
19
+ get: function () { return chunkF4FMGGHO_js.applyDagreLayout; }
20
20
  });
21
21
  Object.defineProperty(exports, "createDefaultLogicNodeConfig", {
22
22
  enumerable: true,
23
- get: function () { return chunkFAAXHLWI_js.createDefaultLogicNodeConfig; }
23
+ get: function () { return chunkF4FMGGHO_js.createDefaultLogicNodeConfig; }
24
+ });
25
+ Object.defineProperty(exports, "getAgentTier", {
26
+ enumerable: true,
27
+ get: function () { return chunkF4FMGGHO_js.getAgentTier; }
24
28
  });
25
29
  //# sourceMappingURL=utils.js.map
26
30
  //# sourceMappingURL=utils.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- export { topologicalSortAgents, validateWorkflowGraph } from '../chunk-OQAZ2BIC.mjs';
3
- export { applyDagreLayout, createDefaultLogicNodeConfig } from '../chunk-MGR7H5X2.mjs';
2
+ export { topologicalSortAgents, validateWorkflowGraph } from '../chunk-55S2KOTZ.mjs';
3
+ export { applyDagreLayout, createDefaultLogicNodeConfig, getAgentTier } from '../chunk-6KYBGBI4.mjs';
4
4
  //# sourceMappingURL=utils.mjs.map
5
5
  //# sourceMappingURL=utils.mjs.map
@@ -1,5 +1,5 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { i as Workspace, h as WorkspaceProps } from '../workflow-canvas-CBA_3y6P.mjs';
3
+ export { i as Workspace, h as WorkspaceProps } from '../workflow-canvas-B3k03HVM.mjs';
4
4
  import '@xyflow/react';
5
5
  import './contracts.mjs';
@@ -1,5 +1,5 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { i as Workspace, h as WorkspaceProps } from '../workflow-canvas-AmdoIvqQ.js';
3
+ export { i as Workspace, h as WorkspaceProps } from '../workflow-canvas-CVkbfTQu.js';
4
4
  import '@xyflow/react';
5
5
  import './contracts.js';
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkUZHWA7CM_js = require('../chunk-UZHWA7CM.js');
4
+ var chunkDOO5ICHD_js = require('../chunk-DOO5ICHD.js');
5
5
  require('../chunk-YRY7HFKG.js');
6
6
  require('../chunk-NJ6PBGQM.js');
7
- require('../chunk-FAAXHLWI.js');
7
+ require('../chunk-F4FMGGHO.js');
8
8
  require('../chunk-UZ3CMNUJ.js');
9
9
 
10
10
 
11
11
 
12
12
  Object.defineProperty(exports, "Workspace", {
13
13
  enumerable: true,
14
- get: function () { return chunkUZHWA7CM_js.Workspace; }
14
+ get: function () { return chunkDOO5ICHD_js.Workspace; }
15
15
  });
16
16
  //# sourceMappingURL=workflow-canvas.js.map
17
17
  //# sourceMappingURL=workflow-canvas.js.map
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- export { Workspace } from '../chunk-2KZEO34C.mjs';
2
+ export { Workspace } from '../chunk-MAYOV7OM.mjs';
3
3
  import '../chunk-URTWMG3V.mjs';
4
4
  import '../chunk-UBCSCLUW.mjs';
5
- import '../chunk-MGR7H5X2.mjs';
5
+ import '../chunk-6KYBGBI4.mjs';
6
6
  import '../chunk-D2JF6C3E.mjs';
7
7
  //# sourceMappingURL=workflow-canvas.mjs.map
8
8
  //# sourceMappingURL=workflow-canvas.mjs.map
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ComponentProps } from 'react';
3
3
  import { NodeTypes } from '@xyflow/react';
4
- import { AgentConfig, AnswerNodeConfig, CodeNodeConfig, DocumentExtractorNodeConfig, EndNodeConfig, EntityNodeConfig, GroupNodeConfig, HttpRequestNodeConfig, IfElseNodeConfig, IterationNodeConfig, IterationStartNodeConfig, KnowledgeBaseNodeConfig, ListOperatorNodeConfig, NoteNodeConfig, ParameterExtractorNodeConfig, QuestionClassifierNodeConfig, AgentRule, RuleNodeConfig, StartNodeConfig, TemplateTransformNodeConfig, Subworkflow, VariableAggregatorNodeConfig, VariableAssignerNodeConfig, AgentModel, WorkflowGraph, LogicNodeConfig } from './workflow/contracts.js';
4
+ import { AgentConfig, AnswerNodeConfig, CodeNodeConfig, DocumentExtractorNodeConfig, EndNodeConfig, EntityNodeConfig, GroupNodeConfig, HttpRequestNodeConfig, IfElseNodeConfig, IterationNodeConfig, IterationStartNodeConfig, KnowledgeBaseNodeConfig, ListOperatorNodeConfig, NoteNodeConfig, ParameterExtractorNodeConfig, QuestionClassifierNodeConfig, AgentRule, RuleNodeConfig, StartNodeConfig, TemplateTransformNodeConfig, Subworkflow, VariableAggregatorNodeConfig, VariableAssignerNodeConfig, AgentModel, AgentTool, WorkflowGraph, LogicNodeConfig } from './workflow/contracts.mjs';
5
5
 
6
6
  type WorkflowCardDisplayMode = 'detailed' | 'compact';
7
7
  type WorkflowEntityDefinition = {
@@ -208,6 +208,7 @@ type WorkflowCanvasProps = {
208
208
  agents: AgentWithPrompts[];
209
209
  models: AgentModel[];
210
210
  tools?: Subworkflow[];
211
+ agentTools?: AgentTool[];
211
212
  rules?: AgentRule[];
212
213
  entities?: WorkflowEntityDefinition[];
213
214
  initialGraph?: WorkflowGraph | null;
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ComponentProps } from 'react';
3
3
  import { NodeTypes } from '@xyflow/react';
4
- import { AgentConfig, AnswerNodeConfig, CodeNodeConfig, DocumentExtractorNodeConfig, EndNodeConfig, EntityNodeConfig, GroupNodeConfig, HttpRequestNodeConfig, IfElseNodeConfig, IterationNodeConfig, IterationStartNodeConfig, KnowledgeBaseNodeConfig, ListOperatorNodeConfig, NoteNodeConfig, ParameterExtractorNodeConfig, QuestionClassifierNodeConfig, AgentRule, RuleNodeConfig, StartNodeConfig, TemplateTransformNodeConfig, Subworkflow, VariableAggregatorNodeConfig, VariableAssignerNodeConfig, AgentModel, WorkflowGraph, LogicNodeConfig } from './workflow/contracts.mjs';
4
+ import { AgentConfig, AnswerNodeConfig, CodeNodeConfig, DocumentExtractorNodeConfig, EndNodeConfig, EntityNodeConfig, GroupNodeConfig, HttpRequestNodeConfig, IfElseNodeConfig, IterationNodeConfig, IterationStartNodeConfig, KnowledgeBaseNodeConfig, ListOperatorNodeConfig, NoteNodeConfig, ParameterExtractorNodeConfig, QuestionClassifierNodeConfig, AgentRule, RuleNodeConfig, StartNodeConfig, TemplateTransformNodeConfig, Subworkflow, VariableAggregatorNodeConfig, VariableAssignerNodeConfig, AgentModel, AgentTool, WorkflowGraph, LogicNodeConfig } from './workflow/contracts.js';
5
5
 
6
6
  type WorkflowCardDisplayMode = 'detailed' | 'compact';
7
7
  type WorkflowEntityDefinition = {
@@ -208,6 +208,7 @@ type WorkflowCanvasProps = {
208
208
  agents: AgentWithPrompts[];
209
209
  models: AgentModel[];
210
210
  tools?: Subworkflow[];
211
+ agentTools?: AgentTool[];
211
212
  rules?: AgentRule[];
212
213
  entities?: WorkflowEntityDefinition[];
213
214
  initialGraph?: WorkflowGraph | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datatechsolutions/ui",
3
- "version": "2.7.117",
3
+ "version": "2.7.119",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",