@datatechsolutions/ui 2.11.80 → 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 +24 -1
- package/dist/astrlabe/contracts.d.ts +24 -1
- package/dist/astrlabe/index.d.mts +25 -84
- package/dist/astrlabe/index.d.ts +25 -84
- package/dist/astrlabe/index.js +175 -4570
- package/dist/astrlabe/index.js.map +1 -1
- package/dist/astrlabe/index.mjs +3 -4535
- 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 +28 -1
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { UsersPageViewProps, DataSource } from '@datatechsolutions/shared-domain/common';
|
|
3
|
+
import { AgentModel, AgentTool, AgentRule } from '../../astrlabe/contracts.js';
|
|
4
|
+
import { A as AgentWithPrompts } from '../../index-D5ai0cGZ.js';
|
|
5
|
+
import { AgentPrompt } from '@datatechsolutions/shared-domain/ports/workflow';
|
|
6
|
+
import { R as RuleFormValue } from '../../rule-form-F5jBOeqk.js';
|
|
7
|
+
|
|
8
|
+
declare function UsersPageView({ labels, users, onCreateUser, onUpdateRole }: UsersPageViewProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
type AgentsModelsLabels = {
|
|
11
|
+
title: string;
|
|
12
|
+
subtitle: string;
|
|
13
|
+
provider: string;
|
|
14
|
+
enabled: string;
|
|
15
|
+
disabled: string;
|
|
16
|
+
empty: string;
|
|
17
|
+
};
|
|
18
|
+
type Props$4 = {
|
|
19
|
+
labels: AgentsModelsLabels;
|
|
20
|
+
models: AgentModel[];
|
|
21
|
+
loading: boolean;
|
|
22
|
+
};
|
|
23
|
+
declare function AgentsModelsPageView({ labels, models, loading }: Props$4): react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
25
|
+
type AgentConfigFormInput = {
|
|
26
|
+
agentId?: string;
|
|
27
|
+
name: string;
|
|
28
|
+
modelId: string;
|
|
29
|
+
systemPrompt: string;
|
|
30
|
+
maxTokens: number;
|
|
31
|
+
temperature: number;
|
|
32
|
+
outputSchema?: string;
|
|
33
|
+
};
|
|
34
|
+
type AgentsConfigLabels = {
|
|
35
|
+
title: string;
|
|
36
|
+
subtitle: string;
|
|
37
|
+
addAgent: string;
|
|
38
|
+
createTitle: string;
|
|
39
|
+
editTitle: string;
|
|
40
|
+
name: string;
|
|
41
|
+
model: string;
|
|
42
|
+
systemPrompt: string;
|
|
43
|
+
maxTokens: number | string;
|
|
44
|
+
temperature: string;
|
|
45
|
+
outputSchema: string;
|
|
46
|
+
outputSchemaPlaceholder: string;
|
|
47
|
+
save: string;
|
|
48
|
+
delete: string;
|
|
49
|
+
edit: string;
|
|
50
|
+
deleteConfirm: string;
|
|
51
|
+
activeVersion: string;
|
|
52
|
+
empty: string;
|
|
53
|
+
};
|
|
54
|
+
type Props$3 = {
|
|
55
|
+
labels: AgentsConfigLabels;
|
|
56
|
+
agents: AgentWithPrompts[];
|
|
57
|
+
models: AgentModel[];
|
|
58
|
+
loading: boolean;
|
|
59
|
+
onCreate: (input: AgentConfigFormInput) => void;
|
|
60
|
+
onUpdate: (agentId: string, input: AgentConfigFormInput) => void;
|
|
61
|
+
onDelete: (agent: AgentWithPrompts) => void;
|
|
62
|
+
};
|
|
63
|
+
declare function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpdate, onDelete }: Props$3): react_jsx_runtime.JSX.Element;
|
|
64
|
+
|
|
65
|
+
type PromptFormInput = {
|
|
66
|
+
agentId: string;
|
|
67
|
+
locale: string;
|
|
68
|
+
prompt: string;
|
|
69
|
+
systemPrompt?: string;
|
|
70
|
+
userTemplate?: string;
|
|
71
|
+
isActive: boolean;
|
|
72
|
+
reason?: string;
|
|
73
|
+
};
|
|
74
|
+
type AgentsPromptsLabels = {
|
|
75
|
+
title: string;
|
|
76
|
+
subtitle: string;
|
|
77
|
+
addPrompt: string;
|
|
78
|
+
createTitle: string;
|
|
79
|
+
editTitle: string;
|
|
80
|
+
agent: string;
|
|
81
|
+
locale: string;
|
|
82
|
+
version: string;
|
|
83
|
+
isActive: string;
|
|
84
|
+
prompt: string;
|
|
85
|
+
systemPrompt: string;
|
|
86
|
+
userTemplate: string;
|
|
87
|
+
reason: string;
|
|
88
|
+
save: string;
|
|
89
|
+
delete: string;
|
|
90
|
+
activate: string;
|
|
91
|
+
deleteConfirm: string;
|
|
92
|
+
empty: string;
|
|
93
|
+
};
|
|
94
|
+
type Props$2 = {
|
|
95
|
+
labels: AgentsPromptsLabels;
|
|
96
|
+
agents: AgentWithPrompts[];
|
|
97
|
+
prompts: AgentPrompt[];
|
|
98
|
+
loading: boolean;
|
|
99
|
+
onCreate: (input: PromptFormInput) => void;
|
|
100
|
+
onActivate: (prompt: AgentPrompt) => void;
|
|
101
|
+
onDelete: (prompt: AgentPrompt) => void;
|
|
102
|
+
};
|
|
103
|
+
declare function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onActivate, onDelete }: Props$2): react_jsx_runtime.JSX.Element;
|
|
104
|
+
|
|
105
|
+
declare const TOOL_TYPES: readonly ["http", "function", "database_query", "code_execution", "api_call"];
|
|
106
|
+
type ToolType = (typeof TOOL_TYPES)[number];
|
|
107
|
+
type ToolParameter = {
|
|
108
|
+
name: string;
|
|
109
|
+
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
110
|
+
description: string;
|
|
111
|
+
required: boolean;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Canonical form payload the page emits. The page wrapper turns this
|
|
115
|
+
* into the backend POST/PATCH bodies — parameters go through
|
|
116
|
+
* `parametersToJsonSchema` to produce `inputSchema`, and `handlerConfig`
|
|
117
|
+
* stays as-is.
|
|
118
|
+
*/
|
|
119
|
+
type ToolDefinitionFormInput = {
|
|
120
|
+
agentToolId?: string;
|
|
121
|
+
name: string;
|
|
122
|
+
description?: string;
|
|
123
|
+
toolType: ToolType;
|
|
124
|
+
parameters: ToolParameter[];
|
|
125
|
+
handlerConfig: Record<string, unknown>;
|
|
126
|
+
enabled: boolean;
|
|
127
|
+
icon?: string;
|
|
128
|
+
};
|
|
129
|
+
type AgentsToolDefinitionsLabels = {
|
|
130
|
+
title: string;
|
|
131
|
+
subtitle: string;
|
|
132
|
+
addTool: string;
|
|
133
|
+
createTitle: string;
|
|
134
|
+
editTitle: string;
|
|
135
|
+
name: string;
|
|
136
|
+
description: string;
|
|
137
|
+
category: string;
|
|
138
|
+
enabled: string;
|
|
139
|
+
disabled: string;
|
|
140
|
+
icon: string;
|
|
141
|
+
save: string;
|
|
142
|
+
delete: string;
|
|
143
|
+
edit: string;
|
|
144
|
+
deleteConfirm: string;
|
|
145
|
+
empty: string;
|
|
146
|
+
};
|
|
147
|
+
type Props$1 = {
|
|
148
|
+
labels: AgentsToolDefinitionsLabels;
|
|
149
|
+
tools: AgentTool[];
|
|
150
|
+
loading: boolean;
|
|
151
|
+
onCreate: (input: ToolDefinitionFormInput) => void;
|
|
152
|
+
onUpdate: (toolId: string, input: ToolDefinitionFormInput) => void;
|
|
153
|
+
onDelete: (tool: AgentTool) => void;
|
|
154
|
+
};
|
|
155
|
+
declare function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpdate, onDelete }: Props$1): react_jsx_runtime.JSX.Element;
|
|
156
|
+
/**
|
|
157
|
+
* Build a JSON Schema object from the parameter list. Mirrors the
|
|
158
|
+
* format the backend validator (`validate_input_schema`) expects —
|
|
159
|
+
* `{ type: 'object', properties, required }`.
|
|
160
|
+
*/
|
|
161
|
+
declare function parametersToJsonSchema(params: ToolParameter[]): Record<string, unknown>;
|
|
162
|
+
/**
|
|
163
|
+
* Inverse of `parametersToJsonSchema` — hydrate the editor UI from an
|
|
164
|
+
* existing schema so the Edit flow shows what was stored.
|
|
165
|
+
*/
|
|
166
|
+
declare function jsonSchemaToParameters(schema: unknown): ToolParameter[];
|
|
167
|
+
|
|
168
|
+
type RulesLabels = {
|
|
169
|
+
title: string;
|
|
170
|
+
subtitle: string;
|
|
171
|
+
addRule: string;
|
|
172
|
+
createTitle: string;
|
|
173
|
+
editTitle: string;
|
|
174
|
+
save: string;
|
|
175
|
+
delete: string;
|
|
176
|
+
edit: string;
|
|
177
|
+
deleteConfirm: string;
|
|
178
|
+
empty: string;
|
|
179
|
+
enabled: string;
|
|
180
|
+
disabled: string;
|
|
181
|
+
order: string;
|
|
182
|
+
};
|
|
183
|
+
type Props = {
|
|
184
|
+
labels: RulesLabels;
|
|
185
|
+
rules: AgentRule[];
|
|
186
|
+
loading: boolean;
|
|
187
|
+
onCreate: (input: RuleFormValue) => void;
|
|
188
|
+
onUpdate: (ruleId: string, input: RuleFormValue) => void;
|
|
189
|
+
onDelete: (rule: AgentRule) => void;
|
|
190
|
+
};
|
|
191
|
+
declare function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete }: Props): react_jsx_runtime.JSX.Element;
|
|
192
|
+
|
|
193
|
+
type DialectCategory = {
|
|
194
|
+
id: string;
|
|
195
|
+
labelKey: string;
|
|
196
|
+
icon: React.ComponentType<{
|
|
197
|
+
className?: string;
|
|
198
|
+
}>;
|
|
199
|
+
gradient: string;
|
|
200
|
+
dialects: DialectOption[];
|
|
201
|
+
};
|
|
202
|
+
type DialectOption = {
|
|
203
|
+
value: string;
|
|
204
|
+
label: string;
|
|
205
|
+
defaultPort?: number;
|
|
206
|
+
/** 'standard' = host/port/db, 'connection-string' = single URL, 'cloud' = project/dataset/key */
|
|
207
|
+
formType: 'standard' | 'connection-string' | 'cloud-bigquery' | 'cloud-snowflake' | 'cloud-key' | 'vector-key';
|
|
208
|
+
};
|
|
209
|
+
declare const DIALECT_CATEGORIES: DialectCategory[];
|
|
210
|
+
declare function findDialect(value: string): DialectOption | undefined;
|
|
211
|
+
declare function findCategory(dialectValue: string): DialectCategory | undefined;
|
|
212
|
+
type DatasourceFormData = {
|
|
213
|
+
name: string;
|
|
214
|
+
dialect: string;
|
|
215
|
+
host?: string;
|
|
216
|
+
port?: number;
|
|
217
|
+
database?: string;
|
|
218
|
+
username?: string;
|
|
219
|
+
password?: string;
|
|
220
|
+
schema?: string;
|
|
221
|
+
ssl?: boolean;
|
|
222
|
+
readOnly?: boolean;
|
|
223
|
+
connectionString?: string;
|
|
224
|
+
projectId?: string;
|
|
225
|
+
dataset?: string;
|
|
226
|
+
keyFile?: string;
|
|
227
|
+
account?: string;
|
|
228
|
+
warehouse?: string;
|
|
229
|
+
region?: string;
|
|
230
|
+
bucket?: string;
|
|
231
|
+
token?: string;
|
|
232
|
+
apiKey?: string;
|
|
233
|
+
environment?: string;
|
|
234
|
+
index?: string;
|
|
235
|
+
url?: string;
|
|
236
|
+
/** Whitelist of tables the engine is allowed to query. Empty/undef =
|
|
237
|
+
* allow every table the credential can see. */
|
|
238
|
+
allowedTables?: string[];
|
|
239
|
+
/** Columns the engine MUST NOT surface to workflows. Applied at the
|
|
240
|
+
* driver layer — trying to SELECT a blocked column still fails. */
|
|
241
|
+
blockedColumns?: string[];
|
|
242
|
+
/** Max concurrent connections in the org's cached pool (default 5). */
|
|
243
|
+
maxPoolSize?: number;
|
|
244
|
+
/** Query/connect timeout in ms (default 5000). */
|
|
245
|
+
timeoutMs?: number;
|
|
246
|
+
};
|
|
247
|
+
type Labels$1 = Record<string, string>;
|
|
248
|
+
type DatasourceFormModalProps = {
|
|
249
|
+
open: boolean;
|
|
250
|
+
onClose: () => void;
|
|
251
|
+
labels: Labels$1;
|
|
252
|
+
onSave: (data: DatasourceFormData) => void;
|
|
253
|
+
};
|
|
254
|
+
declare function DatasourceFormModal({ open, onClose, labels, onSave }: DatasourceFormModalProps): react_jsx_runtime.JSX.Element;
|
|
255
|
+
type DatasourceModalProps = {
|
|
256
|
+
open: boolean;
|
|
257
|
+
onClose: () => void;
|
|
258
|
+
labels: Labels$1;
|
|
259
|
+
onSave: (data: DatasourceFormData) => void;
|
|
260
|
+
};
|
|
261
|
+
declare function DatasourceModal({ open, onClose, labels, onSave }: DatasourceModalProps): react_jsx_runtime.JSX.Element;
|
|
262
|
+
|
|
263
|
+
type Labels = Record<string, string>;
|
|
264
|
+
type DatasourcesPageViewProps = {
|
|
265
|
+
labels: Labels;
|
|
266
|
+
datasources?: DataSource[];
|
|
267
|
+
useSampleData?: boolean;
|
|
268
|
+
onCreate?: (data: DatasourceFormData) => void;
|
|
269
|
+
};
|
|
270
|
+
declare function DatasourcesPageView({ labels, datasources: externalDatasources, useSampleData, onCreate, }: DatasourcesPageViewProps): react_jsx_runtime.JSX.Element;
|
|
271
|
+
|
|
272
|
+
export { type AgentConfigFormInput, type AgentsConfigLabels, AgentsConfigPageView, type AgentsModelsLabels, AgentsModelsPageView, type AgentsPromptsLabels, AgentsPromptsPageView, type AgentsToolDefinitionsLabels, AgentsToolDefinitionsPageView, DIALECT_CATEGORIES, type DatasourceFormData, DatasourceFormModal, type DatasourceFormModalProps, DatasourceModal, type DatasourceModalProps, DatasourcesPageView, type DatasourcesPageViewProps, type PromptFormInput, RuleFormValue, type RulesLabels, RulesPageView, TOOL_TYPES, type ToolDefinitionFormInput, type ToolParameter, type ToolType, UsersPageView, findCategory, findDialect, jsonSchemaToParameters, parametersToJsonSchema };
|