@datatechsolutions/ui 2.11.46 → 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.
- package/dist/astrlabe/index.js +143 -143
- package/dist/astrlabe/index.mjs +6 -6
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/{chunk-KEUOCEOO.js → chunk-2IOPJ5BM.js} +3 -3
- package/dist/{chunk-KEUOCEOO.js.map → chunk-2IOPJ5BM.js.map} +1 -1
- package/dist/{chunk-DNGI4ASL.mjs → chunk-MDD6H63O.mjs} +3 -3
- package/dist/{chunk-DNGI4ASL.mjs.map → chunk-MDD6H63O.mjs.map} +1 -1
- package/dist/{chunk-3B5V4VUC.js → chunk-NWELMK3Y.js} +55 -54
- package/dist/chunk-NWELMK3Y.js.map +1 -0
- package/dist/{chunk-MAGSMQG7.mjs → chunk-XDS3RWPA.mjs} +5 -4
- package/dist/chunk-XDS3RWPA.mjs.map +1 -0
- package/dist/index.js +718 -718
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/astrlabe/contracts.d.mts +0 -309
- package/dist/astrlabe/contracts.d.ts +0 -309
- package/dist/astrlabe/graph-node.d.mts +0 -28
- package/dist/astrlabe/graph-node.d.ts +0 -28
- package/dist/astrlabe/index.d.mts +0 -749
- package/dist/astrlabe/index.d.ts +0 -749
- package/dist/astrlabe/utils.d.mts +0 -71
- package/dist/astrlabe/utils.d.ts +0 -71
- package/dist/astrlabe/workflow-canvas.d.mts +0 -5
- package/dist/astrlabe/workflow-canvas.d.ts +0 -5
- package/dist/astrlabe/workflow-preview-canvas.d.mts +0 -10
- package/dist/astrlabe/workflow-preview-canvas.d.ts +0 -10
- package/dist/brand/index.d.mts +0 -85
- package/dist/brand/index.d.ts +0 -85
- package/dist/chunk-3B5V4VUC.js.map +0 -1
- package/dist/chunk-MAGSMQG7.mjs.map +0 -1
- package/dist/dynamic-island-confirm-Bw24Ll2r.d.mts +0 -114
- package/dist/dynamic-island-confirm-Bw24Ll2r.d.ts +0 -114
- package/dist/index.d.mts +0 -4673
- package/dist/index.d.ts +0 -4673
- package/dist/lib/i18n-context.d.mts +0 -36
- package/dist/lib/i18n-context.d.ts +0 -36
- package/dist/lib/router-context.d.mts +0 -35
- package/dist/lib/router-context.d.ts +0 -35
- package/dist/workflow-canvas-D4928AfA.d.mts +0 -273
- package/dist/workflow-canvas-NSxfr5dy.d.ts +0 -273
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
type TranslateFn = ((key: string, params?: Record<string, unknown>) => string) & {
|
|
5
|
-
/** Return the raw (unparsed) value at a given key — useful for arrays/objects in messages */
|
|
6
|
-
raw: (key: string) => unknown;
|
|
7
|
-
};
|
|
8
|
-
interface I18nContextValue {
|
|
9
|
-
translate: (namespace?: string) => TranslateFn;
|
|
10
|
-
locale: string;
|
|
11
|
-
messages?: Record<string, unknown>;
|
|
12
|
-
}
|
|
13
|
-
type I18nProviderProps = {
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
value: I18nContextValue;
|
|
16
|
-
};
|
|
17
|
-
declare function I18nProvider({ children, value }: I18nProviderProps): react_jsx_runtime.JSX.Element;
|
|
18
|
-
declare function useTranslations(namespace?: string): TranslateFn;
|
|
19
|
-
declare function useLocale(): string;
|
|
20
|
-
type I18nFormatter = {
|
|
21
|
-
dateTime: (date: Date, options?: Intl.DateTimeFormatOptions) => string;
|
|
22
|
-
relativeTime: (date: Date, options?: Intl.RelativeTimeFormatOptions) => string;
|
|
23
|
-
number: (value: number, options?: Intl.NumberFormatOptions) => string;
|
|
24
|
-
};
|
|
25
|
-
declare function useFormatter(): I18nFormatter;
|
|
26
|
-
/**
|
|
27
|
-
* Create an I18nContextValue from a flat messages object and locale.
|
|
28
|
-
* Messages should be a nested object where keys are namespaces
|
|
29
|
-
* and values are objects of translation key → ICU message string.
|
|
30
|
-
*
|
|
31
|
-
* This performs simple string interpolation with {param} placeholders.
|
|
32
|
-
* For full ICU MessageFormat (plurals, select, etc.), use intl-messageformat.
|
|
33
|
-
*/
|
|
34
|
-
declare function createI18nFromMessages(locale: string, messages: Record<string, unknown>): I18nContextValue;
|
|
35
|
-
|
|
36
|
-
export { type I18nContextValue, type I18nFormatter, I18nProvider, type I18nProviderProps, createI18nFromMessages, useFormatter, useLocale, useTranslations };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
type TranslateFn = ((key: string, params?: Record<string, unknown>) => string) & {
|
|
5
|
-
/** Return the raw (unparsed) value at a given key — useful for arrays/objects in messages */
|
|
6
|
-
raw: (key: string) => unknown;
|
|
7
|
-
};
|
|
8
|
-
interface I18nContextValue {
|
|
9
|
-
translate: (namespace?: string) => TranslateFn;
|
|
10
|
-
locale: string;
|
|
11
|
-
messages?: Record<string, unknown>;
|
|
12
|
-
}
|
|
13
|
-
type I18nProviderProps = {
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
value: I18nContextValue;
|
|
16
|
-
};
|
|
17
|
-
declare function I18nProvider({ children, value }: I18nProviderProps): react_jsx_runtime.JSX.Element;
|
|
18
|
-
declare function useTranslations(namespace?: string): TranslateFn;
|
|
19
|
-
declare function useLocale(): string;
|
|
20
|
-
type I18nFormatter = {
|
|
21
|
-
dateTime: (date: Date, options?: Intl.DateTimeFormatOptions) => string;
|
|
22
|
-
relativeTime: (date: Date, options?: Intl.RelativeTimeFormatOptions) => string;
|
|
23
|
-
number: (value: number, options?: Intl.NumberFormatOptions) => string;
|
|
24
|
-
};
|
|
25
|
-
declare function useFormatter(): I18nFormatter;
|
|
26
|
-
/**
|
|
27
|
-
* Create an I18nContextValue from a flat messages object and locale.
|
|
28
|
-
* Messages should be a nested object where keys are namespaces
|
|
29
|
-
* and values are objects of translation key → ICU message string.
|
|
30
|
-
*
|
|
31
|
-
* This performs simple string interpolation with {param} placeholders.
|
|
32
|
-
* For full ICU MessageFormat (plurals, select, etc.), use intl-messageformat.
|
|
33
|
-
*/
|
|
34
|
-
declare function createI18nFromMessages(locale: string, messages: Record<string, unknown>): I18nContextValue;
|
|
35
|
-
|
|
36
|
-
export { type I18nContextValue, type I18nFormatter, I18nProvider, type I18nProviderProps, createI18nFromMessages, useFormatter, useLocale, useTranslations };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode, Ref, AnchorHTMLAttributes } from 'react';
|
|
3
|
-
|
|
4
|
-
type LinkProps = {
|
|
5
|
-
href: string;
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
ref?: Ref<HTMLAnchorElement>;
|
|
8
|
-
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
|
|
9
|
-
type LinkComponent = React.FC<LinkProps>;
|
|
10
|
-
interface RouterContextValue {
|
|
11
|
-
pathname: string;
|
|
12
|
-
navigate: (href: string) => void;
|
|
13
|
-
replace: (href: string) => void;
|
|
14
|
-
back: () => void;
|
|
15
|
-
forward: () => void;
|
|
16
|
-
prefetch: (href: string) => void;
|
|
17
|
-
Link: LinkComponent;
|
|
18
|
-
}
|
|
19
|
-
type RouterProviderProps = {
|
|
20
|
-
children: ReactNode;
|
|
21
|
-
value: RouterContextValue;
|
|
22
|
-
};
|
|
23
|
-
declare function RouterProvider({ children, value }: RouterProviderProps): react_jsx_runtime.JSX.Element;
|
|
24
|
-
declare function useRouter(): {
|
|
25
|
-
push: (href: string) => void;
|
|
26
|
-
replace: (href: string) => void;
|
|
27
|
-
back: () => void;
|
|
28
|
-
forward: () => void;
|
|
29
|
-
refresh: () => void;
|
|
30
|
-
prefetch: (href: string) => void;
|
|
31
|
-
};
|
|
32
|
-
declare function usePathname(): string;
|
|
33
|
-
declare function useLink(): LinkComponent;
|
|
34
|
-
|
|
35
|
-
export { type LinkComponent, type LinkProps, type RouterContextValue, RouterProvider, type RouterProviderProps, useLink, usePathname, useRouter };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode, Ref, AnchorHTMLAttributes } from 'react';
|
|
3
|
-
|
|
4
|
-
type LinkProps = {
|
|
5
|
-
href: string;
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
ref?: Ref<HTMLAnchorElement>;
|
|
8
|
-
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
|
|
9
|
-
type LinkComponent = React.FC<LinkProps>;
|
|
10
|
-
interface RouterContextValue {
|
|
11
|
-
pathname: string;
|
|
12
|
-
navigate: (href: string) => void;
|
|
13
|
-
replace: (href: string) => void;
|
|
14
|
-
back: () => void;
|
|
15
|
-
forward: () => void;
|
|
16
|
-
prefetch: (href: string) => void;
|
|
17
|
-
Link: LinkComponent;
|
|
18
|
-
}
|
|
19
|
-
type RouterProviderProps = {
|
|
20
|
-
children: ReactNode;
|
|
21
|
-
value: RouterContextValue;
|
|
22
|
-
};
|
|
23
|
-
declare function RouterProvider({ children, value }: RouterProviderProps): react_jsx_runtime.JSX.Element;
|
|
24
|
-
declare function useRouter(): {
|
|
25
|
-
push: (href: string) => void;
|
|
26
|
-
replace: (href: string) => void;
|
|
27
|
-
back: () => void;
|
|
28
|
-
forward: () => void;
|
|
29
|
-
refresh: () => void;
|
|
30
|
-
prefetch: (href: string) => void;
|
|
31
|
-
};
|
|
32
|
-
declare function usePathname(): string;
|
|
33
|
-
declare function useLink(): LinkComponent;
|
|
34
|
-
|
|
35
|
-
export { type LinkComponent, type LinkProps, type RouterContextValue, RouterProvider, type RouterProviderProps, useLink, usePathname, useRouter };
|
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
import { NodeTypes } from '@xyflow/react';
|
|
4
|
-
import { AgentConfig, AnswerNodeConfig, CodeNodeConfig, DocumentExtractorNodeConfig, EndNodeConfig, EntityNodeConfig, GroupNodeConfig, HttpRequestNodeConfig, IfElseNodeConfig, IterationNodeConfig, IterationStartNodeConfig, KnowledgeBaseNodeConfig, ListOperatorNodeConfig, ModelProviderNodeConfig, NoteNodeConfig, ParameterExtractorNodeConfig, QuestionClassifierNodeConfig, AgentRule, RuleNodeConfig, StartNodeConfig, TemplateTransformNodeConfig, WorkflowTool, VariableAggregatorNodeConfig, VariableAssignerNodeConfig, AgentModel, AgentTool, WorkflowGraph, LogicNodeConfig } from './astrlabe/contracts.mjs';
|
|
5
|
-
|
|
6
|
-
type WorkflowCardDisplayMode = 'detailed' | 'compact';
|
|
7
|
-
type WorkflowEntityDefinition = {
|
|
8
|
-
id: string;
|
|
9
|
-
label: string;
|
|
10
|
-
description: string;
|
|
11
|
-
defaultLimit: number;
|
|
12
|
-
fields: Array<{
|
|
13
|
-
name: string;
|
|
14
|
-
type: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
}>;
|
|
17
|
-
};
|
|
18
|
-
type AgentWithPrompts = AgentConfig & {
|
|
19
|
-
promptCount: number;
|
|
20
|
-
activePromptVersion: number;
|
|
21
|
-
};
|
|
22
|
-
type ModelProviderNodeData = {
|
|
23
|
-
config?: ModelProviderNodeConfig;
|
|
24
|
-
label: string;
|
|
25
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
26
|
-
onEdit?: (nodeId: string) => void;
|
|
27
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
28
|
-
};
|
|
29
|
-
type AgentNodeTool = {
|
|
30
|
-
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
category?: string;
|
|
33
|
-
enabled: boolean;
|
|
34
|
-
};
|
|
35
|
-
type AgentNodeData = {
|
|
36
|
-
agent: AgentWithPrompts;
|
|
37
|
-
order: number;
|
|
38
|
-
selected: boolean;
|
|
39
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
40
|
-
/** Agent tools assigned to this agent */
|
|
41
|
-
agentTools?: AgentNodeTool[];
|
|
42
|
-
/** Model provider name for display */
|
|
43
|
-
providerName?: string;
|
|
44
|
-
/** Model provider node ID (for config reference) */
|
|
45
|
-
modelProviderId?: string;
|
|
46
|
-
/** Model provider display label (e.g. "AWS Bedrock us-east-1") */
|
|
47
|
-
modelProviderLabel?: string;
|
|
48
|
-
onSelect: (agentId: string) => void;
|
|
49
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
50
|
-
};
|
|
51
|
-
type ToolCanvasData = {
|
|
52
|
-
tool: WorkflowTool;
|
|
53
|
-
order: number;
|
|
54
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
55
|
-
onEdit?: (tool: WorkflowTool) => void;
|
|
56
|
-
onToggle?: (tool: WorkflowTool) => void;
|
|
57
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
58
|
-
};
|
|
59
|
-
type RuleNodeData = {
|
|
60
|
-
rule: AgentRule;
|
|
61
|
-
order: number;
|
|
62
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
63
|
-
onEdit?: (rule: AgentRule) => void;
|
|
64
|
-
onToggle?: (rule: AgentRule) => void;
|
|
65
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
66
|
-
} | {
|
|
67
|
-
rule: undefined;
|
|
68
|
-
config: RuleNodeConfig;
|
|
69
|
-
label: string;
|
|
70
|
-
order: number;
|
|
71
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
72
|
-
onEdit?: (nodeId: string) => void;
|
|
73
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
74
|
-
};
|
|
75
|
-
type EntityNodeData = {
|
|
76
|
-
config?: EntityNodeConfig;
|
|
77
|
-
label: string;
|
|
78
|
-
entity?: WorkflowEntityDefinition;
|
|
79
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
80
|
-
onEdit?: (nodeId: string) => void;
|
|
81
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
82
|
-
};
|
|
83
|
-
type StartNodeData = {
|
|
84
|
-
config: StartNodeConfig;
|
|
85
|
-
label: string;
|
|
86
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
87
|
-
onDelete?: (nodeId: string) => void;
|
|
88
|
-
onEdit?: (nodeId: string) => void;
|
|
89
|
-
};
|
|
90
|
-
type EndNodeData = {
|
|
91
|
-
config: EndNodeConfig;
|
|
92
|
-
label: string;
|
|
93
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
94
|
-
onDelete?: (nodeId: string) => void;
|
|
95
|
-
onEdit?: (nodeId: string) => void;
|
|
96
|
-
};
|
|
97
|
-
type IfElseNodeData = {
|
|
98
|
-
config: IfElseNodeConfig;
|
|
99
|
-
label: string;
|
|
100
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
101
|
-
onDelete?: (nodeId: string) => void;
|
|
102
|
-
onEdit?: (nodeId: string) => void;
|
|
103
|
-
};
|
|
104
|
-
type CodeNodeData = {
|
|
105
|
-
config: CodeNodeConfig;
|
|
106
|
-
label: string;
|
|
107
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
108
|
-
onDelete?: (nodeId: string) => void;
|
|
109
|
-
onEdit?: (nodeId: string) => void;
|
|
110
|
-
};
|
|
111
|
-
type HttpRequestNodeData = {
|
|
112
|
-
config: HttpRequestNodeConfig;
|
|
113
|
-
label: string;
|
|
114
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
115
|
-
onDelete?: (nodeId: string) => void;
|
|
116
|
-
onEdit?: (nodeId: string) => void;
|
|
117
|
-
};
|
|
118
|
-
type TemplateTransformNodeData = {
|
|
119
|
-
config: TemplateTransformNodeConfig;
|
|
120
|
-
label: string;
|
|
121
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
122
|
-
onDelete?: (nodeId: string) => void;
|
|
123
|
-
onEdit?: (nodeId: string) => void;
|
|
124
|
-
};
|
|
125
|
-
type IterationNodeData = {
|
|
126
|
-
config: IterationNodeConfig;
|
|
127
|
-
label: string;
|
|
128
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
129
|
-
onDelete?: (nodeId: string) => void;
|
|
130
|
-
onEdit?: (nodeId: string) => void;
|
|
131
|
-
};
|
|
132
|
-
type KnowledgeBaseNodeData = {
|
|
133
|
-
config: KnowledgeBaseNodeConfig;
|
|
134
|
-
label: string;
|
|
135
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
136
|
-
onDelete?: (nodeId: string) => void;
|
|
137
|
-
onEdit?: (nodeId: string) => void;
|
|
138
|
-
};
|
|
139
|
-
type AnswerNodeData = {
|
|
140
|
-
config: AnswerNodeConfig;
|
|
141
|
-
label: string;
|
|
142
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
143
|
-
onDelete?: (nodeId: string) => void;
|
|
144
|
-
onEdit?: (nodeId: string) => void;
|
|
145
|
-
};
|
|
146
|
-
type QuestionClassifierNodeData = {
|
|
147
|
-
config: QuestionClassifierNodeConfig;
|
|
148
|
-
label: string;
|
|
149
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
150
|
-
onDelete?: (nodeId: string) => void;
|
|
151
|
-
onEdit?: (nodeId: string) => void;
|
|
152
|
-
};
|
|
153
|
-
type ParameterExtractorNodeData = {
|
|
154
|
-
config: ParameterExtractorNodeConfig;
|
|
155
|
-
label: string;
|
|
156
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
157
|
-
onDelete?: (nodeId: string) => void;
|
|
158
|
-
onEdit?: (nodeId: string) => void;
|
|
159
|
-
};
|
|
160
|
-
type VariableAssignerNodeData = {
|
|
161
|
-
config: VariableAssignerNodeConfig;
|
|
162
|
-
label: string;
|
|
163
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
164
|
-
onDelete?: (nodeId: string) => void;
|
|
165
|
-
onEdit?: (nodeId: string) => void;
|
|
166
|
-
};
|
|
167
|
-
type VariableAggregatorNodeData = {
|
|
168
|
-
config: VariableAggregatorNodeConfig;
|
|
169
|
-
label: string;
|
|
170
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
171
|
-
onDelete?: (nodeId: string) => void;
|
|
172
|
-
onEdit?: (nodeId: string) => void;
|
|
173
|
-
};
|
|
174
|
-
type DocumentExtractorNodeData = {
|
|
175
|
-
config: DocumentExtractorNodeConfig;
|
|
176
|
-
label: string;
|
|
177
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
178
|
-
onDelete?: (nodeId: string) => void;
|
|
179
|
-
onEdit?: (nodeId: string) => void;
|
|
180
|
-
};
|
|
181
|
-
type ListOperatorNodeData = {
|
|
182
|
-
config: ListOperatorNodeConfig;
|
|
183
|
-
label: string;
|
|
184
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
185
|
-
onDelete?: (nodeId: string) => void;
|
|
186
|
-
onEdit?: (nodeId: string) => void;
|
|
187
|
-
};
|
|
188
|
-
type IterationStartNodeData = {
|
|
189
|
-
config: IterationStartNodeConfig;
|
|
190
|
-
label: string;
|
|
191
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
192
|
-
onDelete?: (nodeId: string) => void;
|
|
193
|
-
onEdit?: (nodeId: string) => void;
|
|
194
|
-
};
|
|
195
|
-
type NoteNodeData = {
|
|
196
|
-
config: NoteNodeConfig;
|
|
197
|
-
label: string;
|
|
198
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
199
|
-
onDelete?: (nodeId: string) => void;
|
|
200
|
-
onEdit?: (nodeId: string) => void;
|
|
201
|
-
};
|
|
202
|
-
type GroupNodeData = {
|
|
203
|
-
config: GroupNodeConfig;
|
|
204
|
-
label: string;
|
|
205
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
206
|
-
onEdit?: (nodeId: string) => void;
|
|
207
|
-
onToggleExpand?: (nodeId: string) => void;
|
|
208
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
type AgentModalRenderProps = {
|
|
212
|
-
agent: AgentWithPrompts | null;
|
|
213
|
-
models: AgentModel[];
|
|
214
|
-
open: boolean;
|
|
215
|
-
isCreateMode: boolean;
|
|
216
|
-
onClose: () => void;
|
|
217
|
-
onSaved: () => void;
|
|
218
|
-
};
|
|
219
|
-
type LogicNodeModalRenderProps = {
|
|
220
|
-
nodeId: string | null;
|
|
221
|
-
nodeLabel: string;
|
|
222
|
-
config: LogicNodeConfig | null;
|
|
223
|
-
open: boolean;
|
|
224
|
-
onClose: () => void;
|
|
225
|
-
onSave: (nodeId: string, updatedConfig: LogicNodeConfig) => void;
|
|
226
|
-
entities: WorkflowEntityDefinition[];
|
|
227
|
-
};
|
|
228
|
-
type WorkflowCanvasProps = {
|
|
229
|
-
agents: AgentWithPrompts[];
|
|
230
|
-
models: AgentModel[];
|
|
231
|
-
tools?: WorkflowTool[];
|
|
232
|
-
agentTools?: AgentTool[];
|
|
233
|
-
rules?: AgentRule[];
|
|
234
|
-
entities?: WorkflowEntityDefinition[];
|
|
235
|
-
datasources?: Array<{
|
|
236
|
-
id: string;
|
|
237
|
-
name: string;
|
|
238
|
-
dialect: string;
|
|
239
|
-
}>;
|
|
240
|
-
onLoadTables?: (datasourceId: string) => Promise<string[]>;
|
|
241
|
-
onLoadSchema?: (datasourceId: string, table: string) => Promise<Array<{
|
|
242
|
-
name: string;
|
|
243
|
-
type: string;
|
|
244
|
-
nullable?: boolean;
|
|
245
|
-
}>>;
|
|
246
|
-
initialGraph?: WorkflowGraph | null;
|
|
247
|
-
onGraphChange?: (graph: WorkflowGraph) => void;
|
|
248
|
-
onEditTool?: (tool: WorkflowTool) => void;
|
|
249
|
-
onToggleTool?: (tool: WorkflowTool) => void;
|
|
250
|
-
onEditRule?: (rule: AgentRule) => void;
|
|
251
|
-
onToggleRule?: (rule: AgentRule) => void;
|
|
252
|
-
onCancelCreateAgent?: () => void;
|
|
253
|
-
onAgentSaved?: () => void;
|
|
254
|
-
isCreatingAgent?: boolean;
|
|
255
|
-
/** Custom node type components — merged with built-in edge types */
|
|
256
|
-
nodeTypes?: NodeTypes;
|
|
257
|
-
/** Optional: render the AgentModal externally (frontend provides the component) */
|
|
258
|
-
renderAgentModal?: (props: AgentModalRenderProps) => React.ReactNode;
|
|
259
|
-
/** Optional: render a custom LogicNodeModal; defaults to internal modal */
|
|
260
|
-
renderLogicNodeModal?: (props: LogicNodeModalRenderProps) => React.ReactNode;
|
|
261
|
-
};
|
|
262
|
-
declare function WorkflowCanvas(props: WorkflowCanvasProps): react_jsx_runtime.JSX.Element;
|
|
263
|
-
|
|
264
|
-
type BuilderCanvasProps = ComponentProps<typeof WorkflowCanvas>;
|
|
265
|
-
type WorkspaceProps = {
|
|
266
|
-
locale?: string;
|
|
267
|
-
messages?: Record<string, unknown>;
|
|
268
|
-
className?: string;
|
|
269
|
-
workflowId?: string;
|
|
270
|
-
} & Partial<BuilderCanvasProps>;
|
|
271
|
-
declare function Workspace({ locale, messages, className, workflowId, ...canvasProps }: WorkspaceProps): react_jsx_runtime.JSX.Element;
|
|
272
|
-
|
|
273
|
-
export { type AgentWithPrompts as A, type CodeNodeData as C, type DocumentExtractorNodeData as D, type EntityNodeData as E, type GroupNodeData as G, type HttpRequestNodeData as H, type IfElseNodeData as I, type KnowledgeBaseNodeData as K, type ListOperatorNodeData as L, type ModelProviderNodeData as M, type NoteNodeData as N, type ParameterExtractorNodeData as P, type QuestionClassifierNodeData as Q, type RuleNodeData as R, type StartNodeData as S, type ToolCanvasData as T, type VariableAssignerNodeData as V, type WorkflowEntityDefinition as W, type AgentNodeData as a, type EndNodeData as b, type TemplateTransformNodeData as c, type IterationNodeData as d, type AnswerNodeData as e, type VariableAggregatorNodeData as f, type IterationStartNodeData as g, type WorkspaceProps as h, type AgentNodeTool as i, Workspace as j };
|
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
import { NodeTypes } from '@xyflow/react';
|
|
4
|
-
import { AgentConfig, AnswerNodeConfig, CodeNodeConfig, DocumentExtractorNodeConfig, EndNodeConfig, EntityNodeConfig, GroupNodeConfig, HttpRequestNodeConfig, IfElseNodeConfig, IterationNodeConfig, IterationStartNodeConfig, KnowledgeBaseNodeConfig, ListOperatorNodeConfig, ModelProviderNodeConfig, NoteNodeConfig, ParameterExtractorNodeConfig, QuestionClassifierNodeConfig, AgentRule, RuleNodeConfig, StartNodeConfig, TemplateTransformNodeConfig, WorkflowTool, VariableAggregatorNodeConfig, VariableAssignerNodeConfig, AgentModel, AgentTool, WorkflowGraph, LogicNodeConfig } from './astrlabe/contracts.js';
|
|
5
|
-
|
|
6
|
-
type WorkflowCardDisplayMode = 'detailed' | 'compact';
|
|
7
|
-
type WorkflowEntityDefinition = {
|
|
8
|
-
id: string;
|
|
9
|
-
label: string;
|
|
10
|
-
description: string;
|
|
11
|
-
defaultLimit: number;
|
|
12
|
-
fields: Array<{
|
|
13
|
-
name: string;
|
|
14
|
-
type: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
}>;
|
|
17
|
-
};
|
|
18
|
-
type AgentWithPrompts = AgentConfig & {
|
|
19
|
-
promptCount: number;
|
|
20
|
-
activePromptVersion: number;
|
|
21
|
-
};
|
|
22
|
-
type ModelProviderNodeData = {
|
|
23
|
-
config?: ModelProviderNodeConfig;
|
|
24
|
-
label: string;
|
|
25
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
26
|
-
onEdit?: (nodeId: string) => void;
|
|
27
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
28
|
-
};
|
|
29
|
-
type AgentNodeTool = {
|
|
30
|
-
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
category?: string;
|
|
33
|
-
enabled: boolean;
|
|
34
|
-
};
|
|
35
|
-
type AgentNodeData = {
|
|
36
|
-
agent: AgentWithPrompts;
|
|
37
|
-
order: number;
|
|
38
|
-
selected: boolean;
|
|
39
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
40
|
-
/** Agent tools assigned to this agent */
|
|
41
|
-
agentTools?: AgentNodeTool[];
|
|
42
|
-
/** Model provider name for display */
|
|
43
|
-
providerName?: string;
|
|
44
|
-
/** Model provider node ID (for config reference) */
|
|
45
|
-
modelProviderId?: string;
|
|
46
|
-
/** Model provider display label (e.g. "AWS Bedrock us-east-1") */
|
|
47
|
-
modelProviderLabel?: string;
|
|
48
|
-
onSelect: (agentId: string) => void;
|
|
49
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
50
|
-
};
|
|
51
|
-
type ToolCanvasData = {
|
|
52
|
-
tool: WorkflowTool;
|
|
53
|
-
order: number;
|
|
54
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
55
|
-
onEdit?: (tool: WorkflowTool) => void;
|
|
56
|
-
onToggle?: (tool: WorkflowTool) => void;
|
|
57
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
58
|
-
};
|
|
59
|
-
type RuleNodeData = {
|
|
60
|
-
rule: AgentRule;
|
|
61
|
-
order: number;
|
|
62
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
63
|
-
onEdit?: (rule: AgentRule) => void;
|
|
64
|
-
onToggle?: (rule: AgentRule) => void;
|
|
65
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
66
|
-
} | {
|
|
67
|
-
rule: undefined;
|
|
68
|
-
config: RuleNodeConfig;
|
|
69
|
-
label: string;
|
|
70
|
-
order: number;
|
|
71
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
72
|
-
onEdit?: (nodeId: string) => void;
|
|
73
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
74
|
-
};
|
|
75
|
-
type EntityNodeData = {
|
|
76
|
-
config?: EntityNodeConfig;
|
|
77
|
-
label: string;
|
|
78
|
-
entity?: WorkflowEntityDefinition;
|
|
79
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
80
|
-
onEdit?: (nodeId: string) => void;
|
|
81
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
82
|
-
};
|
|
83
|
-
type StartNodeData = {
|
|
84
|
-
config: StartNodeConfig;
|
|
85
|
-
label: string;
|
|
86
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
87
|
-
onDelete?: (nodeId: string) => void;
|
|
88
|
-
onEdit?: (nodeId: string) => void;
|
|
89
|
-
};
|
|
90
|
-
type EndNodeData = {
|
|
91
|
-
config: EndNodeConfig;
|
|
92
|
-
label: string;
|
|
93
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
94
|
-
onDelete?: (nodeId: string) => void;
|
|
95
|
-
onEdit?: (nodeId: string) => void;
|
|
96
|
-
};
|
|
97
|
-
type IfElseNodeData = {
|
|
98
|
-
config: IfElseNodeConfig;
|
|
99
|
-
label: string;
|
|
100
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
101
|
-
onDelete?: (nodeId: string) => void;
|
|
102
|
-
onEdit?: (nodeId: string) => void;
|
|
103
|
-
};
|
|
104
|
-
type CodeNodeData = {
|
|
105
|
-
config: CodeNodeConfig;
|
|
106
|
-
label: string;
|
|
107
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
108
|
-
onDelete?: (nodeId: string) => void;
|
|
109
|
-
onEdit?: (nodeId: string) => void;
|
|
110
|
-
};
|
|
111
|
-
type HttpRequestNodeData = {
|
|
112
|
-
config: HttpRequestNodeConfig;
|
|
113
|
-
label: string;
|
|
114
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
115
|
-
onDelete?: (nodeId: string) => void;
|
|
116
|
-
onEdit?: (nodeId: string) => void;
|
|
117
|
-
};
|
|
118
|
-
type TemplateTransformNodeData = {
|
|
119
|
-
config: TemplateTransformNodeConfig;
|
|
120
|
-
label: string;
|
|
121
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
122
|
-
onDelete?: (nodeId: string) => void;
|
|
123
|
-
onEdit?: (nodeId: string) => void;
|
|
124
|
-
};
|
|
125
|
-
type IterationNodeData = {
|
|
126
|
-
config: IterationNodeConfig;
|
|
127
|
-
label: string;
|
|
128
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
129
|
-
onDelete?: (nodeId: string) => void;
|
|
130
|
-
onEdit?: (nodeId: string) => void;
|
|
131
|
-
};
|
|
132
|
-
type KnowledgeBaseNodeData = {
|
|
133
|
-
config: KnowledgeBaseNodeConfig;
|
|
134
|
-
label: string;
|
|
135
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
136
|
-
onDelete?: (nodeId: string) => void;
|
|
137
|
-
onEdit?: (nodeId: string) => void;
|
|
138
|
-
};
|
|
139
|
-
type AnswerNodeData = {
|
|
140
|
-
config: AnswerNodeConfig;
|
|
141
|
-
label: string;
|
|
142
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
143
|
-
onDelete?: (nodeId: string) => void;
|
|
144
|
-
onEdit?: (nodeId: string) => void;
|
|
145
|
-
};
|
|
146
|
-
type QuestionClassifierNodeData = {
|
|
147
|
-
config: QuestionClassifierNodeConfig;
|
|
148
|
-
label: string;
|
|
149
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
150
|
-
onDelete?: (nodeId: string) => void;
|
|
151
|
-
onEdit?: (nodeId: string) => void;
|
|
152
|
-
};
|
|
153
|
-
type ParameterExtractorNodeData = {
|
|
154
|
-
config: ParameterExtractorNodeConfig;
|
|
155
|
-
label: string;
|
|
156
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
157
|
-
onDelete?: (nodeId: string) => void;
|
|
158
|
-
onEdit?: (nodeId: string) => void;
|
|
159
|
-
};
|
|
160
|
-
type VariableAssignerNodeData = {
|
|
161
|
-
config: VariableAssignerNodeConfig;
|
|
162
|
-
label: string;
|
|
163
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
164
|
-
onDelete?: (nodeId: string) => void;
|
|
165
|
-
onEdit?: (nodeId: string) => void;
|
|
166
|
-
};
|
|
167
|
-
type VariableAggregatorNodeData = {
|
|
168
|
-
config: VariableAggregatorNodeConfig;
|
|
169
|
-
label: string;
|
|
170
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
171
|
-
onDelete?: (nodeId: string) => void;
|
|
172
|
-
onEdit?: (nodeId: string) => void;
|
|
173
|
-
};
|
|
174
|
-
type DocumentExtractorNodeData = {
|
|
175
|
-
config: DocumentExtractorNodeConfig;
|
|
176
|
-
label: string;
|
|
177
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
178
|
-
onDelete?: (nodeId: string) => void;
|
|
179
|
-
onEdit?: (nodeId: string) => void;
|
|
180
|
-
};
|
|
181
|
-
type ListOperatorNodeData = {
|
|
182
|
-
config: ListOperatorNodeConfig;
|
|
183
|
-
label: string;
|
|
184
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
185
|
-
onDelete?: (nodeId: string) => void;
|
|
186
|
-
onEdit?: (nodeId: string) => void;
|
|
187
|
-
};
|
|
188
|
-
type IterationStartNodeData = {
|
|
189
|
-
config: IterationStartNodeConfig;
|
|
190
|
-
label: string;
|
|
191
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
192
|
-
onDelete?: (nodeId: string) => void;
|
|
193
|
-
onEdit?: (nodeId: string) => void;
|
|
194
|
-
};
|
|
195
|
-
type NoteNodeData = {
|
|
196
|
-
config: NoteNodeConfig;
|
|
197
|
-
label: string;
|
|
198
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
199
|
-
onDelete?: (nodeId: string) => void;
|
|
200
|
-
onEdit?: (nodeId: string) => void;
|
|
201
|
-
};
|
|
202
|
-
type GroupNodeData = {
|
|
203
|
-
config: GroupNodeConfig;
|
|
204
|
-
label: string;
|
|
205
|
-
displayMode?: WorkflowCardDisplayMode;
|
|
206
|
-
onEdit?: (nodeId: string) => void;
|
|
207
|
-
onToggleExpand?: (nodeId: string) => void;
|
|
208
|
-
onRemoveFromCanvas?: (nodeId: string) => void;
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
type AgentModalRenderProps = {
|
|
212
|
-
agent: AgentWithPrompts | null;
|
|
213
|
-
models: AgentModel[];
|
|
214
|
-
open: boolean;
|
|
215
|
-
isCreateMode: boolean;
|
|
216
|
-
onClose: () => void;
|
|
217
|
-
onSaved: () => void;
|
|
218
|
-
};
|
|
219
|
-
type LogicNodeModalRenderProps = {
|
|
220
|
-
nodeId: string | null;
|
|
221
|
-
nodeLabel: string;
|
|
222
|
-
config: LogicNodeConfig | null;
|
|
223
|
-
open: boolean;
|
|
224
|
-
onClose: () => void;
|
|
225
|
-
onSave: (nodeId: string, updatedConfig: LogicNodeConfig) => void;
|
|
226
|
-
entities: WorkflowEntityDefinition[];
|
|
227
|
-
};
|
|
228
|
-
type WorkflowCanvasProps = {
|
|
229
|
-
agents: AgentWithPrompts[];
|
|
230
|
-
models: AgentModel[];
|
|
231
|
-
tools?: WorkflowTool[];
|
|
232
|
-
agentTools?: AgentTool[];
|
|
233
|
-
rules?: AgentRule[];
|
|
234
|
-
entities?: WorkflowEntityDefinition[];
|
|
235
|
-
datasources?: Array<{
|
|
236
|
-
id: string;
|
|
237
|
-
name: string;
|
|
238
|
-
dialect: string;
|
|
239
|
-
}>;
|
|
240
|
-
onLoadTables?: (datasourceId: string) => Promise<string[]>;
|
|
241
|
-
onLoadSchema?: (datasourceId: string, table: string) => Promise<Array<{
|
|
242
|
-
name: string;
|
|
243
|
-
type: string;
|
|
244
|
-
nullable?: boolean;
|
|
245
|
-
}>>;
|
|
246
|
-
initialGraph?: WorkflowGraph | null;
|
|
247
|
-
onGraphChange?: (graph: WorkflowGraph) => void;
|
|
248
|
-
onEditTool?: (tool: WorkflowTool) => void;
|
|
249
|
-
onToggleTool?: (tool: WorkflowTool) => void;
|
|
250
|
-
onEditRule?: (rule: AgentRule) => void;
|
|
251
|
-
onToggleRule?: (rule: AgentRule) => void;
|
|
252
|
-
onCancelCreateAgent?: () => void;
|
|
253
|
-
onAgentSaved?: () => void;
|
|
254
|
-
isCreatingAgent?: boolean;
|
|
255
|
-
/** Custom node type components — merged with built-in edge types */
|
|
256
|
-
nodeTypes?: NodeTypes;
|
|
257
|
-
/** Optional: render the AgentModal externally (frontend provides the component) */
|
|
258
|
-
renderAgentModal?: (props: AgentModalRenderProps) => React.ReactNode;
|
|
259
|
-
/** Optional: render a custom LogicNodeModal; defaults to internal modal */
|
|
260
|
-
renderLogicNodeModal?: (props: LogicNodeModalRenderProps) => React.ReactNode;
|
|
261
|
-
};
|
|
262
|
-
declare function WorkflowCanvas(props: WorkflowCanvasProps): react_jsx_runtime.JSX.Element;
|
|
263
|
-
|
|
264
|
-
type BuilderCanvasProps = ComponentProps<typeof WorkflowCanvas>;
|
|
265
|
-
type WorkspaceProps = {
|
|
266
|
-
locale?: string;
|
|
267
|
-
messages?: Record<string, unknown>;
|
|
268
|
-
className?: string;
|
|
269
|
-
workflowId?: string;
|
|
270
|
-
} & Partial<BuilderCanvasProps>;
|
|
271
|
-
declare function Workspace({ locale, messages, className, workflowId, ...canvasProps }: WorkspaceProps): react_jsx_runtime.JSX.Element;
|
|
272
|
-
|
|
273
|
-
export { type AgentWithPrompts as A, type CodeNodeData as C, type DocumentExtractorNodeData as D, type EntityNodeData as E, type GroupNodeData as G, type HttpRequestNodeData as H, type IfElseNodeData as I, type KnowledgeBaseNodeData as K, type ListOperatorNodeData as L, type ModelProviderNodeData as M, type NoteNodeData as N, type ParameterExtractorNodeData as P, type QuestionClassifierNodeData as Q, type RuleNodeData as R, type StartNodeData as S, type ToolCanvasData as T, type VariableAssignerNodeData as V, type WorkflowEntityDefinition as W, type AgentNodeData as a, type EndNodeData as b, type TemplateTransformNodeData as c, type IterationNodeData as d, type AnswerNodeData as e, type VariableAggregatorNodeData as f, type IterationStartNodeData as g, type WorkspaceProps as h, type AgentNodeTool as i, Workspace as j };
|