@datatechsolutions/ui 3.10.0 → 3.11.1
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 +18 -2
- package/dist/astrlabe/contracts.d.ts +18 -2
- package/dist/astrlabe/index.d.mts +2 -2
- package/dist/astrlabe/index.d.ts +2 -2
- package/dist/astrlabe/index.js +108 -108
- package/dist/astrlabe/index.mjs +4 -4
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/{chunk-JB3U6ORY.mjs → chunk-3U3CIARA.mjs} +3 -3
- package/dist/{chunk-JB3U6ORY.mjs.map → chunk-3U3CIARA.mjs.map} +1 -1
- package/dist/{chunk-5U43K6G3.mjs → chunk-7DZ2C5IN.mjs} +24 -22
- package/dist/chunk-7DZ2C5IN.mjs.map +1 -0
- package/dist/{chunk-EC34PGUO.js → chunk-APONR6ZM.js} +136 -136
- package/dist/chunk-APONR6ZM.js.map +1 -0
- package/dist/{chunk-AMESLEIO.js → chunk-BTMHQCDB.js} +63 -63
- package/dist/{chunk-AMESLEIO.js.map → chunk-BTMHQCDB.js.map} +1 -1
- package/dist/{chunk-L3R425GB.js → chunk-CLXEVSGB.js} +13 -13
- package/dist/{chunk-L3R425GB.js.map → chunk-CLXEVSGB.js.map} +1 -1
- package/dist/{chunk-TSNKICPP.js → chunk-CVCMJJ56.js} +10 -10
- package/dist/{chunk-TSNKICPP.js.map → chunk-CVCMJJ56.js.map} +1 -1
- package/dist/{chunk-MSMEECO6.js → chunk-DPXCJVJT.js} +9 -9
- package/dist/{chunk-MSMEECO6.js.map → chunk-DPXCJVJT.js.map} +1 -1
- package/dist/{chunk-A256OE5E.mjs → chunk-E3NMVWRL.mjs} +5 -5
- package/dist/chunk-E3NMVWRL.mjs.map +1 -0
- package/dist/{chunk-HEXTU6W3.mjs → chunk-I77TTBYO.mjs} +6 -6
- package/dist/{chunk-HEXTU6W3.mjs.map → chunk-I77TTBYO.mjs.map} +1 -1
- package/dist/{chunk-RHRJXK5R.mjs → chunk-IGOMJHC6.mjs} +11 -3
- package/dist/chunk-IGOMJHC6.mjs.map +1 -0
- package/dist/{chunk-DA3H7ERQ.mjs → chunk-IHOCYBHM.mjs} +3 -3
- package/dist/{chunk-DA3H7ERQ.mjs.map → chunk-IHOCYBHM.mjs.map} +1 -1
- package/dist/{chunk-C4D3EI5L.mjs → chunk-K3LIDGMA.mjs} +3 -3
- package/dist/{chunk-C4D3EI5L.mjs.map → chunk-K3LIDGMA.mjs.map} +1 -1
- package/dist/{chunk-YSYEV2Z6.js → chunk-KDVZIDVF.js} +46 -44
- package/dist/chunk-KDVZIDVF.js.map +1 -0
- package/dist/{chunk-NM37GLCL.mjs → chunk-LHAOIPYP.mjs} +3 -3
- package/dist/{chunk-NM37GLCL.mjs.map → chunk-LHAOIPYP.mjs.map} +1 -1
- package/dist/{chunk-MAOZWOA6.js → chunk-LM6BJOKX.js} +55 -55
- package/dist/{chunk-MAOZWOA6.js.map → chunk-LM6BJOKX.js.map} +1 -1
- package/dist/{chunk-2A45ZEK4.js → chunk-MN777KLN.js} +45 -45
- package/dist/{chunk-2A45ZEK4.js.map → chunk-MN777KLN.js.map} +1 -1
- package/dist/{chunk-FIJMOTP4.js → chunk-NW32BM3F.js} +34 -34
- package/dist/{chunk-FIJMOTP4.js.map → chunk-NW32BM3F.js.map} +1 -1
- package/dist/{chunk-W6MBDTKF.mjs → chunk-O4DIKNNH.mjs} +3 -3
- package/dist/{chunk-W6MBDTKF.mjs.map → chunk-O4DIKNNH.mjs.map} +1 -1
- package/dist/{chunk-5AKTDJFR.js → chunk-OD2AZBEX.js} +25 -25
- package/dist/{chunk-5AKTDJFR.js.map → chunk-OD2AZBEX.js.map} +1 -1
- package/dist/{chunk-5KI7FB3E.mjs → chunk-OKCEK7GH.mjs} +225 -234
- package/dist/chunk-OKCEK7GH.mjs.map +1 -0
- package/dist/{chunk-KHUWFL6W.js → chunk-OO4YMN4P.js} +4 -4
- package/dist/{chunk-KHUWFL6W.js.map → chunk-OO4YMN4P.js.map} +1 -1
- package/dist/{chunk-O4HH77A4.js → chunk-OSXBMLZP.js} +68 -68
- package/dist/{chunk-O4HH77A4.js.map → chunk-OSXBMLZP.js.map} +1 -1
- package/dist/{chunk-6ZYATZS3.mjs → chunk-Q6MMJYEG.mjs} +3 -3
- package/dist/{chunk-6ZYATZS3.mjs.map → chunk-Q6MMJYEG.mjs.map} +1 -1
- package/dist/{chunk-NSZN54HW.js → chunk-QASAHGLE.js} +4 -4
- package/dist/{chunk-NSZN54HW.js.map → chunk-QASAHGLE.js.map} +1 -1
- package/dist/{chunk-BU4WMSK3.mjs → chunk-QDW3IJIL.mjs} +3 -3
- package/dist/{chunk-BU4WMSK3.mjs.map → chunk-QDW3IJIL.mjs.map} +1 -1
- package/dist/{chunk-FENA4YGN.mjs → chunk-QKWNQOJB.mjs} +3 -3
- package/dist/{chunk-FENA4YGN.mjs.map → chunk-QKWNQOJB.mjs.map} +1 -1
- package/dist/{chunk-H7X3SXMB.mjs → chunk-S46LUR7O.mjs} +7 -7
- package/dist/{chunk-H7X3SXMB.mjs.map → chunk-S46LUR7O.mjs.map} +1 -1
- package/dist/{chunk-FD376DZ6.mjs → chunk-S4LHC5SF.mjs} +3 -3
- package/dist/{chunk-FD376DZ6.mjs.map → chunk-S4LHC5SF.mjs.map} +1 -1
- package/dist/{chunk-B76RTA7D.js → chunk-SSKKTSMA.js} +35 -35
- package/dist/{chunk-B76RTA7D.js.map → chunk-SSKKTSMA.js.map} +1 -1
- package/dist/{chunk-LVR4SR65.js → chunk-TIJXCRM4.js} +223 -234
- package/dist/chunk-TIJXCRM4.js.map +1 -0
- package/dist/{chunk-6UX2SRA2.mjs → chunk-VHU5FWFB.mjs} +3 -3
- package/dist/{chunk-6UX2SRA2.mjs.map → chunk-VHU5FWFB.mjs.map} +1 -1
- package/dist/{chunk-SY4MUT5V.js → chunk-ZUU7G3PC.js} +11 -2
- package/dist/chunk-ZUU7G3PC.js.map +1 -0
- package/dist/index.d.mts +26 -40
- package/dist/index.d.ts +26 -40
- package/dist/index.js +663 -671
- package/dist/index.mjs +2 -2
- package/dist/platform/admin/index.js +10 -10
- package/dist/platform/admin/index.mjs +4 -4
- package/dist/platform/agents-workspace.js +7 -7
- package/dist/platform/agents-workspace.mjs +6 -6
- package/dist/platform/app-shell.js +4 -4
- package/dist/platform/app-shell.mjs +3 -3
- package/dist/platform/auth/index.js +22 -22
- package/dist/platform/auth/index.mjs +4 -4
- package/dist/platform/billing/index.js +4 -4
- package/dist/platform/billing/index.mjs +3 -3
- package/dist/platform/impersonation/index.js +4 -4
- package/dist/platform/impersonation/index.mjs +3 -3
- package/dist/platform/index.js +82 -82
- package/dist/platform/index.mjs +18 -18
- package/dist/platform/pages/index.d.mts +3 -3
- package/dist/platform/pages/index.d.ts +3 -3
- package/dist/platform/pages/index.js +734 -701
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +452 -419
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/settings/index.js +7 -7
- package/dist/platform/settings/index.mjs +6 -6
- package/dist/platform/workflow-api-client.d.mts +1 -1
- package/dist/platform/workflow-api-client.d.ts +1 -1
- package/dist/platform/workflow-api-client.js +65 -61
- package/dist/platform/workflow-api-client.mjs +1 -1
- package/dist/platform/workflow-canvas-shell.js +5 -5
- package/dist/platform/workflow-canvas-shell.mjs +4 -4
- package/dist/{rule-form-BYJzyork.d.mts → rule-form-BkKCY8Tc.d.mts} +8 -2
- package/dist/{rule-form-BYJzyork.d.ts → rule-form-CBD8wlrw.d.ts} +8 -2
- package/dist/{workflow-api-client-CpFl3WcG.d.mts → workflow-api-client-D9_0Spdz.d.mts} +16 -1
- package/dist/{workflow-api-client-uLICOanv.d.ts → workflow-api-client-E1QFRgeP.d.ts} +16 -1
- package/package.json +1 -1
- package/dist/chunk-5KI7FB3E.mjs.map +0 -1
- package/dist/chunk-5U43K6G3.mjs.map +0 -1
- package/dist/chunk-A256OE5E.mjs.map +0 -1
- package/dist/chunk-EC34PGUO.js.map +0 -1
- package/dist/chunk-LVR4SR65.js.map +0 -1
- package/dist/chunk-RHRJXK5R.mjs.map +0 -1
- package/dist/chunk-SY4MUT5V.js.map +0 -1
- package/dist/chunk-YSYEV2Z6.js.map +0 -1
package/dist/platform/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
4
|
+
var chunkQASAHGLE_js = require('../chunk-QASAHGLE.js');
|
|
5
|
+
var chunkSSKKTSMA_js = require('../chunk-SSKKTSMA.js');
|
|
6
|
+
var chunkLM6BJOKX_js = require('../chunk-LM6BJOKX.js');
|
|
7
7
|
var chunkP4RVGMZL_js = require('../chunk-P4RVGMZL.js');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
8
|
+
var chunkOO4YMN4P_js = require('../chunk-OO4YMN4P.js');
|
|
9
|
+
var chunkKDVZIDVF_js = require('../chunk-KDVZIDVF.js');
|
|
10
|
+
var chunkCLXEVSGB_js = require('../chunk-CLXEVSGB.js');
|
|
11
|
+
var chunkOD2AZBEX_js = require('../chunk-OD2AZBEX.js');
|
|
12
|
+
var chunkMN777KLN_js = require('../chunk-MN777KLN.js');
|
|
13
13
|
var chunkQGLGQXJE_js = require('../chunk-QGLGQXJE.js');
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
require('../chunk-
|
|
17
|
-
var
|
|
14
|
+
var chunkCVCMJJ56_js = require('../chunk-CVCMJJ56.js');
|
|
15
|
+
var chunkBTMHQCDB_js = require('../chunk-BTMHQCDB.js');
|
|
16
|
+
require('../chunk-NW32BM3F.js');
|
|
17
|
+
var chunkDPXCJVJT_js = require('../chunk-DPXCJVJT.js');
|
|
18
18
|
var chunkVY52Y5GC_js = require('../chunk-VY52Y5GC.js');
|
|
19
19
|
var chunk6PBTB5ZX_js = require('../chunk-6PBTB5ZX.js');
|
|
20
|
-
require('../chunk-
|
|
20
|
+
require('../chunk-APONR6ZM.js');
|
|
21
21
|
require('../chunk-55H6WZQP.js');
|
|
22
22
|
require('../chunk-DJDZIRM6.js');
|
|
23
|
-
require('../chunk-
|
|
24
|
-
var
|
|
23
|
+
require('../chunk-OSXBMLZP.js');
|
|
24
|
+
var chunkTIJXCRM4_js = require('../chunk-TIJXCRM4.js');
|
|
25
25
|
var chunkYXN2K77G_js = require('../chunk-YXN2K77G.js');
|
|
26
|
-
var
|
|
26
|
+
var chunkZUU7G3PC_js = require('../chunk-ZUU7G3PC.js');
|
|
27
27
|
require('../chunk-2OZZH2IO.js');
|
|
28
28
|
require('../chunk-EZQ2D47U.js');
|
|
29
29
|
var chunkBHOT22QL_js = require('../chunk-BHOT22QL.js');
|
|
@@ -47,7 +47,7 @@ function SessionSwitcher({
|
|
|
47
47
|
const tCommon = chunkYXN2K77G_js.useTranslations("common");
|
|
48
48
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "session-switcher", children: [
|
|
49
49
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
50
|
-
|
|
50
|
+
chunkTIJXCRM4_js.Select,
|
|
51
51
|
{
|
|
52
52
|
value: organizationId,
|
|
53
53
|
"aria-label": tSession("organization"),
|
|
@@ -59,7 +59,7 @@ function SessionSwitcher({
|
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
61
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62
|
-
|
|
62
|
+
chunkTIJXCRM4_js.Select,
|
|
63
63
|
{
|
|
64
64
|
value: userEmail,
|
|
65
65
|
"aria-label": tSession("user"),
|
|
@@ -81,16 +81,16 @@ function PlatformDockContainer({
|
|
|
81
81
|
}) {
|
|
82
82
|
const pathname = chunkS7KHTUHA_js.usePathname();
|
|
83
83
|
const router = chunkS7KHTUHA_js.useRouter();
|
|
84
|
-
const { logout } =
|
|
84
|
+
const { logout } = chunkTIJXCRM4_js.useAuth();
|
|
85
85
|
const tCommon = chunkYXN2K77G_js.useTranslations("common");
|
|
86
86
|
const {
|
|
87
87
|
dockPosition,
|
|
88
88
|
dockAutoHide,
|
|
89
89
|
dockEnabled
|
|
90
|
-
} =
|
|
90
|
+
} = chunkTIJXCRM4_js.usePlatformPreferences();
|
|
91
91
|
const [profileOpen, setProfileOpen] = react.useState(false);
|
|
92
92
|
const filteredItems = react.useMemo(
|
|
93
|
-
() =>
|
|
93
|
+
() => chunkTIJXCRM4_js.filterByPermission(navigationItems, actor?.permissions ?? []),
|
|
94
94
|
[navigationItems, actor]
|
|
95
95
|
);
|
|
96
96
|
const handleNavigate = react.useCallback((href) => router.push(href), [router]);
|
|
@@ -100,7 +100,7 @@ function PlatformDockContainer({
|
|
|
100
100
|
if (pathname === dashboardPath) return null;
|
|
101
101
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
102
102
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
103
|
-
|
|
103
|
+
chunkTIJXCRM4_js.AppNavigation,
|
|
104
104
|
{
|
|
105
105
|
items: filteredItems,
|
|
106
106
|
pathname,
|
|
@@ -119,7 +119,7 @@ function PlatformDockContainer({
|
|
|
119
119
|
}
|
|
120
120
|
),
|
|
121
121
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
122
|
-
|
|
122
|
+
chunkTIJXCRM4_js.GlassModal,
|
|
123
123
|
{
|
|
124
124
|
open: profileOpen,
|
|
125
125
|
onClose: () => setProfileOpen(false),
|
|
@@ -131,7 +131,7 @@ function PlatformDockContainer({
|
|
|
131
131
|
}
|
|
132
132
|
function useLocaleSwitcher() {
|
|
133
133
|
const locale = chunkYXN2K77G_js.useLocale();
|
|
134
|
-
const { client } =
|
|
134
|
+
const { client } = chunkTIJXCRM4_js.useAuth();
|
|
135
135
|
const setLocale = react.useCallback(
|
|
136
136
|
(newLocale) => {
|
|
137
137
|
const resolved = i18n.applyClientLocale(newLocale);
|
|
@@ -152,12 +152,12 @@ var LOCALE_OPTIONS = i18n.SUPPORTED_LOCALES.map((code) => ({
|
|
|
152
152
|
}));
|
|
153
153
|
function PreferencesControls() {
|
|
154
154
|
const { locale, setLocale } = useLocaleSwitcher();
|
|
155
|
-
const { theme, setTheme } =
|
|
155
|
+
const { theme, setTheme } = chunkTIJXCRM4_js.usePlatformPreferences();
|
|
156
156
|
const toggleTheme = () => setTheme(theme === "dark" ? "light" : "dark");
|
|
157
157
|
const t = chunkYXN2K77G_js.useTranslations("platform.preferences");
|
|
158
158
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "preferences-controls", children: [
|
|
159
159
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
160
|
-
|
|
160
|
+
chunkTIJXCRM4_js.Select,
|
|
161
161
|
{
|
|
162
162
|
value: locale,
|
|
163
163
|
options: LOCALE_OPTIONS,
|
|
@@ -211,8 +211,8 @@ function mapRoleToOrgRole(role) {
|
|
|
211
211
|
}
|
|
212
212
|
function UsersSettingsSection({ normalizeRole }) {
|
|
213
213
|
const t = chunkYXN2K77G_js.useTranslations("platform.users");
|
|
214
|
-
const { currentOrganizationId } =
|
|
215
|
-
const { error: notifyError, success: notifySuccess } =
|
|
214
|
+
const { currentOrganizationId } = chunkDPXCJVJT_js.usePlatformState();
|
|
215
|
+
const { error: notifyError, success: notifySuccess } = chunkTIJXCRM4_js.useNotifications();
|
|
216
216
|
const [users, setUsers] = react.useState([]);
|
|
217
217
|
const [loading, setLoading] = react.useState(true);
|
|
218
218
|
const reload = async () => {
|
|
@@ -229,7 +229,7 @@ function UsersSettingsSection({ normalizeRole }) {
|
|
|
229
229
|
void reload();
|
|
230
230
|
}, [currentOrganizationId]);
|
|
231
231
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
232
|
-
|
|
232
|
+
chunkKDVZIDVF_js.UsersPageView,
|
|
233
233
|
{
|
|
234
234
|
labels: {
|
|
235
235
|
title: t("title"),
|
|
@@ -265,14 +265,14 @@ function UsersSettingsSection({ normalizeRole }) {
|
|
|
265
265
|
}
|
|
266
266
|
function RolesSettingsSection({ roleDefinitions, roleOptions, normalizeRole }) {
|
|
267
267
|
const t = chunkYXN2K77G_js.useTranslations("platform.roles");
|
|
268
|
-
const { currentOrganizationId } =
|
|
269
|
-
const { error: notifyError, success: notifySuccess } =
|
|
268
|
+
const { currentOrganizationId } = chunkDPXCJVJT_js.usePlatformState();
|
|
269
|
+
const { error: notifyError, success: notifySuccess } = chunkTIJXCRM4_js.useNotifications();
|
|
270
270
|
const [users, setUsers] = react.useState([]);
|
|
271
271
|
react.useEffect(() => {
|
|
272
272
|
chunk6PBTB5ZX_js.listUsers({ organizationId: currentOrganizationId }).then((result) => setUsers(result.items.map((row) => mapAdminUser(row, normalizeRole)))).catch((error) => notifyError(error.message));
|
|
273
273
|
}, [currentOrganizationId, notifyError, normalizeRole]);
|
|
274
274
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
275
|
-
|
|
275
|
+
chunkKDVZIDVF_js.RolesPageView,
|
|
276
276
|
{
|
|
277
277
|
roleDefinitions,
|
|
278
278
|
roleOptions,
|
|
@@ -308,7 +308,7 @@ function RolesSettingsSection({ roleDefinitions, roleOptions, normalizeRole }) {
|
|
|
308
308
|
);
|
|
309
309
|
}
|
|
310
310
|
function AiWorkflowGenerateModal({ open, onClose, onGenerated }) {
|
|
311
|
-
const { error: notifyError, success: notifySuccess } =
|
|
311
|
+
const { error: notifyError, success: notifySuccess } = chunkTIJXCRM4_js.useNotifications();
|
|
312
312
|
const t = chunkYXN2K77G_js.useTranslations("agents.workflow");
|
|
313
313
|
const [connections, setConnections] = react.useState([]);
|
|
314
314
|
const [connectionId, setConnectionId] = react.useState("");
|
|
@@ -316,7 +316,7 @@ function AiWorkflowGenerateModal({ open, onClose, onGenerated }) {
|
|
|
316
316
|
const [busy, setBusy] = react.useState(false);
|
|
317
317
|
react.useEffect(() => {
|
|
318
318
|
if (!open) return;
|
|
319
|
-
|
|
319
|
+
chunkZUU7G3PC_js.listModelProviderConnections().then((items) => {
|
|
320
320
|
setConnections(items);
|
|
321
321
|
const firstEnabled = items.find((item) => item.enabled) ?? items[0];
|
|
322
322
|
setConnectionId(firstEnabled?.id ?? "");
|
|
@@ -333,9 +333,9 @@ function AiWorkflowGenerateModal({ open, onClose, onGenerated }) {
|
|
|
333
333
|
}
|
|
334
334
|
setBusy(true);
|
|
335
335
|
try {
|
|
336
|
-
const generation = await
|
|
337
|
-
const workflow = await
|
|
338
|
-
const saved = await
|
|
336
|
+
const generation = await chunkZUU7G3PC_js.aiGenerateWorkflow({ prompt: prompt.trim(), connectionId });
|
|
337
|
+
const workflow = await chunkZUU7G3PC_js.createWorkflow({ name: deriveWorkflowName(prompt) });
|
|
338
|
+
const saved = await chunkZUU7G3PC_js.saveWorkflowDraft(workflow.id, generation.graph, { name: workflow.name });
|
|
339
339
|
if (!generation.ok) {
|
|
340
340
|
notifyError(
|
|
341
341
|
t("aiWarnValidation"),
|
|
@@ -354,7 +354,7 @@ function AiWorkflowGenerateModal({ open, onClose, onGenerated }) {
|
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
357
|
-
|
|
357
|
+
chunkTIJXCRM4_js.GlassModal,
|
|
358
358
|
{
|
|
359
359
|
open,
|
|
360
360
|
onClose,
|
|
@@ -390,7 +390,7 @@ function AiWorkflowGenerateModal({ open, onClose, onGenerated }) {
|
|
|
390
390
|
/* @__PURE__ */ jsxRuntime.jsxs("label", { className: "block text-sm font-medium text-slate-700 dark:text-slate-200", children: [
|
|
391
391
|
t("aiPromptLabel"),
|
|
392
392
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
393
|
-
|
|
393
|
+
chunkTIJXCRM4_js.Textarea,
|
|
394
394
|
{
|
|
395
395
|
rows: 6,
|
|
396
396
|
className: "mt-1 w-full",
|
|
@@ -414,7 +414,7 @@ function deriveWorkflowName(prompt) {
|
|
|
414
414
|
function WorkflowTemplateModal({ open, onClose, onCreated }) {
|
|
415
415
|
const tWorkflow = chunkYXN2K77G_js.useTranslations("agents.workflow");
|
|
416
416
|
const tCommon = chunkYXN2K77G_js.useTranslations("common");
|
|
417
|
-
const { error: notifyError, success: notifySuccess } =
|
|
417
|
+
const { error: notifyError, success: notifySuccess } = chunkTIJXCRM4_js.useNotifications();
|
|
418
418
|
const [templates, setTemplates] = react.useState([]);
|
|
419
419
|
const [connections, setConnections] = react.useState([]);
|
|
420
420
|
const [templateId, setTemplateId] = react.useState("");
|
|
@@ -432,8 +432,8 @@ function WorkflowTemplateModal({ open, onClose, onCreated }) {
|
|
|
432
432
|
(async () => {
|
|
433
433
|
try {
|
|
434
434
|
const [tpls, conns] = await Promise.all([
|
|
435
|
-
|
|
436
|
-
|
|
435
|
+
chunkZUU7G3PC_js.listWorkflowTemplates(),
|
|
436
|
+
chunkZUU7G3PC_js.listModelProviderConnections()
|
|
437
437
|
]);
|
|
438
438
|
if (cancelled) return;
|
|
439
439
|
setTemplates(tpls);
|
|
@@ -465,7 +465,7 @@ function WorkflowTemplateModal({ open, onClose, onCreated }) {
|
|
|
465
465
|
if (!canSubmit) return;
|
|
466
466
|
setIsSubmitting(true);
|
|
467
467
|
try {
|
|
468
|
-
const created = await
|
|
468
|
+
const created = await chunkZUU7G3PC_js.createWorkflowFromTemplate(templateId, {
|
|
469
469
|
connectionId,
|
|
470
470
|
name: name.trim().length > 0 ? name.trim() : void 0
|
|
471
471
|
});
|
|
@@ -479,7 +479,7 @@ function WorkflowTemplateModal({ open, onClose, onCreated }) {
|
|
|
479
479
|
}
|
|
480
480
|
}, [canSubmit, templateId, connectionId, name, onCreated, onClose, notifySuccess, notifyError, tWorkflow]);
|
|
481
481
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
482
|
-
|
|
482
|
+
chunkTIJXCRM4_js.GlassModal,
|
|
483
483
|
{
|
|
484
484
|
open,
|
|
485
485
|
onClose,
|
|
@@ -552,71 +552,71 @@ function WorkflowTemplateModal({ open, onClose, onCreated }) {
|
|
|
552
552
|
|
|
553
553
|
Object.defineProperty(exports, "WorkflowCanvasShell", {
|
|
554
554
|
enumerable: true,
|
|
555
|
-
get: function () { return
|
|
555
|
+
get: function () { return chunkQASAHGLE_js.WorkflowCanvasShell; }
|
|
556
556
|
});
|
|
557
557
|
Object.defineProperty(exports, "AdminOrganizationForm", {
|
|
558
558
|
enumerable: true,
|
|
559
|
-
get: function () { return
|
|
559
|
+
get: function () { return chunkSSKKTSMA_js.AdminOrganizationForm; }
|
|
560
560
|
});
|
|
561
561
|
Object.defineProperty(exports, "AdminOrganizationList", {
|
|
562
562
|
enumerable: true,
|
|
563
|
-
get: function () { return
|
|
563
|
+
get: function () { return chunkSSKKTSMA_js.AdminOrganizationList; }
|
|
564
564
|
});
|
|
565
565
|
Object.defineProperty(exports, "AdminPermissionList", {
|
|
566
566
|
enumerable: true,
|
|
567
|
-
get: function () { return
|
|
567
|
+
get: function () { return chunkSSKKTSMA_js.AdminPermissionList; }
|
|
568
568
|
});
|
|
569
569
|
Object.defineProperty(exports, "AdminUserForm", {
|
|
570
570
|
enumerable: true,
|
|
571
|
-
get: function () { return
|
|
571
|
+
get: function () { return chunkSSKKTSMA_js.AdminUserForm; }
|
|
572
572
|
});
|
|
573
573
|
Object.defineProperty(exports, "AdminUserList", {
|
|
574
574
|
enumerable: true,
|
|
575
|
-
get: function () { return
|
|
575
|
+
get: function () { return chunkSSKKTSMA_js.AdminUserList; }
|
|
576
576
|
});
|
|
577
577
|
Object.defineProperty(exports, "ConsentScreen", {
|
|
578
578
|
enumerable: true,
|
|
579
|
-
get: function () { return
|
|
579
|
+
get: function () { return chunkLM6BJOKX_js.ConsentScreen; }
|
|
580
580
|
});
|
|
581
581
|
Object.defineProperty(exports, "ForgotPassword", {
|
|
582
582
|
enumerable: true,
|
|
583
|
-
get: function () { return
|
|
583
|
+
get: function () { return chunkLM6BJOKX_js.ForgotPassword; }
|
|
584
584
|
});
|
|
585
585
|
Object.defineProperty(exports, "MfaChallenge", {
|
|
586
586
|
enumerable: true,
|
|
587
|
-
get: function () { return
|
|
587
|
+
get: function () { return chunkLM6BJOKX_js.MfaChallenge; }
|
|
588
588
|
});
|
|
589
589
|
Object.defineProperty(exports, "PasswordlessSignIn", {
|
|
590
590
|
enumerable: true,
|
|
591
|
-
get: function () { return
|
|
591
|
+
get: function () { return chunkLM6BJOKX_js.PasswordlessSignIn; }
|
|
592
592
|
});
|
|
593
593
|
Object.defineProperty(exports, "ResetPassword", {
|
|
594
594
|
enumerable: true,
|
|
595
|
-
get: function () { return
|
|
595
|
+
get: function () { return chunkLM6BJOKX_js.ResetPassword; }
|
|
596
596
|
});
|
|
597
597
|
Object.defineProperty(exports, "SignIn", {
|
|
598
598
|
enumerable: true,
|
|
599
|
-
get: function () { return
|
|
599
|
+
get: function () { return chunkLM6BJOKX_js.SignIn; }
|
|
600
600
|
});
|
|
601
601
|
Object.defineProperty(exports, "SignUp", {
|
|
602
602
|
enumerable: true,
|
|
603
|
-
get: function () { return
|
|
603
|
+
get: function () { return chunkLM6BJOKX_js.SignUp; }
|
|
604
604
|
});
|
|
605
605
|
Object.defineProperty(exports, "SsoConnectorList", {
|
|
606
606
|
enumerable: true,
|
|
607
|
-
get: function () { return
|
|
607
|
+
get: function () { return chunkLM6BJOKX_js.SsoConnectorList; }
|
|
608
608
|
});
|
|
609
609
|
Object.defineProperty(exports, "SsoEmailForm", {
|
|
610
610
|
enumerable: true,
|
|
611
|
-
get: function () { return
|
|
611
|
+
get: function () { return chunkLM6BJOKX_js.SsoEmailForm; }
|
|
612
612
|
});
|
|
613
613
|
Object.defineProperty(exports, "UserButton", {
|
|
614
614
|
enumerable: true,
|
|
615
|
-
get: function () { return
|
|
615
|
+
get: function () { return chunkLM6BJOKX_js.UserButton; }
|
|
616
616
|
});
|
|
617
617
|
Object.defineProperty(exports, "VerifyEmail", {
|
|
618
618
|
enumerable: true,
|
|
619
|
-
get: function () { return
|
|
619
|
+
get: function () { return chunkLM6BJOKX_js.VerifyEmail; }
|
|
620
620
|
});
|
|
621
621
|
Object.defineProperty(exports, "UpgradePrompt", {
|
|
622
622
|
enumerable: true,
|
|
@@ -624,47 +624,47 @@ Object.defineProperty(exports, "UpgradePrompt", {
|
|
|
624
624
|
});
|
|
625
625
|
Object.defineProperty(exports, "ImpersonationBanner", {
|
|
626
626
|
enumerable: true,
|
|
627
|
-
get: function () { return
|
|
627
|
+
get: function () { return chunkOO4YMN4P_js.ImpersonationBanner; }
|
|
628
628
|
});
|
|
629
629
|
Object.defineProperty(exports, "WorkflowWorkspace", {
|
|
630
630
|
enumerable: true,
|
|
631
|
-
get: function () { return
|
|
631
|
+
get: function () { return chunkKDVZIDVF_js.WorkflowWorkspace; }
|
|
632
632
|
});
|
|
633
633
|
Object.defineProperty(exports, "PlatformSettings", {
|
|
634
634
|
enumerable: true,
|
|
635
|
-
get: function () { return
|
|
635
|
+
get: function () { return chunkCLXEVSGB_js.PlatformSettings; }
|
|
636
636
|
});
|
|
637
637
|
Object.defineProperty(exports, "AdminOrganizationDetail", {
|
|
638
638
|
enumerable: true,
|
|
639
|
-
get: function () { return
|
|
639
|
+
get: function () { return chunkOD2AZBEX_js.AdminOrganizationDetail; }
|
|
640
640
|
});
|
|
641
641
|
Object.defineProperty(exports, "LinkedAccountsTabContent", {
|
|
642
642
|
enumerable: true,
|
|
643
|
-
get: function () { return
|
|
643
|
+
get: function () { return chunkMN777KLN_js.LinkedAccountsTabContent; }
|
|
644
644
|
});
|
|
645
645
|
Object.defineProperty(exports, "MfaManage", {
|
|
646
646
|
enumerable: true,
|
|
647
|
-
get: function () { return
|
|
647
|
+
get: function () { return chunkMN777KLN_js.MfaManage; }
|
|
648
648
|
});
|
|
649
649
|
Object.defineProperty(exports, "MfaSetup", {
|
|
650
650
|
enumerable: true,
|
|
651
|
-
get: function () { return
|
|
651
|
+
get: function () { return chunkMN777KLN_js.MfaSetup; }
|
|
652
652
|
});
|
|
653
653
|
Object.defineProperty(exports, "ProfileTabContent", {
|
|
654
654
|
enumerable: true,
|
|
655
|
-
get: function () { return
|
|
655
|
+
get: function () { return chunkMN777KLN_js.ProfileTabContent; }
|
|
656
656
|
});
|
|
657
657
|
Object.defineProperty(exports, "SecurityTabContent", {
|
|
658
658
|
enumerable: true,
|
|
659
|
-
get: function () { return
|
|
659
|
+
get: function () { return chunkMN777KLN_js.SecurityTabContent; }
|
|
660
660
|
});
|
|
661
661
|
Object.defineProperty(exports, "SessionsTabContent", {
|
|
662
662
|
enumerable: true,
|
|
663
|
-
get: function () { return
|
|
663
|
+
get: function () { return chunkMN777KLN_js.SessionsTabContent; }
|
|
664
664
|
});
|
|
665
665
|
Object.defineProperty(exports, "UserProfile", {
|
|
666
666
|
enumerable: true,
|
|
667
|
-
get: function () { return
|
|
667
|
+
get: function () { return chunkMN777KLN_js.UserProfile; }
|
|
668
668
|
});
|
|
669
669
|
Object.defineProperty(exports, "AuthLayout", {
|
|
670
670
|
enumerable: true,
|
|
@@ -688,43 +688,43 @@ Object.defineProperty(exports, "SocialLoginButtons", {
|
|
|
688
688
|
});
|
|
689
689
|
Object.defineProperty(exports, "BillingPanel", {
|
|
690
690
|
enumerable: true,
|
|
691
|
-
get: function () { return
|
|
691
|
+
get: function () { return chunkCVCMJJ56_js.BillingPanel; }
|
|
692
692
|
});
|
|
693
693
|
Object.defineProperty(exports, "AgentsWorkspace", {
|
|
694
694
|
enumerable: true,
|
|
695
|
-
get: function () { return
|
|
695
|
+
get: function () { return chunkBTMHQCDB_js.AgentsWorkspace; }
|
|
696
696
|
});
|
|
697
697
|
Object.defineProperty(exports, "applyWorkflowExecutionEventToStore", {
|
|
698
698
|
enumerable: true,
|
|
699
|
-
get: function () { return
|
|
699
|
+
get: function () { return chunkBTMHQCDB_js.applyWorkflowExecutionEventToStore; }
|
|
700
700
|
});
|
|
701
701
|
Object.defineProperty(exports, "resetWorkflowRunPresentation", {
|
|
702
702
|
enumerable: true,
|
|
703
|
-
get: function () { return
|
|
703
|
+
get: function () { return chunkBTMHQCDB_js.resetWorkflowRunPresentation; }
|
|
704
704
|
});
|
|
705
705
|
Object.defineProperty(exports, "useRunEvents", {
|
|
706
706
|
enumerable: true,
|
|
707
|
-
get: function () { return
|
|
707
|
+
get: function () { return chunkBTMHQCDB_js.useRunEvents; }
|
|
708
708
|
});
|
|
709
709
|
Object.defineProperty(exports, "useWorkflowExecution", {
|
|
710
710
|
enumerable: true,
|
|
711
|
-
get: function () { return
|
|
711
|
+
get: function () { return chunkBTMHQCDB_js.useWorkflowExecution; }
|
|
712
712
|
});
|
|
713
713
|
Object.defineProperty(exports, "useWorkflowRunPresentation", {
|
|
714
714
|
enumerable: true,
|
|
715
|
-
get: function () { return
|
|
715
|
+
get: function () { return chunkBTMHQCDB_js.useWorkflowRunPresentation; }
|
|
716
716
|
});
|
|
717
717
|
Object.defineProperty(exports, "PlatformAppShell", {
|
|
718
718
|
enumerable: true,
|
|
719
|
-
get: function () { return
|
|
719
|
+
get: function () { return chunkDPXCJVJT_js.PlatformAppShell; }
|
|
720
720
|
});
|
|
721
721
|
Object.defineProperty(exports, "PlatformStateProvider", {
|
|
722
722
|
enumerable: true,
|
|
723
|
-
get: function () { return
|
|
723
|
+
get: function () { return chunkDPXCJVJT_js.PlatformStateProvider; }
|
|
724
724
|
});
|
|
725
725
|
Object.defineProperty(exports, "usePlatformState", {
|
|
726
726
|
enumerable: true,
|
|
727
|
-
get: function () { return
|
|
727
|
+
get: function () { return chunkDPXCJVJT_js.usePlatformState; }
|
|
728
728
|
});
|
|
729
729
|
Object.defineProperty(exports, "createPlatformRbac", {
|
|
730
730
|
enumerable: true,
|
package/dist/platform/index.mjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { WorkflowCanvasShell } from '../chunk-
|
|
3
|
-
export { AdminOrganizationForm, AdminOrganizationList, AdminPermissionList, AdminUserForm, AdminUserList } from '../chunk-
|
|
4
|
-
export { ConsentScreen, ForgotPassword, MfaChallenge, PasswordlessSignIn, ResetPassword, SignIn, SignUp, SsoConnectorList, SsoEmailForm, UserButton, VerifyEmail } from '../chunk-
|
|
2
|
+
export { WorkflowCanvasShell } from '../chunk-O4DIKNNH.mjs';
|
|
3
|
+
export { AdminOrganizationForm, AdminOrganizationList, AdminPermissionList, AdminUserForm, AdminUserList } from '../chunk-QKWNQOJB.mjs';
|
|
4
|
+
export { ConsentScreen, ForgotPassword, MfaChallenge, PasswordlessSignIn, ResetPassword, SignIn, SignUp, SsoConnectorList, SsoEmailForm, UserButton, VerifyEmail } from '../chunk-Q6MMJYEG.mjs';
|
|
5
5
|
export { UpgradePrompt } from '../chunk-DJ33CSGJ.mjs';
|
|
6
|
-
export { ImpersonationBanner } from '../chunk-
|
|
7
|
-
import { UsersPageView, RolesPageView } from '../chunk-
|
|
8
|
-
export { WorkflowWorkspace } from '../chunk-
|
|
9
|
-
export { PlatformSettings } from '../chunk-
|
|
10
|
-
export { AdminOrganizationDetail } from '../chunk-
|
|
11
|
-
export { LinkedAccountsTabContent, MfaManage, MfaSetup, ProfileTabContent, SecurityTabContent, SessionsTabContent, UserProfile } from '../chunk-
|
|
6
|
+
export { ImpersonationBanner } from '../chunk-LHAOIPYP.mjs';
|
|
7
|
+
import { UsersPageView, RolesPageView } from '../chunk-7DZ2C5IN.mjs';
|
|
8
|
+
export { WorkflowWorkspace } from '../chunk-7DZ2C5IN.mjs';
|
|
9
|
+
export { PlatformSettings } from '../chunk-I77TTBYO.mjs';
|
|
10
|
+
export { AdminOrganizationDetail } from '../chunk-3U3CIARA.mjs';
|
|
11
|
+
export { LinkedAccountsTabContent, MfaManage, MfaSetup, ProfileTabContent, SecurityTabContent, SessionsTabContent, UserProfile } from '../chunk-K3LIDGMA.mjs';
|
|
12
12
|
export { AuthLayout, BackupCodeGrid, OtpInput, PasswordStrengthMeter, SocialLoginButtons } from '../chunk-3VYD7QL2.mjs';
|
|
13
|
-
export { BillingPanel } from '../chunk-
|
|
14
|
-
export { AgentsWorkspace, applyWorkflowExecutionEventToStore, resetWorkflowRunPresentation, useRunEvents, useWorkflowExecution, useWorkflowRunPresentation } from '../chunk-
|
|
15
|
-
import '../chunk-
|
|
16
|
-
import { usePlatformState } from '../chunk-
|
|
17
|
-
export { PlatformAppShell, PlatformStateProvider, usePlatformState } from '../chunk-
|
|
13
|
+
export { BillingPanel } from '../chunk-VHU5FWFB.mjs';
|
|
14
|
+
export { AgentsWorkspace, applyWorkflowExecutionEventToStore, resetWorkflowRunPresentation, useRunEvents, useWorkflowExecution, useWorkflowRunPresentation } from '../chunk-S46LUR7O.mjs';
|
|
15
|
+
import '../chunk-S4LHC5SF.mjs';
|
|
16
|
+
import { usePlatformState } from '../chunk-QDW3IJIL.mjs';
|
|
17
|
+
export { PlatformAppShell, PlatformStateProvider, usePlatformState } from '../chunk-QDW3IJIL.mjs';
|
|
18
18
|
export { createPlatformRbac } from '../chunk-BUDZNAKL.mjs';
|
|
19
19
|
import { createUser, listUsers, addOrganizationMember } from '../chunk-UHHPBREK.mjs';
|
|
20
20
|
export { addOrganizationDomain, addOrganizationMember, createOrganization, createOrganizationInvitation, createPermission, createSecret, createUser, deleteOrganization, deletePermission, deleteUser, disableSecret, getSecret, getUserPermissions, listOrganizationDomains, listOrganizationInvitations, listOrganizationMembers, listOrganizations, listPermissions, listSecrets, listUsers, removeOrganizationMember, resetUserPassword, rotateSecret, setUserPermissions, setWindsockAdminClient, updateOrganization, updatePermission, updateUser, verifyOrganizationDomain } from '../chunk-UHHPBREK.mjs';
|
|
21
|
-
import '../chunk-
|
|
21
|
+
import '../chunk-E3NMVWRL.mjs';
|
|
22
22
|
import '../chunk-JB6RNAD2.mjs';
|
|
23
23
|
import '../chunk-LEXBTVGM.mjs';
|
|
24
|
-
import '../chunk-
|
|
25
|
-
import { Select, useAuth, usePlatformPreferences, filterByPermission, AppNavigation, GlassModal, useNotifications, Textarea } from '../chunk-
|
|
24
|
+
import '../chunk-IHOCYBHM.mjs';
|
|
25
|
+
import { Select, useAuth, usePlatformPreferences, filterByPermission, AppNavigation, GlassModal, useNotifications, Textarea } from '../chunk-OKCEK7GH.mjs';
|
|
26
26
|
import { useTranslations, useLocale } from '../chunk-7VJ7CMMT.mjs';
|
|
27
|
-
import { listModelProviderConnections, listWorkflowTemplates, createWorkflowFromTemplate, aiGenerateWorkflow, createWorkflow, saveWorkflowDraft } from '../chunk-
|
|
27
|
+
import { listModelProviderConnections, listWorkflowTemplates, createWorkflowFromTemplate, aiGenerateWorkflow, createWorkflow, saveWorkflowDraft } from '../chunk-IGOMJHC6.mjs';
|
|
28
28
|
import '../chunk-3AY5HIQ6.mjs';
|
|
29
29
|
import '../chunk-PLTLRL2V.mjs';
|
|
30
30
|
import { Button, IconButton, Badge } from '../chunk-WR55H7DH.mjs';
|
|
@@ -3,9 +3,9 @@ import { UsersPageViewProps, DataSource, RolesPageViewProps, WorkflowsPageViewPr
|
|
|
3
3
|
import { AgentModel, AgentTool, AgentRule, WorkflowRun, ModelProviderType } from '../../astrlabe/contracts.mjs';
|
|
4
4
|
import { A as AgentWithPrompts } from '../../index-BNRGVAS5.mjs';
|
|
5
5
|
import { AgentPrompt } from '@datatechsolutions/shared-domain/ports/workflow';
|
|
6
|
-
import { R as RuleFormValue, E as ExecutionTimelineLabels } from '../../rule-form-
|
|
7
|
-
import { D as DatasourceFormData, A as AnalyticsSummary, R as RunTimelineEntry, M as ModelProviderConnection } from '../../workflow-api-client-
|
|
8
|
-
export { a as DIALECT_CATEGORIES, b as DatasourceFormModal, c as DatasourceFormModalProps, d as DatasourceModal, e as DatasourceModalProps, f as findCategory, g as findDialect } from '../../workflow-api-client-
|
|
6
|
+
import { R as RuleFormValue, E as ExecutionTimelineLabels } from '../../rule-form-BkKCY8Tc.mjs';
|
|
7
|
+
import { D as DatasourceFormData, A as AnalyticsSummary, R as RunTimelineEntry, M as ModelProviderConnection } from '../../workflow-api-client-D9_0Spdz.mjs';
|
|
8
|
+
export { a as DIALECT_CATEGORIES, b as DatasourceFormModal, c as DatasourceFormModalProps, d as DatasourceModal, e as DatasourceModalProps, f as findCategory, g as findDialect } from '../../workflow-api-client-D9_0Spdz.mjs';
|
|
9
9
|
import { ReactNode } from 'react';
|
|
10
10
|
import { PlatformRoleDefinition } from '../rbac.mjs';
|
|
11
11
|
import { SecretSummary } from '../windsock-admin-client.mjs';
|
|
@@ -3,9 +3,9 @@ import { UsersPageViewProps, DataSource, RolesPageViewProps, WorkflowsPageViewPr
|
|
|
3
3
|
import { AgentModel, AgentTool, AgentRule, WorkflowRun, ModelProviderType } from '../../astrlabe/contracts.js';
|
|
4
4
|
import { A as AgentWithPrompts } from '../../index-CnCY-b5V.js';
|
|
5
5
|
import { AgentPrompt } from '@datatechsolutions/shared-domain/ports/workflow';
|
|
6
|
-
import { R as RuleFormValue, E as ExecutionTimelineLabels } from '../../rule-form-
|
|
7
|
-
import { D as DatasourceFormData, A as AnalyticsSummary, R as RunTimelineEntry, M as ModelProviderConnection } from '../../workflow-api-client-
|
|
8
|
-
export { a as DIALECT_CATEGORIES, b as DatasourceFormModal, c as DatasourceFormModalProps, d as DatasourceModal, e as DatasourceModalProps, f as findCategory, g as findDialect } from '../../workflow-api-client-
|
|
6
|
+
import { R as RuleFormValue, E as ExecutionTimelineLabels } from '../../rule-form-CBD8wlrw.js';
|
|
7
|
+
import { D as DatasourceFormData, A as AnalyticsSummary, R as RunTimelineEntry, M as ModelProviderConnection } from '../../workflow-api-client-E1QFRgeP.js';
|
|
8
|
+
export { a as DIALECT_CATEGORIES, b as DatasourceFormModal, c as DatasourceFormModalProps, d as DatasourceModal, e as DatasourceModalProps, f as findCategory, g as findDialect } from '../../workflow-api-client-E1QFRgeP.js';
|
|
9
9
|
import { ReactNode } from 'react';
|
|
10
10
|
import { PlatformRoleDefinition } from '../rbac.js';
|
|
11
11
|
import { SecretSummary } from '../windsock-admin-client.js';
|