@datatechsolutions/ui 3.11.1 → 3.11.2
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 +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-ZUU7G3PC.js → chunk-22XPYFHJ.js} +2 -2
- package/dist/chunk-22XPYFHJ.js.map +1 -0
- package/dist/{chunk-OSXBMLZP.js → chunk-3BFQ3SVG.js} +68 -68
- package/dist/{chunk-OSXBMLZP.js.map → chunk-3BFQ3SVG.js.map} +1 -1
- package/dist/{chunk-MN777KLN.js → chunk-3J4E2THD.js} +45 -45
- package/dist/{chunk-MN777KLN.js.map → chunk-3J4E2THD.js.map} +1 -1
- package/dist/{chunk-QKWNQOJB.mjs → chunk-4PUVECVF.mjs} +3 -3
- package/dist/{chunk-QKWNQOJB.mjs.map → chunk-4PUVECVF.mjs.map} +1 -1
- package/dist/{chunk-CLXEVSGB.js → chunk-5JS3UFBF.js} +13 -13
- package/dist/{chunk-CLXEVSGB.js.map → chunk-5JS3UFBF.js.map} +1 -1
- package/dist/{chunk-OD2AZBEX.js → chunk-5NKGJV72.js} +25 -25
- package/dist/{chunk-OD2AZBEX.js.map → chunk-5NKGJV72.js.map} +1 -1
- package/dist/{chunk-E3NMVWRL.mjs → chunk-5TJR3VJ6.mjs} +85 -73
- package/dist/chunk-5TJR3VJ6.mjs.map +1 -0
- package/dist/{chunk-QASAHGLE.js → chunk-5Y67PZWC.js} +4 -4
- package/dist/{chunk-QASAHGLE.js.map → chunk-5Y67PZWC.js.map} +1 -1
- package/dist/{chunk-TIJXCRM4.js → chunk-6R5Z2IQ5.js} +5 -5
- package/dist/{chunk-TIJXCRM4.js.map → chunk-6R5Z2IQ5.js.map} +1 -1
- package/dist/{chunk-Q6MMJYEG.mjs → chunk-AVLOGVVA.mjs} +3 -3
- package/dist/{chunk-Q6MMJYEG.mjs.map → chunk-AVLOGVVA.mjs.map} +1 -1
- package/dist/{chunk-SSKKTSMA.js → chunk-BGLYJ7GR.js} +35 -35
- package/dist/{chunk-SSKKTSMA.js.map → chunk-BGLYJ7GR.js.map} +1 -1
- package/dist/{chunk-OKCEK7GH.mjs → chunk-D5FL3ZHC.mjs} +3 -3
- package/dist/{chunk-OKCEK7GH.mjs.map → chunk-D5FL3ZHC.mjs.map} +1 -1
- package/dist/{chunk-KDVZIDVF.js → chunk-GDVB7QDZ.js} +28 -28
- package/dist/{chunk-KDVZIDVF.js.map → chunk-GDVB7QDZ.js.map} +1 -1
- package/dist/{chunk-DPXCJVJT.js → chunk-HLIMHIRH.js} +9 -9
- package/dist/{chunk-DPXCJVJT.js.map → chunk-HLIMHIRH.js.map} +1 -1
- package/dist/{chunk-IHOCYBHM.mjs → chunk-JBXNEOFB.mjs} +3 -3
- package/dist/{chunk-IHOCYBHM.mjs.map → chunk-JBXNEOFB.mjs.map} +1 -1
- package/dist/{chunk-3U3CIARA.mjs → chunk-JXROBMRU.mjs} +3 -3
- package/dist/{chunk-3U3CIARA.mjs.map → chunk-JXROBMRU.mjs.map} +1 -1
- package/dist/{chunk-S4LHC5SF.mjs → chunk-KGC5CRS7.mjs} +3 -3
- package/dist/{chunk-S4LHC5SF.mjs.map → chunk-KGC5CRS7.mjs.map} +1 -1
- package/dist/{chunk-VHU5FWFB.mjs → chunk-LBCUQ4FY.mjs} +3 -3
- package/dist/{chunk-VHU5FWFB.mjs.map → chunk-LBCUQ4FY.mjs.map} +1 -1
- package/dist/{chunk-BTMHQCDB.js → chunk-LW2LFJZ7.js} +66 -64
- package/dist/chunk-LW2LFJZ7.js.map +1 -0
- package/dist/{chunk-I77TTBYO.mjs → chunk-M64U336M.mjs} +6 -6
- package/dist/{chunk-I77TTBYO.mjs.map → chunk-M64U336M.mjs.map} +1 -1
- package/dist/{chunk-OO4YMN4P.js → chunk-MCHTZ63Q.js} +4 -4
- package/dist/{chunk-OO4YMN4P.js.map → chunk-MCHTZ63Q.js.map} +1 -1
- package/dist/{chunk-CVCMJJ56.js → chunk-N5FWIT7N.js} +10 -10
- package/dist/{chunk-CVCMJJ56.js.map → chunk-N5FWIT7N.js.map} +1 -1
- package/dist/{chunk-K3LIDGMA.mjs → chunk-N7T4X6A7.mjs} +3 -3
- package/dist/{chunk-K3LIDGMA.mjs.map → chunk-N7T4X6A7.mjs.map} +1 -1
- package/dist/{chunk-IGOMJHC6.mjs → chunk-NBW6WJQT.mjs} +2 -2
- package/dist/chunk-NBW6WJQT.mjs.map +1 -0
- package/dist/{chunk-QDW3IJIL.mjs → chunk-NDGYIHJ3.mjs} +3 -3
- package/dist/{chunk-QDW3IJIL.mjs.map → chunk-NDGYIHJ3.mjs.map} +1 -1
- package/dist/{chunk-S46LUR7O.mjs → chunk-OZEOBZOW.mjs} +10 -8
- package/dist/chunk-OZEOBZOW.mjs.map +1 -0
- package/dist/{chunk-O4DIKNNH.mjs → chunk-RUWUH7DW.mjs} +3 -3
- package/dist/{chunk-O4DIKNNH.mjs.map → chunk-RUWUH7DW.mjs.map} +1 -1
- package/dist/{chunk-NW32BM3F.js → chunk-TXI3QDYE.js} +34 -34
- package/dist/{chunk-NW32BM3F.js.map → chunk-TXI3QDYE.js.map} +1 -1
- package/dist/{chunk-7DZ2C5IN.mjs → chunk-TZA5T4MJ.mjs} +4 -4
- package/dist/{chunk-7DZ2C5IN.mjs.map → chunk-TZA5T4MJ.mjs.map} +1 -1
- package/dist/{chunk-LM6BJOKX.js → chunk-V32NUE5U.js} +55 -55
- package/dist/{chunk-LM6BJOKX.js.map → chunk-V32NUE5U.js.map} +1 -1
- package/dist/{chunk-LHAOIPYP.mjs → chunk-WSXP645I.mjs} +3 -3
- package/dist/{chunk-LHAOIPYP.mjs.map → chunk-WSXP645I.mjs.map} +1 -1
- package/dist/{chunk-APONR6ZM.js → chunk-Y4YIGEX6.js} +213 -201
- package/dist/chunk-Y4YIGEX6.js.map +1 -0
- package/dist/index.js +663 -663
- 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.d.mts +1 -1
- package/dist/platform/index.d.ts +1 -1
- package/dist/platform/index.js +82 -82
- package/dist/platform/index.mjs +18 -18
- package/dist/platform/pages/index.d.mts +2 -2
- package/dist/platform/pages/index.d.ts +2 -2
- package/dist/platform/pages/index.js +319 -319
- package/dist/platform/pages/index.mjs +8 -8
- 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 +62 -62
- 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/{workflow-api-client-E1QFRgeP.d.ts → workflow-api-client-CThkBj5j.d.ts} +4 -0
- package/dist/{workflow-api-client-D9_0Spdz.d.mts → workflow-api-client-crR8L7fy.d.mts} +4 -0
- package/package.json +1 -1
- package/dist/chunk-APONR6ZM.js.map +0 -1
- package/dist/chunk-BTMHQCDB.js.map +0 -1
- package/dist/chunk-E3NMVWRL.mjs.map +0 -1
- package/dist/chunk-IGOMJHC6.mjs.map +0 -1
- package/dist/chunk-S46LUR7O.mjs.map +0 -1
- package/dist/chunk-ZUU7G3PC.js.map +0 -1
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunk3T2WGL47_js = require('../../chunk-3T2WGL47.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var chunkGDVB7QDZ_js = require('../../chunk-GDVB7QDZ.js');
|
|
6
|
+
var chunkTXI3QDYE_js = require('../../chunk-TXI3QDYE.js');
|
|
7
|
+
var chunkY4YIGEX6_js = require('../../chunk-Y4YIGEX6.js');
|
|
8
8
|
require('../../chunk-55H6WZQP.js');
|
|
9
9
|
require('../../chunk-DJDZIRM6.js');
|
|
10
|
-
require('../../chunk-
|
|
11
|
-
var
|
|
10
|
+
require('../../chunk-3BFQ3SVG.js');
|
|
11
|
+
var chunk6R5Z2IQ5_js = require('../../chunk-6R5Z2IQ5.js');
|
|
12
12
|
require('../../chunk-YXN2K77G.js');
|
|
13
|
-
require('../../chunk-
|
|
13
|
+
require('../../chunk-22XPYFHJ.js');
|
|
14
14
|
require('../../chunk-2OZZH2IO.js');
|
|
15
15
|
require('../../chunk-EZQ2D47U.js');
|
|
16
16
|
var chunkBHOT22QL_js = require('../../chunk-BHOT22QL.js');
|
|
@@ -27,7 +27,7 @@ function AgentsModelsPageView({ labels, models, loading }) {
|
|
|
27
27
|
const filteredModels = searchTerm.trim() ? allModels.filter((model) => model.name.toLowerCase().includes(searchTerm.trim().toLowerCase())) : allModels;
|
|
28
28
|
const isEmpty = allModels.length === 0;
|
|
29
29
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
30
|
-
|
|
30
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
31
31
|
{
|
|
32
32
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.CubeTransparentIcon, { className: "h-5 w-5" }),
|
|
33
33
|
label: labels.title,
|
|
@@ -35,7 +35,7 @@ function AgentsModelsPageView({ labels, models, loading }) {
|
|
|
35
35
|
subtitle: labels.subtitle,
|
|
36
36
|
gradient: "from-emerald-500 to-teal-700",
|
|
37
37
|
toolbar: !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
38
|
-
|
|
38
|
+
chunk6R5Z2IQ5_js.SearchBar,
|
|
39
39
|
{
|
|
40
40
|
searchTerm,
|
|
41
41
|
onSearchChange: setSearchTerm,
|
|
@@ -45,8 +45,8 @@ function AgentsModelsPageView({ labels, models, loading }) {
|
|
|
45
45
|
) : void 0
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
49
|
-
|
|
48
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageLoadingState, {}) : isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageEmptyState, { title: labels.empty, message: labels.subtitle, iconName: "folder-open" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: filteredModels.map((model) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
49
|
+
chunk6R5Z2IQ5_js.EntityCard,
|
|
50
50
|
{
|
|
51
51
|
accentGradient: "from-emerald-500 to-teal-700",
|
|
52
52
|
icon: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-11 w-11 items-center justify-center rounded-lg bg-emerald-500/10 text-emerald-600 dark:bg-emerald-500/20 dark:text-emerald-400", children: /* @__PURE__ */ jsxRuntime.jsx(outline.CubeTransparentIcon, { className: "h-6 w-6" }) }),
|
|
@@ -70,7 +70,7 @@ function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpd
|
|
|
70
70
|
const filteredAgents = searchTerm.trim() ? allAgents.filter((agent) => String(agent.name ?? "").toLowerCase().includes(searchTerm.trim().toLowerCase())) : allAgents;
|
|
71
71
|
const isEmpty = allAgents.length === 0;
|
|
72
72
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
73
|
-
|
|
73
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
74
74
|
{
|
|
75
75
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.CpuChipIcon, { className: "h-5 w-5" }),
|
|
76
76
|
label: labels.title,
|
|
@@ -78,7 +78,7 @@ function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpd
|
|
|
78
78
|
subtitle: labels.subtitle,
|
|
79
79
|
gradient: "from-violet-500 to-indigo-700",
|
|
80
80
|
toolbar: !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
81
|
-
|
|
81
|
+
chunk6R5Z2IQ5_js.SearchBar,
|
|
82
82
|
{
|
|
83
83
|
searchTerm,
|
|
84
84
|
onSearchChange: setSearchTerm,
|
|
@@ -87,7 +87,7 @@ function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpd
|
|
|
87
87
|
}
|
|
88
88
|
) : void 0,
|
|
89
89
|
actions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
90
|
-
|
|
90
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
91
91
|
{
|
|
92
92
|
mode: "desktop",
|
|
93
93
|
label: labels.addAgent,
|
|
@@ -98,7 +98,7 @@ function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpd
|
|
|
98
98
|
}
|
|
99
99
|
);
|
|
100
100
|
const mobileAction = /* @__PURE__ */ jsxRuntime.jsx(
|
|
101
|
-
|
|
101
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
102
102
|
{
|
|
103
103
|
mode: "mobile",
|
|
104
104
|
label: labels.addAgent,
|
|
@@ -106,10 +106,10 @@ function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpd
|
|
|
106
106
|
accent: "violet"
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
109
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageLoadingState, {}) : isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageEmptyState, { title: labels.empty, message: labels.subtitle, iconName: "folder-open" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: filteredAgents.map((agent) => {
|
|
110
110
|
const modelRecord = models.find((model) => model.id === String(agent.modelId ?? ""));
|
|
111
111
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
112
|
-
|
|
112
|
+
chunk6R5Z2IQ5_js.EntityCard,
|
|
113
113
|
{
|
|
114
114
|
accentGradient: "from-violet-500 to-indigo-700",
|
|
115
115
|
icon: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-11 w-11 items-center justify-center rounded-lg bg-violet-500/10 text-violet-600 dark:bg-violet-500/20 dark:text-violet-400", children: /* @__PURE__ */ jsxRuntime.jsx(outline.CpuChipIcon, { className: "h-6 w-6" }) }),
|
|
@@ -146,7 +146,7 @@ function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpd
|
|
|
146
146
|
);
|
|
147
147
|
}) });
|
|
148
148
|
const renderForm = (initial, onSubmit) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
149
|
-
|
|
149
|
+
chunk6R5Z2IQ5_js.GlassModal,
|
|
150
150
|
{
|
|
151
151
|
open: true,
|
|
152
152
|
onClose: () => {
|
|
@@ -169,13 +169,13 @@ function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpd
|
|
|
169
169
|
outputSchema: String(form.get("outputSchema") ?? "").trim() || void 0
|
|
170
170
|
});
|
|
171
171
|
},
|
|
172
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
173
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
174
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
175
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
176
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
177
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
178
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
172
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
173
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormInput, { name: "name", label: labels.name, defaultValue: initial.name ?? "", required: true }),
|
|
174
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormSelect, { name: "modelId", label: labels.model, options: modelOptions, defaultValue: initial.modelId ?? modelOptions[0]?.value ?? "", required: true }),
|
|
175
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormInput, { name: "maxTokens", label: String(labels.maxTokens), type: "number", defaultValue: String(initial.maxTokens ?? 2048) }),
|
|
176
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormInput, { name: "temperature", label: labels.temperature, type: "number", step: 0.1, min: 0, max: 2, defaultValue: String(initial.temperature ?? 0.2) }),
|
|
177
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormTextarea, { name: "systemPrompt", label: labels.systemPrompt, defaultValue: initial.systemPrompt ?? "", rows: 4 }),
|
|
178
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormTextarea, { name: "outputSchema", label: labels.outputSchema, placeholder: labels.outputSchemaPlaceholder, defaultValue: initial.outputSchema ?? "", rows: 4 })
|
|
179
179
|
] })
|
|
180
180
|
}
|
|
181
181
|
);
|
|
@@ -242,7 +242,7 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
242
242
|
}) : allPrompts;
|
|
243
243
|
const isEmpty = allPrompts.length === 0;
|
|
244
244
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
245
|
-
|
|
245
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
246
246
|
{
|
|
247
247
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.ChatBubbleLeftEllipsisIcon, { className: "h-5 w-5" }),
|
|
248
248
|
label: labels.title,
|
|
@@ -250,7 +250,7 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
250
250
|
subtitle: labels.subtitle,
|
|
251
251
|
gradient: "from-sky-500 to-blue-700",
|
|
252
252
|
toolbar: /* @__PURE__ */ jsxRuntime.jsx(
|
|
253
|
-
|
|
253
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
254
254
|
{
|
|
255
255
|
mode: "desktop",
|
|
256
256
|
label: labels.addPrompt,
|
|
@@ -261,7 +261,7 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
261
261
|
}
|
|
262
262
|
);
|
|
263
263
|
const mobileAction = /* @__PURE__ */ jsxRuntime.jsx(
|
|
264
|
-
|
|
264
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
265
265
|
{
|
|
266
266
|
mode: "mobile",
|
|
267
267
|
label: labels.addPrompt,
|
|
@@ -269,9 +269,9 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
269
269
|
accent: "sky"
|
|
270
270
|
}
|
|
271
271
|
);
|
|
272
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
272
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageLoadingState, {}) : isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageEmptyState, { title: labels.empty, message: labels.subtitle, iconName: "folder-open" }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
273
273
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
274
|
-
|
|
274
|
+
chunk6R5Z2IQ5_js.SearchBar,
|
|
275
275
|
{
|
|
276
276
|
searchTerm,
|
|
277
277
|
onSearchChange: setSearchTerm,
|
|
@@ -282,7 +282,7 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
282
282
|
const agentName = agentNameById.get(prompt.agentId) ?? prompt.agentId;
|
|
283
283
|
const key = `${prompt.agentId}:${prompt.locale}:${prompt.version}`;
|
|
284
284
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
285
|
-
|
|
285
|
+
chunk6R5Z2IQ5_js.EntityCard,
|
|
286
286
|
{
|
|
287
287
|
accentGradient: "from-sky-500 to-blue-700",
|
|
288
288
|
icon: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-11 w-11 items-center justify-center rounded-lg bg-sky-500/10 text-sky-600 dark:bg-sky-500/20 dark:text-sky-400", children: /* @__PURE__ */ jsxRuntime.jsx(outline.ChatBubbleLeftEllipsisIcon, { className: "h-6 w-6" }) }),
|
|
@@ -317,7 +317,7 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
317
317
|
mobileAction
|
|
318
318
|
] }),
|
|
319
319
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
320
|
-
|
|
320
|
+
chunk6R5Z2IQ5_js.GlassModal,
|
|
321
321
|
{
|
|
322
322
|
open: createOpen,
|
|
323
323
|
onClose: () => setCreateOpen(false),
|
|
@@ -341,11 +341,11 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
341
341
|
});
|
|
342
342
|
setCreateOpen(false);
|
|
343
343
|
},
|
|
344
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
345
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
346
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
344
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
345
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormSelect, { name: "agentId", label: labels.agent, options: agentOptions, required: true }),
|
|
346
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormSelect, { name: "locale", label: labels.locale, options: LOCALE_OPTIONS, defaultValue: "en" }),
|
|
347
347
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
348
|
-
|
|
348
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
349
349
|
{
|
|
350
350
|
name: "isActive",
|
|
351
351
|
label: labels.isActive,
|
|
@@ -353,10 +353,10 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
353
353
|
defaultValue: "true"
|
|
354
354
|
}
|
|
355
355
|
),
|
|
356
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
357
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
358
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
359
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
356
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormInput, { name: "reason", label: labels.reason }),
|
|
357
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormTextarea, { name: "systemPrompt", label: labels.systemPrompt, rows: 3 }),
|
|
358
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormTextarea, { name: "userTemplate", label: labels.userTemplate, rows: 3 }),
|
|
359
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormTextarea, { name: "prompt", label: labels.prompt, rows: 6, required: true })
|
|
360
360
|
] })
|
|
361
361
|
}
|
|
362
362
|
)
|
|
@@ -391,7 +391,7 @@ function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpd
|
|
|
391
391
|
const filteredTools = searchTerm.trim() ? allTools.filter((tool) => tool.name.toLowerCase().includes(searchTerm.trim().toLowerCase())) : allTools;
|
|
392
392
|
const isEmpty = allTools.length === 0;
|
|
393
393
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
394
|
-
|
|
394
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
395
395
|
{
|
|
396
396
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.WrenchScrewdriverIcon, { className: "h-5 w-5" }),
|
|
397
397
|
label: labels.title,
|
|
@@ -399,7 +399,7 @@ function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpd
|
|
|
399
399
|
subtitle: labels.subtitle,
|
|
400
400
|
gradient: "from-amber-500 to-orange-700",
|
|
401
401
|
toolbar: /* @__PURE__ */ jsxRuntime.jsx(
|
|
402
|
-
|
|
402
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
403
403
|
{
|
|
404
404
|
mode: "desktop",
|
|
405
405
|
label: labels.addTool,
|
|
@@ -410,7 +410,7 @@ function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpd
|
|
|
410
410
|
}
|
|
411
411
|
);
|
|
412
412
|
const mobileAction = /* @__PURE__ */ jsxRuntime.jsx(
|
|
413
|
-
|
|
413
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
414
414
|
{
|
|
415
415
|
mode: "mobile",
|
|
416
416
|
label: labels.addTool,
|
|
@@ -418,9 +418,9 @@ function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpd
|
|
|
418
418
|
accent: "amber"
|
|
419
419
|
}
|
|
420
420
|
);
|
|
421
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
421
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageLoadingState, {}) : isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageEmptyState, { title: labels.empty, message: labels.subtitle, iconName: "folder-open" }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
422
422
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
423
|
-
|
|
423
|
+
chunk6R5Z2IQ5_js.SearchBar,
|
|
424
424
|
{
|
|
425
425
|
searchTerm,
|
|
426
426
|
onSearchChange: setSearchTerm,
|
|
@@ -428,7 +428,7 @@ function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpd
|
|
|
428
428
|
}
|
|
429
429
|
),
|
|
430
430
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: filteredTools.map((tool) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
431
|
-
|
|
431
|
+
chunk6R5Z2IQ5_js.EntityCard,
|
|
432
432
|
{
|
|
433
433
|
accentGradient: "from-amber-500 to-orange-700",
|
|
434
434
|
icon: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-11 w-11 items-center justify-center rounded-lg bg-amber-500/10 text-amber-600 dark:bg-amber-500/20 dark:text-amber-400", children: /* @__PURE__ */ jsxRuntime.jsx(outline.WrenchScrewdriverIcon, { className: "h-6 w-6" }) }),
|
|
@@ -518,7 +518,7 @@ function ToolEditor({
|
|
|
518
518
|
setValue((v) => ({ ...v, [key]: next }));
|
|
519
519
|
};
|
|
520
520
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
521
|
-
|
|
521
|
+
chunk6R5Z2IQ5_js.GlassModal,
|
|
522
522
|
{
|
|
523
523
|
open: true,
|
|
524
524
|
onClose,
|
|
@@ -531,9 +531,9 @@ function ToolEditor({
|
|
|
531
531
|
handleSubmit();
|
|
532
532
|
},
|
|
533
533
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-5", children: [
|
|
534
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
534
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
535
535
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
536
|
-
|
|
536
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
537
537
|
{
|
|
538
538
|
label: "Name",
|
|
539
539
|
required: true,
|
|
@@ -543,7 +543,7 @@ function ToolEditor({
|
|
|
543
543
|
}
|
|
544
544
|
),
|
|
545
545
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
546
|
-
|
|
546
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
547
547
|
{
|
|
548
548
|
label: "Tool type",
|
|
549
549
|
value: value.toolType,
|
|
@@ -553,7 +553,7 @@ function ToolEditor({
|
|
|
553
553
|
}
|
|
554
554
|
),
|
|
555
555
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
556
|
-
|
|
556
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
557
557
|
{
|
|
558
558
|
label: "Enabled",
|
|
559
559
|
value: value.enabled ? "true" : "false",
|
|
@@ -562,7 +562,7 @@ function ToolEditor({
|
|
|
562
562
|
}
|
|
563
563
|
),
|
|
564
564
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
565
|
-
|
|
565
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
566
566
|
{
|
|
567
567
|
label: "Icon (optional)",
|
|
568
568
|
value: value.icon ?? "",
|
|
@@ -572,7 +572,7 @@ function ToolEditor({
|
|
|
572
572
|
)
|
|
573
573
|
] }),
|
|
574
574
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
575
|
-
|
|
575
|
+
chunk6R5Z2IQ5_js.FormTextarea,
|
|
576
576
|
{
|
|
577
577
|
label: "Description",
|
|
578
578
|
rows: 2,
|
|
@@ -620,7 +620,7 @@ function ParametersEditor({
|
|
|
620
620
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
621
621
|
parameters.map((param, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-[1fr_160px_1fr_110px_auto] items-end gap-2", children: [
|
|
622
622
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
623
|
-
|
|
623
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
624
624
|
{
|
|
625
625
|
label: "Name",
|
|
626
626
|
value: param.name,
|
|
@@ -629,7 +629,7 @@ function ParametersEditor({
|
|
|
629
629
|
}
|
|
630
630
|
),
|
|
631
631
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
632
|
-
|
|
632
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
633
633
|
{
|
|
634
634
|
label: "Type",
|
|
635
635
|
value: param.type,
|
|
@@ -638,7 +638,7 @@ function ParametersEditor({
|
|
|
638
638
|
}
|
|
639
639
|
),
|
|
640
640
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
641
|
-
|
|
641
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
642
642
|
{
|
|
643
643
|
label: "Description",
|
|
644
644
|
value: param.description,
|
|
@@ -672,9 +672,9 @@ function HandlerConfigEditor({
|
|
|
672
672
|
if (toolType === "http") {
|
|
673
673
|
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "rounded-xl border border-slate-200 bg-slate-50/60 p-3 dark:border-slate-700 dark:bg-slate-900/40", children: [
|
|
674
674
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 text-sm font-semibold text-slate-700 dark:text-slate-200", children: "HTTP handler" }),
|
|
675
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
675
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
676
676
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
677
|
-
|
|
677
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
678
678
|
{
|
|
679
679
|
label: "Method",
|
|
680
680
|
value: stringProp(config, "method", "GET"),
|
|
@@ -683,7 +683,7 @@ function HandlerConfigEditor({
|
|
|
683
683
|
}
|
|
684
684
|
),
|
|
685
685
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
686
|
-
|
|
686
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
687
687
|
{
|
|
688
688
|
label: "URL template",
|
|
689
689
|
value: stringProp(config, "url"),
|
|
@@ -693,7 +693,7 @@ function HandlerConfigEditor({
|
|
|
693
693
|
)
|
|
694
694
|
] }),
|
|
695
695
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
696
|
-
|
|
696
|
+
chunk6R5Z2IQ5_js.FormTextarea,
|
|
697
697
|
{
|
|
698
698
|
label: "Headers (JSON)",
|
|
699
699
|
rows: 3,
|
|
@@ -703,7 +703,7 @@ function HandlerConfigEditor({
|
|
|
703
703
|
}
|
|
704
704
|
),
|
|
705
705
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
706
|
-
|
|
706
|
+
chunk6R5Z2IQ5_js.FormTextarea,
|
|
707
707
|
{
|
|
708
708
|
label: "Body template",
|
|
709
709
|
rows: 3,
|
|
@@ -718,7 +718,7 @@ function HandlerConfigEditor({
|
|
|
718
718
|
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "rounded-xl border border-slate-200 bg-slate-50/60 p-3 dark:border-slate-700 dark:bg-slate-900/40", children: [
|
|
719
719
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 text-sm font-semibold text-slate-700 dark:text-slate-200", children: "Function handler" }),
|
|
720
720
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
721
|
-
|
|
721
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
722
722
|
{
|
|
723
723
|
label: "Implementation key",
|
|
724
724
|
value: stringProp(config, "implementationKey"),
|
|
@@ -732,9 +732,9 @@ function HandlerConfigEditor({
|
|
|
732
732
|
if (toolType === "database_query") {
|
|
733
733
|
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "rounded-xl border border-slate-200 bg-slate-50/60 p-3 dark:border-slate-700 dark:bg-slate-900/40", children: [
|
|
734
734
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 text-sm font-semibold text-slate-700 dark:text-slate-200", children: "Database query handler" }),
|
|
735
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
735
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
736
736
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
737
|
-
|
|
737
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
738
738
|
{
|
|
739
739
|
label: "Datasource ID",
|
|
740
740
|
value: stringProp(config, "datasourceId"),
|
|
@@ -743,7 +743,7 @@ function HandlerConfigEditor({
|
|
|
743
743
|
}
|
|
744
744
|
),
|
|
745
745
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
746
|
-
|
|
746
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
747
747
|
{
|
|
748
748
|
label: "Max rows",
|
|
749
749
|
type: "number",
|
|
@@ -753,7 +753,7 @@ function HandlerConfigEditor({
|
|
|
753
753
|
)
|
|
754
754
|
] }),
|
|
755
755
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
756
|
-
|
|
756
|
+
chunk6R5Z2IQ5_js.FormTextarea,
|
|
757
757
|
{
|
|
758
758
|
label: "Query template",
|
|
759
759
|
rows: 4,
|
|
@@ -769,7 +769,7 @@ function HandlerConfigEditor({
|
|
|
769
769
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 text-sm font-semibold text-slate-700 dark:text-slate-200", children: "Code execution handler" }),
|
|
770
770
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-2 text-xs text-amber-600 dark:text-amber-400", children: "Experimental \u2014 sandbox is not yet enforced. Only enable for trusted tools." }),
|
|
771
771
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
772
|
-
|
|
772
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
773
773
|
{
|
|
774
774
|
label: "Language",
|
|
775
775
|
value: stringProp(config, "language", "javascript"),
|
|
@@ -781,7 +781,7 @@ function HandlerConfigEditor({
|
|
|
781
781
|
}
|
|
782
782
|
),
|
|
783
783
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
784
|
-
|
|
784
|
+
chunk6R5Z2IQ5_js.FormTextarea,
|
|
785
785
|
{
|
|
786
786
|
label: "Code",
|
|
787
787
|
rows: 6,
|
|
@@ -794,9 +794,9 @@ function HandlerConfigEditor({
|
|
|
794
794
|
}
|
|
795
795
|
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "rounded-xl border border-slate-200 bg-slate-50/60 p-3 dark:border-slate-700 dark:bg-slate-900/40", children: [
|
|
796
796
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 text-sm font-semibold text-slate-700 dark:text-slate-200", children: "API call handler" }),
|
|
797
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
797
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
798
798
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
799
|
-
|
|
799
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
800
800
|
{
|
|
801
801
|
label: "URL",
|
|
802
802
|
value: stringProp(config, "url"),
|
|
@@ -804,7 +804,7 @@ function HandlerConfigEditor({
|
|
|
804
804
|
}
|
|
805
805
|
),
|
|
806
806
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
807
|
-
|
|
807
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
808
808
|
{
|
|
809
809
|
label: "Auth",
|
|
810
810
|
value: stringProp(config, "authType", "bearer"),
|
|
@@ -818,7 +818,7 @@ function HandlerConfigEditor({
|
|
|
818
818
|
}
|
|
819
819
|
),
|
|
820
820
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
821
|
-
|
|
821
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
822
822
|
{
|
|
823
823
|
label: "Credential secret id",
|
|
824
824
|
value: stringProp(config, "credentialRef"),
|
|
@@ -955,7 +955,7 @@ function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete, o
|
|
|
955
955
|
const filteredRules = searchTerm.trim() ? allRules.filter((rule) => (rule.name ?? "").toLowerCase().includes(searchTerm.trim().toLowerCase())) : allRules;
|
|
956
956
|
const isEmpty = allRules.length === 0;
|
|
957
957
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
958
|
-
|
|
958
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
959
959
|
{
|
|
960
960
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.AdjustmentsHorizontalIcon, { className: "h-5 w-5" }),
|
|
961
961
|
label: labels.title,
|
|
@@ -963,7 +963,7 @@ function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete, o
|
|
|
963
963
|
subtitle: labels.subtitle,
|
|
964
964
|
gradient: "from-fuchsia-500 to-purple-700",
|
|
965
965
|
toolbar: !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
966
|
-
|
|
966
|
+
chunk6R5Z2IQ5_js.SearchBar,
|
|
967
967
|
{
|
|
968
968
|
searchTerm,
|
|
969
969
|
onSearchChange: setSearchTerm,
|
|
@@ -972,7 +972,7 @@ function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete, o
|
|
|
972
972
|
}
|
|
973
973
|
) : void 0,
|
|
974
974
|
actions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
975
|
-
|
|
975
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
976
976
|
{
|
|
977
977
|
mode: "desktop",
|
|
978
978
|
label: labels.addRule,
|
|
@@ -983,7 +983,7 @@ function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete, o
|
|
|
983
983
|
}
|
|
984
984
|
);
|
|
985
985
|
const mobileAction = /* @__PURE__ */ jsxRuntime.jsx(
|
|
986
|
-
|
|
986
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
987
987
|
{
|
|
988
988
|
mode: "mobile",
|
|
989
989
|
label: labels.addRule,
|
|
@@ -991,8 +991,8 @@ function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete, o
|
|
|
991
991
|
accent: "fuchsia"
|
|
992
992
|
}
|
|
993
993
|
);
|
|
994
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
995
|
-
|
|
994
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageLoadingState, {}) : isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageEmptyState, { title: labels.empty, message: labels.subtitle, iconName: "folder-open" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: filteredRules.map((rule) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
995
|
+
chunk6R5Z2IQ5_js.EntityCard,
|
|
996
996
|
{
|
|
997
997
|
accentGradient: "from-fuchsia-500 to-purple-700",
|
|
998
998
|
icon: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-11 w-11 items-center justify-center rounded-lg bg-fuchsia-500/10 text-fuchsia-600 dark:bg-fuchsia-500/20 dark:text-fuchsia-400", children: /* @__PURE__ */ jsxRuntime.jsx(outline.AdjustmentsHorizontalIcon, { className: "h-6 w-6" }) }),
|
|
@@ -1029,7 +1029,7 @@ function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete, o
|
|
|
1029
1029
|
{
|
|
1030
1030
|
title: labels.createTitle,
|
|
1031
1031
|
saveLabel: labels.save,
|
|
1032
|
-
initial:
|
|
1032
|
+
initial: chunkY4YIGEX6_js.defaultRuleForm(),
|
|
1033
1033
|
onClose: () => setCreateOpen(false),
|
|
1034
1034
|
onSubmit: (value) => {
|
|
1035
1035
|
onCreate(value);
|
|
@@ -1061,7 +1061,7 @@ function RuleEditor({
|
|
|
1061
1061
|
}) {
|
|
1062
1062
|
const [value, setValue] = react.useState(initial);
|
|
1063
1063
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1064
|
-
|
|
1064
|
+
chunk6R5Z2IQ5_js.GlassModal,
|
|
1065
1065
|
{
|
|
1066
1066
|
open: true,
|
|
1067
1067
|
onClose,
|
|
@@ -1073,12 +1073,12 @@ function RuleEditor({
|
|
|
1073
1073
|
event.preventDefault();
|
|
1074
1074
|
onSubmit(value);
|
|
1075
1075
|
},
|
|
1076
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1076
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkY4YIGEX6_js.RuleForm, { value, onChange: setValue })
|
|
1077
1077
|
}
|
|
1078
1078
|
);
|
|
1079
1079
|
}
|
|
1080
1080
|
function ruleToFormValue(rule) {
|
|
1081
|
-
const base =
|
|
1081
|
+
const base = chunkY4YIGEX6_js.defaultRuleForm();
|
|
1082
1082
|
const rawCondition = rule.condition ?? rule.conditions;
|
|
1083
1083
|
const rawAction = pickAction(rule);
|
|
1084
1084
|
return {
|
|
@@ -1218,7 +1218,7 @@ var SAMPLE_DATASOURCES = [
|
|
|
1218
1218
|
];
|
|
1219
1219
|
function getDialectLabel(dialect) {
|
|
1220
1220
|
if (!dialect) return "Unknown";
|
|
1221
|
-
for (const category of
|
|
1221
|
+
for (const category of chunkTXI3QDYE_js.DIALECT_CATEGORIES) {
|
|
1222
1222
|
const found = category.dialects.find((d) => d.value === dialect);
|
|
1223
1223
|
if (found) return found.label;
|
|
1224
1224
|
}
|
|
@@ -1226,12 +1226,12 @@ function getDialectLabel(dialect) {
|
|
|
1226
1226
|
}
|
|
1227
1227
|
function getDialectGradient(dialect) {
|
|
1228
1228
|
if (!dialect) return "from-gray-400 to-gray-500";
|
|
1229
|
-
const category =
|
|
1229
|
+
const category = chunkTXI3QDYE_js.findCategory(dialect);
|
|
1230
1230
|
return category?.gradient ?? "from-gray-400 to-gray-500";
|
|
1231
1231
|
}
|
|
1232
1232
|
function getDialectIcon(dialect) {
|
|
1233
1233
|
if (!dialect) return outline.CircleStackIcon;
|
|
1234
|
-
const category =
|
|
1234
|
+
const category = chunkTXI3QDYE_js.findCategory(dialect);
|
|
1235
1235
|
return category?.icon ?? outline.CircleStackIcon;
|
|
1236
1236
|
}
|
|
1237
1237
|
var DIALECT_LOGO = {
|
|
@@ -1311,7 +1311,7 @@ function DatasourcesPageView({
|
|
|
1311
1311
|
}
|
|
1312
1312
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
1313
1313
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1314
|
-
|
|
1314
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
1315
1315
|
{
|
|
1316
1316
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.CircleStackIcon, { className: "h-5 w-5" }),
|
|
1317
1317
|
label: labels.title,
|
|
@@ -1319,7 +1319,7 @@ function DatasourcesPageView({
|
|
|
1319
1319
|
subtitle: labels.subtitle,
|
|
1320
1320
|
gradient: "from-amber-500 to-orange-600",
|
|
1321
1321
|
toolbar: !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1322
|
-
|
|
1322
|
+
chunk6R5Z2IQ5_js.SearchBar,
|
|
1323
1323
|
{
|
|
1324
1324
|
searchTerm,
|
|
1325
1325
|
onSearchChange: setSearchTerm,
|
|
@@ -1328,7 +1328,7 @@ function DatasourcesPageView({
|
|
|
1328
1328
|
}
|
|
1329
1329
|
) : void 0,
|
|
1330
1330
|
actions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1331
|
-
|
|
1331
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
1332
1332
|
{
|
|
1333
1333
|
mode: "desktop",
|
|
1334
1334
|
label: labels.addDatasource,
|
|
@@ -1339,7 +1339,7 @@ function DatasourcesPageView({
|
|
|
1339
1339
|
}
|
|
1340
1340
|
),
|
|
1341
1341
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1342
|
-
|
|
1342
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
1343
1343
|
{
|
|
1344
1344
|
mode: "mobile",
|
|
1345
1345
|
label: labels.addDatasource,
|
|
@@ -1348,7 +1348,7 @@ function DatasourcesPageView({
|
|
|
1348
1348
|
}
|
|
1349
1349
|
),
|
|
1350
1350
|
isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1351
|
-
|
|
1351
|
+
chunk6R5Z2IQ5_js.PageEmptyState,
|
|
1352
1352
|
{
|
|
1353
1353
|
title: labels.emptyTitle,
|
|
1354
1354
|
message: labels.emptyDescription,
|
|
@@ -1362,7 +1362,7 @@ function DatasourcesPageView({
|
|
|
1362
1362
|
const logoSrc = getDialectLogoSrc(ds.dialect);
|
|
1363
1363
|
const iconElement = logoSrc ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "liquid-surface flex h-11 w-11 items-center justify-center rounded-lg", children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: logoSrc, alt: dialectLabel, className: "h-7 w-7 object-contain" }) }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex h-11 w-11 items-center justify-center rounded-lg bg-gradient-to-br ${gradient} shadow-lg`, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-6 w-6 text-white" }) });
|
|
1364
1364
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1365
|
-
|
|
1365
|
+
chunk6R5Z2IQ5_js.EntityCard,
|
|
1366
1366
|
{
|
|
1367
1367
|
accentGradient: gradient,
|
|
1368
1368
|
icon: iconElement,
|
|
@@ -1392,7 +1392,7 @@ function DatasourcesPageView({
|
|
|
1392
1392
|
);
|
|
1393
1393
|
}) }),
|
|
1394
1394
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1395
|
-
|
|
1395
|
+
chunkTXI3QDYE_js.DatasourceModal,
|
|
1396
1396
|
{
|
|
1397
1397
|
open: modalOpen,
|
|
1398
1398
|
onClose: () => setModalOpen(false),
|
|
@@ -1421,7 +1421,7 @@ function AgentsIndexPageView({ labels }) {
|
|
|
1421
1421
|
const filteredTiles = searchTerm.trim() ? allTiles.filter((tile) => tile.title.toLowerCase().includes(searchTerm.trim().toLowerCase())) : allTiles;
|
|
1422
1422
|
const isEmpty = allTiles.length === 0;
|
|
1423
1423
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1424
|
-
|
|
1424
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
1425
1425
|
{
|
|
1426
1426
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.CpuChipIcon, { className: "h-5 w-5" }),
|
|
1427
1427
|
label: labels.title,
|
|
@@ -1429,7 +1429,7 @@ function AgentsIndexPageView({ labels }) {
|
|
|
1429
1429
|
subtitle: labels.subtitle,
|
|
1430
1430
|
gradient: "from-violet-500 to-indigo-700",
|
|
1431
1431
|
toolbar: !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1432
|
-
|
|
1432
|
+
chunk6R5Z2IQ5_js.SearchBar,
|
|
1433
1433
|
{
|
|
1434
1434
|
searchTerm,
|
|
1435
1435
|
onSearchChange: setSearchTerm,
|
|
@@ -1442,7 +1442,7 @@ function AgentsIndexPageView({ labels }) {
|
|
|
1442
1442
|
const content = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4", children: filteredTiles.map((tile) => {
|
|
1443
1443
|
const Icon = tile.icon;
|
|
1444
1444
|
return /* @__PURE__ */ jsxRuntime.jsx(Link, { href: tile.href, className: "block focus:outline-none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1445
|
-
|
|
1445
|
+
chunk6R5Z2IQ5_js.EntityCard,
|
|
1446
1446
|
{
|
|
1447
1447
|
accentGradient: tile.gradient,
|
|
1448
1448
|
icon: /* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex h-11 w-11 items-center justify-center rounded-lg bg-gradient-to-br ${tile.gradient} shadow-lg`, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-6 w-6 text-white" }) }),
|
|
@@ -1460,7 +1460,7 @@ function WorkflowsPageView({ labels, workflows, onCreate, onUpdateMeta, onPublis
|
|
|
1460
1460
|
const selectedWorkflow = workflows[0] ?? null;
|
|
1461
1461
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
|
|
1462
1462
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1463
|
-
|
|
1463
|
+
chunk6R5Z2IQ5_js.SectionHeader,
|
|
1464
1464
|
{
|
|
1465
1465
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.RectangleStackIcon, { className: "h-5 w-5 text-white" }),
|
|
1466
1466
|
title: labels.title,
|
|
@@ -1469,9 +1469,9 @@ function WorkflowsPageView({ labels, workflows, onCreate, onUpdateMeta, onPublis
|
|
|
1469
1469
|
}
|
|
1470
1470
|
),
|
|
1471
1471
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "liquid-surface rounded-2xl p-4 space-y-3", children: [
|
|
1472
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1472
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.Text, { className: "font-semibold text-slate-900 dark:text-slate-100", children: labels.add }),
|
|
1473
1473
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1474
|
-
|
|
1474
|
+
chunk6R5Z2IQ5_js.Form,
|
|
1475
1475
|
{
|
|
1476
1476
|
onSubmit: (event) => {
|
|
1477
1477
|
event.preventDefault();
|
|
@@ -1482,32 +1482,32 @@ function WorkflowsPageView({ labels, workflows, onCreate, onUpdateMeta, onPublis
|
|
|
1482
1482
|
onCreate({ name, description });
|
|
1483
1483
|
event.currentTarget.reset();
|
|
1484
1484
|
},
|
|
1485
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1486
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1487
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1488
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1485
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
1486
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormInput, { name: "name", label: labels.workflowName, placeholder: labels.workflowNamePlaceholder, required: true }),
|
|
1487
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormTextarea, { name: "description", label: labels.description, placeholder: labels.workflowDescriptionPlaceholder, rows: 3 }),
|
|
1488
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormActionsRow, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkBHOT22QL_js.Button, { type: "submit", children: labels.create }) })
|
|
1489
1489
|
] })
|
|
1490
1490
|
}
|
|
1491
1491
|
)
|
|
1492
1492
|
] }),
|
|
1493
1493
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "liquid-surface rounded-2xl p-4 space-y-3", children: [
|
|
1494
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1495
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1496
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1497
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1498
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1499
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1500
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1501
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1494
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.Text, { className: "font-semibold text-slate-900 dark:text-slate-100", children: labels.registry }),
|
|
1495
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.Table, { children: [
|
|
1496
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TableHead, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.TableRow, { children: [
|
|
1497
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TableHeader, { children: labels.name }),
|
|
1498
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TableHeader, { children: labels.description }),
|
|
1499
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TableHeader, { children: labels.version }),
|
|
1500
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TableHeader, { children: labels.status }),
|
|
1501
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TableHeader, { children: labels.actions })
|
|
1502
1502
|
] }) }),
|
|
1503
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1504
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1505
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1506
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1507
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1508
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1503
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TableBody, { children: workflows.map((workflow) => /* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.TableRow, { children: [
|
|
1504
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TableCell, { children: workflow.name }),
|
|
1505
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TableCell, { children: workflow.description }),
|
|
1506
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TableCell, { children: String(workflow.version) }),
|
|
1507
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkBHOT22QL_js.Badge, { children: workflow.isDraft ? labels.statusDraft : labels.statusPublished }) }),
|
|
1508
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
1509
1509
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1510
|
-
|
|
1510
|
+
chunk6R5Z2IQ5_js.Form,
|
|
1511
1511
|
{
|
|
1512
1512
|
onSubmit: (event) => {
|
|
1513
1513
|
event.preventDefault();
|
|
@@ -1517,7 +1517,7 @@ function WorkflowsPageView({ labels, workflows, onCreate, onUpdateMeta, onPublis
|
|
|
1517
1517
|
description: workflow.description ?? ""
|
|
1518
1518
|
});
|
|
1519
1519
|
},
|
|
1520
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1520
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.InlineForm, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkBHOT22QL_js.Button, { type: "submit", outline: true, children: labels.saveMeta }) })
|
|
1521
1521
|
}
|
|
1522
1522
|
),
|
|
1523
1523
|
/* @__PURE__ */ jsxRuntime.jsx(chunkBHOT22QL_js.Button, { type: "button", color: "sky", onClick: () => onPublish(workflow.id), children: labels.publish })
|
|
@@ -1526,8 +1526,8 @@ function WorkflowsPageView({ labels, workflows, onCreate, onUpdateMeta, onPublis
|
|
|
1526
1526
|
] })
|
|
1527
1527
|
] }),
|
|
1528
1528
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "liquid-surface rounded-2xl p-4 space-y-3", children: [
|
|
1529
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1530
|
-
selectedWorkflow ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-[680px] rounded-2xl border border-white/65 dark:border-white/12 overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1529
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.Text, { className: "font-semibold text-slate-900 dark:text-slate-100", children: labels.workspace }),
|
|
1530
|
+
selectedWorkflow ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-[680px] rounded-2xl border border-white/65 dark:border-white/12 overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(chunkGDVB7QDZ_js.WorkflowWorkspace, { graph: chunk3T2WGL47_js.adaptWorkflowGraphToUi(selectedWorkflow.graph) }) }) : /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.Text, { children: labels.empty })
|
|
1531
1531
|
] })
|
|
1532
1532
|
] });
|
|
1533
1533
|
}
|
|
@@ -1577,7 +1577,7 @@ function WorkflowRunsPageView({ labels, runs, loading, onCancel, onReplay, onVie
|
|
|
1577
1577
|
});
|
|
1578
1578
|
const isEmpty = allRuns.length === 0;
|
|
1579
1579
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1580
|
-
|
|
1580
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
1581
1581
|
{
|
|
1582
1582
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.ClockIcon, { className: "h-5 w-5" }),
|
|
1583
1583
|
label: labels.title,
|
|
@@ -1585,7 +1585,7 @@ function WorkflowRunsPageView({ labels, runs, loading, onCancel, onReplay, onVie
|
|
|
1585
1585
|
subtitle: labels.subtitle,
|
|
1586
1586
|
gradient: "from-indigo-500 to-sky-700",
|
|
1587
1587
|
toolbar: !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1588
|
-
|
|
1588
|
+
chunk6R5Z2IQ5_js.SearchBar,
|
|
1589
1589
|
{
|
|
1590
1590
|
searchTerm,
|
|
1591
1591
|
onSearchChange: setSearchTerm,
|
|
@@ -1599,7 +1599,7 @@ function WorkflowRunsPageView({ labels, runs, loading, onCancel, onReplay, onVie
|
|
|
1599
1599
|
count: statusFilter !== "all" ? 1 : 0,
|
|
1600
1600
|
onClear: statusFilter !== "all" ? () => setStatusFilter("all") : void 0,
|
|
1601
1601
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1602
|
-
|
|
1602
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
1603
1603
|
{
|
|
1604
1604
|
name: "statusFilter",
|
|
1605
1605
|
label: labels.filterStatus,
|
|
@@ -1613,8 +1613,8 @@ function WorkflowRunsPageView({ labels, runs, loading, onCancel, onReplay, onVie
|
|
|
1613
1613
|
) : void 0
|
|
1614
1614
|
}
|
|
1615
1615
|
);
|
|
1616
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1617
|
-
|
|
1616
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageLoadingState, {}) : filteredRuns.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageEmptyState, { title: labels.empty, message: labels.subtitle, iconName: "folder-open" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: filteredRuns.map((run) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1617
|
+
chunk6R5Z2IQ5_js.EntityCard,
|
|
1618
1618
|
{
|
|
1619
1619
|
accentGradient: "from-indigo-500 to-sky-700",
|
|
1620
1620
|
icon: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-11 w-11 items-center justify-center rounded-lg bg-indigo-500/10 text-indigo-600 dark:bg-indigo-500/20 dark:text-indigo-400", children: /* @__PURE__ */ jsxRuntime.jsx(outline.ClockIcon, { className: "h-6 w-6" }) }),
|
|
@@ -1646,7 +1646,7 @@ function WorkflowRunsPageView({ labels, runs, loading, onCancel, onReplay, onVie
|
|
|
1646
1646
|
}
|
|
1647
1647
|
function RunTimelinePageView({ labels, entries, loading, runId }) {
|
|
1648
1648
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1649
|
-
|
|
1649
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
1650
1650
|
{
|
|
1651
1651
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.ClockIcon, { className: "h-5 w-5" }),
|
|
1652
1652
|
label: labels.title,
|
|
@@ -1658,19 +1658,19 @@ function RunTimelinePageView({ labels, entries, loading, runId }) {
|
|
|
1658
1658
|
if (loading) {
|
|
1659
1659
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
1660
1660
|
hero,
|
|
1661
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1661
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageLoadingState, {})
|
|
1662
1662
|
] });
|
|
1663
1663
|
}
|
|
1664
1664
|
if (entries.length === 0) {
|
|
1665
1665
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
1666
1666
|
hero,
|
|
1667
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1667
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageEmptyState, { title: labels.empty ?? "", message: "", iconName: "folder-open" })
|
|
1668
1668
|
] });
|
|
1669
1669
|
}
|
|
1670
1670
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
1671
1671
|
hero,
|
|
1672
1672
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1673
|
-
|
|
1673
|
+
chunkY4YIGEX6_js.ExecutionTimelinePanel,
|
|
1674
1674
|
{
|
|
1675
1675
|
entries,
|
|
1676
1676
|
labels
|
|
@@ -1755,7 +1755,7 @@ function ConnectionsPageView({
|
|
|
1755
1755
|
const filteredConnections = searchTerm.trim() ? allConnections.filter((conn) => conn.name.toLowerCase().includes(searchTerm.trim().toLowerCase())) : allConnections;
|
|
1756
1756
|
const isEmpty = allConnections.length === 0;
|
|
1757
1757
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1758
|
-
|
|
1758
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
1759
1759
|
{
|
|
1760
1760
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.LinkIcon, { className: "h-5 w-5" }),
|
|
1761
1761
|
label: labels.title,
|
|
@@ -1763,7 +1763,7 @@ function ConnectionsPageView({
|
|
|
1763
1763
|
subtitle: labels.subtitle,
|
|
1764
1764
|
gradient: "from-sky-500 to-indigo-600",
|
|
1765
1765
|
toolbar: !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1766
|
-
|
|
1766
|
+
chunk6R5Z2IQ5_js.SearchBar,
|
|
1767
1767
|
{
|
|
1768
1768
|
searchTerm,
|
|
1769
1769
|
onSearchChange: setSearchTerm,
|
|
@@ -1772,7 +1772,7 @@ function ConnectionsPageView({
|
|
|
1772
1772
|
}
|
|
1773
1773
|
) : void 0,
|
|
1774
1774
|
actions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1775
|
-
|
|
1775
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
1776
1776
|
{
|
|
1777
1777
|
mode: "desktop",
|
|
1778
1778
|
label: labels.add,
|
|
@@ -1783,7 +1783,7 @@ function ConnectionsPageView({
|
|
|
1783
1783
|
}
|
|
1784
1784
|
);
|
|
1785
1785
|
const mobileAction = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1786
|
-
|
|
1786
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
1787
1787
|
{
|
|
1788
1788
|
mode: "mobile",
|
|
1789
1789
|
label: labels.add,
|
|
@@ -1791,8 +1791,8 @@ function ConnectionsPageView({
|
|
|
1791
1791
|
accent: "sky"
|
|
1792
1792
|
}
|
|
1793
1793
|
);
|
|
1794
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1795
|
-
|
|
1794
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageLoadingState, {}) : isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageEmptyState, { title: labels.empty, message: labels.subtitle, iconName: "folder-open" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: filteredConnections.map((conn) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1795
|
+
chunk6R5Z2IQ5_js.EntityCard,
|
|
1796
1796
|
{
|
|
1797
1797
|
accentGradient: "from-sky-500 to-indigo-600",
|
|
1798
1798
|
icon: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-11 w-11 items-center justify-center rounded-lg bg-sky-500/10 text-sky-600 dark:bg-sky-500/20 dark:text-sky-400", children: /* @__PURE__ */ jsxRuntime.jsx(outline.LinkIcon, { className: "h-6 w-6" }) }),
|
|
@@ -1944,7 +1944,7 @@ function ConnectionEditor({
|
|
|
1944
1944
|
return preset.exampleModels?.join(", ") ?? "";
|
|
1945
1945
|
}, [preset]);
|
|
1946
1946
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1947
|
-
|
|
1947
|
+
chunk6R5Z2IQ5_js.GlassModal,
|
|
1948
1948
|
{
|
|
1949
1949
|
open: true,
|
|
1950
1950
|
onClose,
|
|
@@ -1957,9 +1957,9 @@ function ConnectionEditor({
|
|
|
1957
1957
|
void handleSubmit();
|
|
1958
1958
|
},
|
|
1959
1959
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
1960
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1960
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
1961
1961
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1962
|
-
|
|
1962
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
1963
1963
|
{
|
|
1964
1964
|
label: "Provider",
|
|
1965
1965
|
value: value.providerSlug,
|
|
@@ -1970,7 +1970,7 @@ function ConnectionEditor({
|
|
|
1970
1970
|
}
|
|
1971
1971
|
),
|
|
1972
1972
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1973
|
-
|
|
1973
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
1974
1974
|
{
|
|
1975
1975
|
label: "Display name",
|
|
1976
1976
|
required: true,
|
|
@@ -1980,7 +1980,7 @@ function ConnectionEditor({
|
|
|
1980
1980
|
}
|
|
1981
1981
|
),
|
|
1982
1982
|
preset.needsRegion && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1983
|
-
|
|
1983
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
1984
1984
|
{
|
|
1985
1985
|
label: "Region",
|
|
1986
1986
|
value: value.region,
|
|
@@ -1989,7 +1989,7 @@ function ConnectionEditor({
|
|
|
1989
1989
|
}
|
|
1990
1990
|
),
|
|
1991
1991
|
preset.needsEndpoint && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1992
|
-
|
|
1992
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
1993
1993
|
{
|
|
1994
1994
|
label: "Endpoint URL",
|
|
1995
1995
|
value: value.endpoint,
|
|
@@ -1999,7 +1999,7 @@ function ConnectionEditor({
|
|
|
1999
1999
|
)
|
|
2000
2000
|
] }),
|
|
2001
2001
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2002
|
-
|
|
2002
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
2003
2003
|
{
|
|
2004
2004
|
label: value.credentialRef ? "Rotate API key (leave blank to keep current)" : "API key",
|
|
2005
2005
|
type: "password",
|
|
@@ -2010,7 +2010,7 @@ function ConnectionEditor({
|
|
|
2010
2010
|
}
|
|
2011
2011
|
),
|
|
2012
2012
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2013
|
-
|
|
2013
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
2014
2014
|
{
|
|
2015
2015
|
label: "Model filter (comma-separated, optional)",
|
|
2016
2016
|
value: value.modelFilter,
|
|
@@ -2022,7 +2022,7 @@ function ConnectionEditor({
|
|
|
2022
2022
|
/* @__PURE__ */ jsxRuntime.jsxs("details", { className: "rounded-xl border border-slate-200 bg-slate-50/60 p-3 text-sm dark:border-slate-700 dark:bg-slate-900/40", children: [
|
|
2023
2023
|
/* @__PURE__ */ jsxRuntime.jsx("summary", { className: "cursor-pointer font-medium text-slate-700 dark:text-slate-200", children: "Advanced config (JSON)" }),
|
|
2024
2024
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2025
|
-
|
|
2025
|
+
chunk6R5Z2IQ5_js.FormTextarea,
|
|
2026
2026
|
{
|
|
2027
2027
|
rows: 4,
|
|
2028
2028
|
value: value.configJson,
|
|
@@ -2092,7 +2092,7 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2092
2092
|
{ value: "password", label: labels.typePassword }
|
|
2093
2093
|
];
|
|
2094
2094
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2095
|
-
|
|
2095
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
2096
2096
|
{
|
|
2097
2097
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.KeyIcon, { className: "h-5 w-5" }),
|
|
2098
2098
|
label: labels.title,
|
|
@@ -2100,7 +2100,7 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2100
2100
|
subtitle: labels.subtitle,
|
|
2101
2101
|
gradient: "from-rose-500 to-orange-600",
|
|
2102
2102
|
toolbar: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2103
|
-
|
|
2103
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
2104
2104
|
{
|
|
2105
2105
|
mode: "desktop",
|
|
2106
2106
|
label: labels.addCredential,
|
|
@@ -2111,7 +2111,7 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2111
2111
|
}
|
|
2112
2112
|
);
|
|
2113
2113
|
const mobileAction = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2114
|
-
|
|
2114
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
2115
2115
|
{
|
|
2116
2116
|
mode: "mobile",
|
|
2117
2117
|
label: labels.addCredential,
|
|
@@ -2119,9 +2119,9 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2119
2119
|
accent: "rose"
|
|
2120
2120
|
}
|
|
2121
2121
|
);
|
|
2122
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2122
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageLoadingState, {}) : isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageEmptyState, { title: labels.empty, message: labels.subtitle, iconName: "folder-open" }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2123
2123
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2124
|
-
|
|
2124
|
+
chunk6R5Z2IQ5_js.SearchBar,
|
|
2125
2125
|
{
|
|
2126
2126
|
searchTerm,
|
|
2127
2127
|
onSearchChange: setSearchTerm,
|
|
@@ -2129,7 +2129,7 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2129
2129
|
}
|
|
2130
2130
|
),
|
|
2131
2131
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: filteredCredentials.map((secret) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2132
|
-
|
|
2132
|
+
chunk6R5Z2IQ5_js.EntityCard,
|
|
2133
2133
|
{
|
|
2134
2134
|
accentGradient: "from-rose-500 to-orange-700",
|
|
2135
2135
|
icon: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-11 w-11 items-center justify-center rounded-lg bg-rose-500/10 text-rose-600 dark:bg-rose-500/20 dark:text-rose-400", children: /* @__PURE__ */ jsxRuntime.jsx(outline.KeyIcon, { className: "h-6 w-6" }) }),
|
|
@@ -2137,7 +2137,7 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2137
2137
|
subtitle: secret.secretType,
|
|
2138
2138
|
status: /* @__PURE__ */ jsxRuntime.jsx(chunkBHOT22QL_js.Badge, { color: secret.disabled ? "zinc" : "emerald", children: secret.disabled ? labels.disable : "Active" }),
|
|
2139
2139
|
footer: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2140
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2140
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.CopyableId, { id: secret.secretId }),
|
|
2141
2141
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
2142
2142
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkBHOT22QL_js.Button, { type: "button", size: "sm", outline: true, onClick: () => setRotateFor(secret), children: [
|
|
2143
2143
|
/* @__PURE__ */ jsxRuntime.jsx(outline.ArrowPathIcon, { className: "mr-1 h-3.5 w-3.5" }),
|
|
@@ -2180,7 +2180,7 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2180
2180
|
mobileAction
|
|
2181
2181
|
] }),
|
|
2182
2182
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2183
|
-
|
|
2183
|
+
chunk6R5Z2IQ5_js.GlassModal,
|
|
2184
2184
|
{
|
|
2185
2185
|
open: createOpen,
|
|
2186
2186
|
onClose: () => setCreateOpen(false),
|
|
@@ -2198,16 +2198,16 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2198
2198
|
onCreate({ name, value, secretType, description });
|
|
2199
2199
|
setCreateOpen(false);
|
|
2200
2200
|
},
|
|
2201
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2202
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2203
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2204
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2205
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2201
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
2202
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormInput, { name: "name", label: labels.name, placeholder: labels.namePlaceholder, required: true }),
|
|
2203
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormSelect, { name: "secretType", label: labels.type, options: typeOptions, defaultValue: "generic" }),
|
|
2204
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormInput, { name: "value", label: labels.value, placeholder: labels.valuePlaceholder, required: true, type: "password" }),
|
|
2205
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormTextarea, { name: "description", label: labels.description, placeholder: labels.descriptionPlaceholder, rows: 2 })
|
|
2206
2206
|
] })
|
|
2207
2207
|
}
|
|
2208
2208
|
),
|
|
2209
2209
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2210
|
-
|
|
2210
|
+
chunk6R5Z2IQ5_js.GlassModal,
|
|
2211
2211
|
{
|
|
2212
2212
|
open: rotateFor !== null,
|
|
2213
2213
|
onClose: () => setRotateFor(null),
|
|
@@ -2222,7 +2222,7 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2222
2222
|
onRotate(rotateFor, value);
|
|
2223
2223
|
setRotateFor(null);
|
|
2224
2224
|
},
|
|
2225
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2225
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormGrid, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormInput, { name: "value", label: labels.value, placeholder: labels.valuePlaceholder, required: true, type: "password" }) })
|
|
2226
2226
|
}
|
|
2227
2227
|
)
|
|
2228
2228
|
] });
|
|
@@ -2275,7 +2275,7 @@ function AgentsWorkspacePageView({
|
|
|
2275
2275
|
}, [agents, selectedId]);
|
|
2276
2276
|
const isEmpty = agents.length === 0;
|
|
2277
2277
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2278
|
-
|
|
2278
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
2279
2279
|
{
|
|
2280
2280
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.CpuChipIcon, { className: "h-5 w-5" }),
|
|
2281
2281
|
label: labels.title,
|
|
@@ -2283,7 +2283,7 @@ function AgentsWorkspacePageView({
|
|
|
2283
2283
|
subtitle: labels.subtitle,
|
|
2284
2284
|
gradient: "from-violet-500 to-indigo-700",
|
|
2285
2285
|
toolbar: !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2286
|
-
|
|
2286
|
+
chunk6R5Z2IQ5_js.SearchBar,
|
|
2287
2287
|
{
|
|
2288
2288
|
searchTerm,
|
|
2289
2289
|
onSearchChange: setSearchTerm,
|
|
@@ -2292,7 +2292,7 @@ function AgentsWorkspacePageView({
|
|
|
2292
2292
|
}
|
|
2293
2293
|
) : void 0,
|
|
2294
2294
|
actions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2295
|
-
|
|
2295
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
2296
2296
|
{
|
|
2297
2297
|
mode: "desktop",
|
|
2298
2298
|
label: labels.addAgent,
|
|
@@ -2303,7 +2303,7 @@ function AgentsWorkspacePageView({
|
|
|
2303
2303
|
}
|
|
2304
2304
|
);
|
|
2305
2305
|
const mobileAction = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2306
|
-
|
|
2306
|
+
chunk6R5Z2IQ5_js.CreateActionButton,
|
|
2307
2307
|
{
|
|
2308
2308
|
mode: "mobile",
|
|
2309
2309
|
label: labels.addAgent,
|
|
@@ -2311,23 +2311,23 @@ function AgentsWorkspacePageView({
|
|
|
2311
2311
|
accent: "violet"
|
|
2312
2312
|
}
|
|
2313
2313
|
);
|
|
2314
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2315
|
-
|
|
2314
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.PageLoadingState, {}) : isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2315
|
+
chunk6R5Z2IQ5_js.PageEmptyState,
|
|
2316
2316
|
{
|
|
2317
2317
|
title: labels.empty,
|
|
2318
2318
|
message: labels.emptyMessage,
|
|
2319
2319
|
iconName: "folder-open"
|
|
2320
2320
|
}
|
|
2321
2321
|
) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-[20rem_minmax(0,1fr)]", children: [
|
|
2322
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:sticky lg:top-4", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2322
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:sticky lg:top-4", children: /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.ListCard, { variant: "glass", children: filteredAgents.map((agent) => {
|
|
2323
2323
|
const id = String(agent.agentId ?? agent.id ?? "");
|
|
2324
2324
|
const active = id === selectedId;
|
|
2325
2325
|
const initials = deriveInitials(String(agent.name ?? id));
|
|
2326
2326
|
const modelName = models.find((m) => m.id === String(agent.modelId ?? ""))?.name ?? String(agent.modelId ?? "");
|
|
2327
2327
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2328
|
-
|
|
2328
|
+
chunk6R5Z2IQ5_js.ListCardItem,
|
|
2329
2329
|
{
|
|
2330
|
-
leading: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2330
|
+
leading: /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.Avatar, { tone: active ? "violet" : "slate", initials }),
|
|
2331
2331
|
trailing: agent.activePromptVersion > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkBHOT22QL_js.Badge, { color: "emerald", children: [
|
|
2332
2332
|
"v",
|
|
2333
2333
|
agent.activePromptVersion
|
|
@@ -2369,7 +2369,7 @@ function AgentsWorkspacePageView({
|
|
|
2369
2369
|
},
|
|
2370
2370
|
String(selectedAgent.agentId ?? selectedAgent.id ?? "")
|
|
2371
2371
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2372
|
-
|
|
2372
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
2373
2373
|
{
|
|
2374
2374
|
header: {
|
|
2375
2375
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.CpuChipIcon, { className: "h-4 w-4" }),
|
|
@@ -2377,7 +2377,7 @@ function AgentsWorkspacePageView({
|
|
|
2377
2377
|
subtitle: labels.noSelectionMessage
|
|
2378
2378
|
},
|
|
2379
2379
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2380
|
-
|
|
2380
|
+
chunk6R5Z2IQ5_js.PageEmptyState,
|
|
2381
2381
|
{
|
|
2382
2382
|
title: labels.noSelection,
|
|
2383
2383
|
message: labels.noSelectionMessage,
|
|
@@ -2411,7 +2411,7 @@ function AgentDetail({
|
|
|
2411
2411
|
}) {
|
|
2412
2412
|
const agentId = String(agent.agentId ?? agent.id ?? "");
|
|
2413
2413
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2414
|
-
|
|
2414
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
2415
2415
|
{
|
|
2416
2416
|
header: {
|
|
2417
2417
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.CpuChipIcon, { className: "h-4 w-4" }),
|
|
@@ -2436,15 +2436,15 @@ function AgentDetail({
|
|
|
2436
2436
|
]
|
|
2437
2437
|
}
|
|
2438
2438
|
),
|
|
2439
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2440
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2441
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2442
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2443
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2444
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2439
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.Tabs, { defaultValue: "general", className: "w-full", children: [
|
|
2440
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.TabsList, { className: "bg-white/40 dark:bg-white/[0.06]", children: [
|
|
2441
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TabsTrigger, { value: "general", children: labels.generalTab }),
|
|
2442
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TabsTrigger, { value: "prompt", children: labels.promptTab }),
|
|
2443
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TabsTrigger, { value: "tools", children: labels.toolsTab }),
|
|
2444
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TabsTrigger, { value: "model", children: labels.modelTab })
|
|
2445
2445
|
] }),
|
|
2446
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2447
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2446
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TabsContent, { value: "general", className: "space-y-4 pt-4", children: /* @__PURE__ */ jsxRuntime.jsx(GeneralTab, { agent, labels, onSubmit: (input) => onUpdateAgent(agentId, input) }) }),
|
|
2447
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TabsContent, { value: "prompt", className: "space-y-4 pt-4", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2448
2448
|
PromptTab,
|
|
2449
2449
|
{
|
|
2450
2450
|
agent,
|
|
@@ -2454,7 +2454,7 @@ function AgentDetail({
|
|
|
2454
2454
|
onActivate: (promptId) => onActivatePrompt(agentId, promptId)
|
|
2455
2455
|
}
|
|
2456
2456
|
) }),
|
|
2457
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2457
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TabsContent, { value: "tools", className: "space-y-4 pt-4", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2458
2458
|
ToolsTab,
|
|
2459
2459
|
{
|
|
2460
2460
|
agent,
|
|
@@ -2464,7 +2464,7 @@ function AgentDetail({
|
|
|
2464
2464
|
onDetach: (toolId) => onDetachTool(agentId, toolId)
|
|
2465
2465
|
}
|
|
2466
2466
|
) }),
|
|
2467
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2467
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.TabsContent, { value: "model", className: "space-y-4 pt-4", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2468
2468
|
ModelTab,
|
|
2469
2469
|
{
|
|
2470
2470
|
agent,
|
|
@@ -2496,7 +2496,7 @@ function GeneralTab({
|
|
|
2496
2496
|
const initialRole = String(agent.role ?? "");
|
|
2497
2497
|
const initialStatus = String(agent.status ?? "draft");
|
|
2498
2498
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2499
|
-
|
|
2499
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
2500
2500
|
{
|
|
2501
2501
|
variant: "glass",
|
|
2502
2502
|
header: {
|
|
@@ -2525,10 +2525,10 @@ function GeneralTab({
|
|
|
2525
2525
|
},
|
|
2526
2526
|
className: "space-y-4",
|
|
2527
2527
|
children: [
|
|
2528
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2529
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2528
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
2529
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormInput, { name: "name", label: labels.name, defaultValue: initial.name, required: true }),
|
|
2530
2530
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2531
|
-
|
|
2531
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
2532
2532
|
{
|
|
2533
2533
|
name: "status",
|
|
2534
2534
|
label: labels.status,
|
|
@@ -2540,9 +2540,9 @@ function GeneralTab({
|
|
|
2540
2540
|
]
|
|
2541
2541
|
}
|
|
2542
2542
|
),
|
|
2543
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2543
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormInput, { name: "role", label: labels.role, placeholder: labels.rolePlaceholder, defaultValue: initialRole }),
|
|
2544
2544
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2545
|
-
|
|
2545
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
2546
2546
|
{
|
|
2547
2547
|
name: "maxTokens",
|
|
2548
2548
|
label: labels.maxTokens,
|
|
@@ -2551,7 +2551,7 @@ function GeneralTab({
|
|
|
2551
2551
|
}
|
|
2552
2552
|
),
|
|
2553
2553
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2554
|
-
|
|
2554
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
2555
2555
|
{
|
|
2556
2556
|
name: "temperature",
|
|
2557
2557
|
label: labels.temperature,
|
|
@@ -2563,7 +2563,7 @@ function GeneralTab({
|
|
|
2563
2563
|
}
|
|
2564
2564
|
)
|
|
2565
2565
|
] }),
|
|
2566
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2566
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormTextarea, { name: "description", label: labels.description, defaultValue: initialDescription, rows: 3 }),
|
|
2567
2567
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsxRuntime.jsx(chunkBHOT22QL_js.Button, { type: "submit", color: "indigo", disabled: submitting, children: submitting ? labels.saving : labels.save }) })
|
|
2568
2568
|
]
|
|
2569
2569
|
}
|
|
@@ -2583,7 +2583,7 @@ function PromptTab({
|
|
|
2583
2583
|
const currentSystem = String(agent.systemPrompt ?? "");
|
|
2584
2584
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
2585
2585
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2586
|
-
|
|
2586
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
2587
2587
|
{
|
|
2588
2588
|
variant: "glass",
|
|
2589
2589
|
header: {
|
|
@@ -2595,7 +2595,7 @@ function PromptTab({
|
|
|
2595
2595
|
}
|
|
2596
2596
|
),
|
|
2597
2597
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2598
|
-
|
|
2598
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
2599
2599
|
{
|
|
2600
2600
|
variant: "glass",
|
|
2601
2601
|
header: {
|
|
@@ -2606,10 +2606,10 @@ function PromptTab({
|
|
|
2606
2606
|
/* @__PURE__ */ jsxRuntime.jsx(outline.PlusIcon, { className: "h-4 w-4" }),
|
|
2607
2607
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-1.5", children: labels.addPrompt })
|
|
2608
2608
|
] }),
|
|
2609
|
-
children: prompts.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-500 dark:text-slate-400", children: labels.promptVersionsEmpty }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2609
|
+
children: prompts.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-500 dark:text-slate-400", children: labels.promptVersionsEmpty }) : /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.ListCard, { children: prompts.map((prompt) => {
|
|
2610
2610
|
const id = `${prompt.agentId}:${prompt.locale}:${prompt.version}`;
|
|
2611
2611
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2612
|
-
|
|
2612
|
+
chunk6R5Z2IQ5_js.ListCardItem,
|
|
2613
2613
|
{
|
|
2614
2614
|
leading: /* @__PURE__ */ jsxRuntime.jsxs(chunkBHOT22QL_js.Badge, { color: prompt.isActive ? "emerald" : "zinc", children: [
|
|
2615
2615
|
"v",
|
|
@@ -2627,7 +2627,7 @@ function PromptTab({
|
|
|
2627
2627
|
}
|
|
2628
2628
|
),
|
|
2629
2629
|
addOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2630
|
-
|
|
2630
|
+
chunk6R5Z2IQ5_js.GlassModal,
|
|
2631
2631
|
{
|
|
2632
2632
|
open: true,
|
|
2633
2633
|
onClose: () => setAddOpen(false),
|
|
@@ -2648,10 +2648,10 @@ function PromptTab({
|
|
|
2648
2648
|
});
|
|
2649
2649
|
setAddOpen(false);
|
|
2650
2650
|
},
|
|
2651
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2652
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2651
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
2652
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormSelect, { name: "locale", label: labels.promptLocale, options: LOCALE_OPTIONS2, defaultValue: "en" }),
|
|
2653
2653
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2654
|
-
|
|
2654
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
2655
2655
|
{
|
|
2656
2656
|
name: "isActive",
|
|
2657
2657
|
label: labels.promptIsActive,
|
|
@@ -2662,10 +2662,10 @@ function PromptTab({
|
|
|
2662
2662
|
defaultValue: "true"
|
|
2663
2663
|
}
|
|
2664
2664
|
),
|
|
2665
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2666
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2667
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2668
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2665
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormInput, { name: "reason", label: labels.promptReason }),
|
|
2666
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormTextarea, { name: "systemPrompt", label: labels.promptSystemPrompt, rows: 3 }),
|
|
2667
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormTextarea, { name: "userTemplate", label: labels.promptUserTemplate, rows: 3 }),
|
|
2668
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormTextarea, { name: "prompt", label: labels.promptText, rows: 6, required: true })
|
|
2669
2669
|
] })
|
|
2670
2670
|
}
|
|
2671
2671
|
)
|
|
@@ -2688,15 +2688,15 @@ function ToolsTab({
|
|
|
2688
2688
|
const availableTools = tools.filter((tool) => !attachedSet.has(tool.agentToolId));
|
|
2689
2689
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
2690
2690
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2691
|
-
|
|
2691
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
2692
2692
|
{
|
|
2693
2693
|
variant: "glass",
|
|
2694
2694
|
header: {
|
|
2695
2695
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.WrenchScrewdriverIcon, { className: "h-4 w-4" }),
|
|
2696
2696
|
title: labels.toolsAttached
|
|
2697
2697
|
},
|
|
2698
|
-
children: attachedTools.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-500 dark:text-slate-400", children: labels.toolsEmpty }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2699
|
-
|
|
2698
|
+
children: attachedTools.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-500 dark:text-slate-400", children: labels.toolsEmpty }) : /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.ListCard, { children: attachedTools.map((tool) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2699
|
+
chunk6R5Z2IQ5_js.ListCardItem,
|
|
2700
2700
|
{
|
|
2701
2701
|
leading: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-amber-500/10 text-amber-600 dark:bg-amber-500/20 dark:text-amber-400", children: /* @__PURE__ */ jsxRuntime.jsx(outline.WrenchScrewdriverIcon, { className: "h-5 w-5" }) }),
|
|
2702
2702
|
trailing: /* @__PURE__ */ jsxRuntime.jsx(chunkBHOT22QL_js.Button, { type: "button", size: "sm", outline: true, onClick: () => onDetach(tool.agentToolId), children: labels.detachTool }),
|
|
@@ -2710,15 +2710,15 @@ function ToolsTab({
|
|
|
2710
2710
|
}
|
|
2711
2711
|
),
|
|
2712
2712
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2713
|
-
|
|
2713
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
2714
2714
|
{
|
|
2715
2715
|
variant: "glass",
|
|
2716
2716
|
header: {
|
|
2717
2717
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.WrenchScrewdriverIcon, { className: "h-4 w-4" }),
|
|
2718
2718
|
title: labels.toolsAvailable
|
|
2719
2719
|
},
|
|
2720
|
-
children: availableTools.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-500 dark:text-slate-400", children: labels.toolsEmpty }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2721
|
-
|
|
2720
|
+
children: availableTools.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-500 dark:text-slate-400", children: labels.toolsEmpty }) : /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.ListCard, { children: availableTools.map((tool) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2721
|
+
chunk6R5Z2IQ5_js.ListCardItem,
|
|
2722
2722
|
{
|
|
2723
2723
|
leading: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-slate-500/10 text-slate-600 dark:bg-slate-500/20 dark:text-slate-300", children: /* @__PURE__ */ jsxRuntime.jsx(outline.WrenchScrewdriverIcon, { className: "h-5 w-5" }) }),
|
|
2724
2724
|
trailing: /* @__PURE__ */ jsxRuntime.jsxs(chunkBHOT22QL_js.Button, { type: "button", size: "sm", color: "indigo", onClick: () => onAttach(tool.agentToolId), children: [
|
|
@@ -2759,7 +2759,7 @@ function ModelTab({
|
|
|
2759
2759
|
return matches.length > 0 ? matches : connections;
|
|
2760
2760
|
}, [selectedModel, connections]);
|
|
2761
2761
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2762
|
-
|
|
2762
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
2763
2763
|
{
|
|
2764
2764
|
variant: "glass",
|
|
2765
2765
|
header: {
|
|
@@ -2780,9 +2780,9 @@ function ModelTab({
|
|
|
2780
2780
|
},
|
|
2781
2781
|
className: "space-y-4",
|
|
2782
2782
|
children: [
|
|
2783
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2783
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
2784
2784
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2785
|
-
|
|
2785
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
2786
2786
|
{
|
|
2787
2787
|
label: labels.model,
|
|
2788
2788
|
value: modelId,
|
|
@@ -2791,7 +2791,7 @@ function ModelTab({
|
|
|
2791
2791
|
}
|
|
2792
2792
|
),
|
|
2793
2793
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2794
|
-
|
|
2794
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
2795
2795
|
{
|
|
2796
2796
|
label: labels.connection,
|
|
2797
2797
|
value: connectionId,
|
|
@@ -3081,7 +3081,7 @@ function AgentNewWizardPageView({
|
|
|
3081
3081
|
}
|
|
3082
3082
|
const counter = labels.wizardStepCounter.replace("{current}", String(step)).replace("{total}", String(TOTAL_STEPS));
|
|
3083
3083
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
3084
|
-
|
|
3084
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
3085
3085
|
{
|
|
3086
3086
|
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3087
3087
|
"div",
|
|
@@ -3096,7 +3096,7 @@ function AgentNewWizardPageView({
|
|
|
3096
3096
|
subtitle: stepSubtitles[step - 1],
|
|
3097
3097
|
gradient: activePreset.accent,
|
|
3098
3098
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3099
|
-
|
|
3099
|
+
chunk6R5Z2IQ5_js.StepIndicator,
|
|
3100
3100
|
{
|
|
3101
3101
|
accent: "indigo",
|
|
3102
3102
|
currentStep: step - 1,
|
|
@@ -3109,7 +3109,7 @@ function AgentNewWizardPageView({
|
|
|
3109
3109
|
);
|
|
3110
3110
|
function renderStep1() {
|
|
3111
3111
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3112
|
-
|
|
3112
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
3113
3113
|
{
|
|
3114
3114
|
variant: "glass",
|
|
3115
3115
|
header: {
|
|
@@ -3125,7 +3125,7 @@ function AgentNewWizardPageView({
|
|
|
3125
3125
|
children: AGENT_PRESETS.map((preset) => {
|
|
3126
3126
|
const selected = preset.id === presetId;
|
|
3127
3127
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3128
|
-
|
|
3128
|
+
chunk6R5Z2IQ5_js.FilterTileButton,
|
|
3129
3129
|
{
|
|
3130
3130
|
isActive: selected,
|
|
3131
3131
|
color: preset.tileColor,
|
|
@@ -3144,7 +3144,7 @@ function AgentNewWizardPageView({
|
|
|
3144
3144
|
}
|
|
3145
3145
|
function renderStep2() {
|
|
3146
3146
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3147
|
-
|
|
3147
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
3148
3148
|
{
|
|
3149
3149
|
variant: "glass",
|
|
3150
3150
|
header: {
|
|
@@ -3172,9 +3172,9 @@ function AgentNewWizardPageView({
|
|
|
3172
3172
|
e
|
|
3173
3173
|
)) })
|
|
3174
3174
|
] }),
|
|
3175
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3175
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
3176
3176
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3177
|
-
|
|
3177
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
3178
3178
|
{
|
|
3179
3179
|
label: labels.name,
|
|
3180
3180
|
value: name,
|
|
@@ -3187,7 +3187,7 @@ function AgentNewWizardPageView({
|
|
|
3187
3187
|
}
|
|
3188
3188
|
),
|
|
3189
3189
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3190
|
-
|
|
3190
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
3191
3191
|
{
|
|
3192
3192
|
label: labels.role,
|
|
3193
3193
|
value: role,
|
|
@@ -3200,7 +3200,7 @@ function AgentNewWizardPageView({
|
|
|
3200
3200
|
)
|
|
3201
3201
|
] }),
|
|
3202
3202
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3203
|
-
|
|
3203
|
+
chunk6R5Z2IQ5_js.FormTextarea,
|
|
3204
3204
|
{
|
|
3205
3205
|
label: labels.descriptionLabel,
|
|
3206
3206
|
value: description,
|
|
@@ -3218,7 +3218,7 @@ function AgentNewWizardPageView({
|
|
|
3218
3218
|
}
|
|
3219
3219
|
function renderStep3() {
|
|
3220
3220
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3221
|
-
|
|
3221
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
3222
3222
|
{
|
|
3223
3223
|
variant: "glass",
|
|
3224
3224
|
header: {
|
|
@@ -3226,9 +3226,9 @@ function AgentNewWizardPageView({
|
|
|
3226
3226
|
subtitle: labels.connectionPickPrompt
|
|
3227
3227
|
},
|
|
3228
3228
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3229
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3229
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
3230
3230
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3231
|
-
|
|
3231
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
3232
3232
|
{
|
|
3233
3233
|
label: labels.connectionLabel,
|
|
3234
3234
|
value: connectionId,
|
|
@@ -3241,7 +3241,7 @@ function AgentNewWizardPageView({
|
|
|
3241
3241
|
}
|
|
3242
3242
|
),
|
|
3243
3243
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3244
|
-
|
|
3244
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
3245
3245
|
{
|
|
3246
3246
|
label: labels.frameworkLabel,
|
|
3247
3247
|
value: framework,
|
|
@@ -3253,7 +3253,7 @@ function AgentNewWizardPageView({
|
|
|
3253
3253
|
}
|
|
3254
3254
|
),
|
|
3255
3255
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3256
|
-
|
|
3256
|
+
chunk6R5Z2IQ5_js.FormSelect,
|
|
3257
3257
|
{
|
|
3258
3258
|
label: labels.model,
|
|
3259
3259
|
value: modelId,
|
|
@@ -3266,7 +3266,7 @@ function AgentNewWizardPageView({
|
|
|
3266
3266
|
)
|
|
3267
3267
|
] }),
|
|
3268
3268
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3269
|
-
|
|
3269
|
+
chunk6R5Z2IQ5_js.FormTextarea,
|
|
3270
3270
|
{
|
|
3271
3271
|
label: labels.outputSchemaLabel,
|
|
3272
3272
|
value: outputSchema,
|
|
@@ -3285,7 +3285,7 @@ function AgentNewWizardPageView({
|
|
|
3285
3285
|
function renderStep4() {
|
|
3286
3286
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3287
3287
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3288
|
-
|
|
3288
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
3289
3289
|
{
|
|
3290
3290
|
variant: "glass",
|
|
3291
3291
|
header: {
|
|
@@ -3445,7 +3445,7 @@ function AgentNewWizardPageView({
|
|
|
3445
3445
|
}
|
|
3446
3446
|
),
|
|
3447
3447
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3448
|
-
|
|
3448
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
3449
3449
|
{
|
|
3450
3450
|
variant: "glass",
|
|
3451
3451
|
header: {
|
|
@@ -3488,7 +3488,7 @@ function AgentNewWizardPageView({
|
|
|
3488
3488
|
}) })
|
|
3489
3489
|
] }),
|
|
3490
3490
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3491
|
-
|
|
3491
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
3492
3492
|
{
|
|
3493
3493
|
label: labels.tagsLabel,
|
|
3494
3494
|
value: tagsInput,
|
|
@@ -3509,7 +3509,7 @@ function AgentNewWizardPageView({
|
|
|
3509
3509
|
const connectionLabel = connectionId ? connections.find((c) => c.id === connectionId)?.name ?? labels.connectionInline : labels.connectionInline;
|
|
3510
3510
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
3511
3511
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3512
|
-
|
|
3512
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
3513
3513
|
{
|
|
3514
3514
|
variant: "glass",
|
|
3515
3515
|
header: {
|
|
@@ -3524,7 +3524,7 @@ function AgentNewWizardPageView({
|
|
|
3524
3524
|
}
|
|
3525
3525
|
),
|
|
3526
3526
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3527
|
-
|
|
3527
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
3528
3528
|
{
|
|
3529
3529
|
variant: "glass",
|
|
3530
3530
|
header: {
|
|
@@ -3553,7 +3553,7 @@ function AgentNewWizardPageView({
|
|
|
3553
3553
|
}
|
|
3554
3554
|
),
|
|
3555
3555
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3556
|
-
|
|
3556
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
3557
3557
|
{
|
|
3558
3558
|
variant: "glass",
|
|
3559
3559
|
header: {
|
|
@@ -3573,7 +3573,7 @@ function AgentNewWizardPageView({
|
|
|
3573
3573
|
}
|
|
3574
3574
|
),
|
|
3575
3575
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3576
|
-
|
|
3576
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
3577
3577
|
{
|
|
3578
3578
|
variant: "glass",
|
|
3579
3579
|
header: {
|
|
@@ -3722,8 +3722,8 @@ function DatasourceNewWizardPageView({
|
|
|
3722
3722
|
const [submitting, setSubmitting] = react.useState(false);
|
|
3723
3723
|
const [touched, setTouched] = react.useState(false);
|
|
3724
3724
|
const [testStatus, setTestStatus] = react.useState("idle");
|
|
3725
|
-
const dialectOption = react.useMemo(() => dialect ?
|
|
3726
|
-
const category = react.useMemo(() => dialect ?
|
|
3725
|
+
const dialectOption = react.useMemo(() => dialect ? chunkTXI3QDYE_js.findDialect(dialect) : null, [dialect]);
|
|
3726
|
+
const category = react.useMemo(() => dialect ? chunkTXI3QDYE_js.findCategory(dialect) : null, [dialect]);
|
|
3727
3727
|
react.useEffect(() => {
|
|
3728
3728
|
if (dialectOption?.defaultPort && (port === "" || /^[0-9]+$/.test(port))) {
|
|
3729
3729
|
setPort(String(dialectOption.defaultPort));
|
|
@@ -3848,7 +3848,7 @@ function DatasourceNewWizardPageView({
|
|
|
3848
3848
|
}));
|
|
3849
3849
|
const counter = labels.wizardStepCounter.replace("{current}", String(step)).replace("{total}", String(TOTAL_STEPS2));
|
|
3850
3850
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
3851
|
-
|
|
3851
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
3852
3852
|
{
|
|
3853
3853
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.CircleStackIcon, { className: "h-5 w-5" }),
|
|
3854
3854
|
label: counter,
|
|
@@ -3856,7 +3856,7 @@ function DatasourceNewWizardPageView({
|
|
|
3856
3856
|
subtitle: stepSubtitles[step - 1] ?? labels.pageSubtitle,
|
|
3857
3857
|
gradient: category?.gradient ?? "from-amber-500 to-orange-600",
|
|
3858
3858
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3859
|
-
|
|
3859
|
+
chunk6R5Z2IQ5_js.StepIndicator,
|
|
3860
3860
|
{
|
|
3861
3861
|
accent: "indigo",
|
|
3862
3862
|
currentStep: step - 1,
|
|
@@ -3868,11 +3868,11 @@ function DatasourceNewWizardPageView({
|
|
|
3868
3868
|
}
|
|
3869
3869
|
);
|
|
3870
3870
|
function renderStep1() {
|
|
3871
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-6", children:
|
|
3871
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-6", children: chunkTXI3QDYE_js.DIALECT_CATEGORIES.map((cat) => {
|
|
3872
3872
|
const color = CATEGORY_COLOR[cat.id] ?? "slate";
|
|
3873
3873
|
const categoryLabel = labels[cat.labelKey] ?? cat.id;
|
|
3874
3874
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3875
|
-
|
|
3875
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
3876
3876
|
{
|
|
3877
3877
|
variant: "glass",
|
|
3878
3878
|
header: {
|
|
@@ -3890,7 +3890,7 @@ function DatasourceNewWizardPageView({
|
|
|
3890
3890
|
const selected = opt.value === dialect;
|
|
3891
3891
|
const logoSrc = DIALECT_LOGO_SRC[opt.value.toLowerCase()];
|
|
3892
3892
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3893
|
-
|
|
3893
|
+
chunk6R5Z2IQ5_js.FilterTileButton,
|
|
3894
3894
|
{
|
|
3895
3895
|
isActive: selected,
|
|
3896
3896
|
color,
|
|
@@ -3918,7 +3918,7 @@ function DatasourceNewWizardPageView({
|
|
|
3918
3918
|
case "standard":
|
|
3919
3919
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3920
3920
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3921
|
-
|
|
3921
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
3922
3922
|
{
|
|
3923
3923
|
label: labels.fieldHost,
|
|
3924
3924
|
value: host,
|
|
@@ -3931,7 +3931,7 @@ function DatasourceNewWizardPageView({
|
|
|
3931
3931
|
}
|
|
3932
3932
|
),
|
|
3933
3933
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3934
|
-
|
|
3934
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
3935
3935
|
{
|
|
3936
3936
|
label: labels.fieldPort,
|
|
3937
3937
|
type: "number",
|
|
@@ -3943,7 +3943,7 @@ function DatasourceNewWizardPageView({
|
|
|
3943
3943
|
}
|
|
3944
3944
|
),
|
|
3945
3945
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3946
|
-
|
|
3946
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
3947
3947
|
{
|
|
3948
3948
|
label: labels.fieldDatabase,
|
|
3949
3949
|
value: database,
|
|
@@ -3956,7 +3956,7 @@ function DatasourceNewWizardPageView({
|
|
|
3956
3956
|
}
|
|
3957
3957
|
),
|
|
3958
3958
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3959
|
-
|
|
3959
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
3960
3960
|
{
|
|
3961
3961
|
label: labels.fieldUsername,
|
|
3962
3962
|
value: username,
|
|
@@ -3968,7 +3968,7 @@ function DatasourceNewWizardPageView({
|
|
|
3968
3968
|
}
|
|
3969
3969
|
),
|
|
3970
3970
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3971
|
-
|
|
3971
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
3972
3972
|
{
|
|
3973
3973
|
label: labels.fieldPassword,
|
|
3974
3974
|
type: "password",
|
|
@@ -3981,7 +3981,7 @@ function DatasourceNewWizardPageView({
|
|
|
3981
3981
|
}
|
|
3982
3982
|
),
|
|
3983
3983
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3984
|
-
|
|
3984
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
3985
3985
|
{
|
|
3986
3986
|
label: labels.fieldSchema,
|
|
3987
3987
|
value: schema,
|
|
@@ -3995,7 +3995,7 @@ function DatasourceNewWizardPageView({
|
|
|
3995
3995
|
] });
|
|
3996
3996
|
case "connection-string":
|
|
3997
3997
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-full", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3998
|
-
|
|
3998
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
3999
3999
|
{
|
|
4000
4000
|
label: labels.fieldConnectionString,
|
|
4001
4001
|
value: connectionString,
|
|
@@ -4010,7 +4010,7 @@ function DatasourceNewWizardPageView({
|
|
|
4010
4010
|
case "cloud-bigquery":
|
|
4011
4011
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4012
4012
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4013
|
-
|
|
4013
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4014
4014
|
{
|
|
4015
4015
|
label: labels.fieldProjectId,
|
|
4016
4016
|
value: projectId,
|
|
@@ -4023,7 +4023,7 @@ function DatasourceNewWizardPageView({
|
|
|
4023
4023
|
}
|
|
4024
4024
|
),
|
|
4025
4025
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4026
|
-
|
|
4026
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4027
4027
|
{
|
|
4028
4028
|
label: labels.fieldDataset,
|
|
4029
4029
|
value: dataset,
|
|
@@ -4036,7 +4036,7 @@ function DatasourceNewWizardPageView({
|
|
|
4036
4036
|
}
|
|
4037
4037
|
),
|
|
4038
4038
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-full", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4039
|
-
|
|
4039
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4040
4040
|
{
|
|
4041
4041
|
label: labels.fieldKeyFile,
|
|
4042
4042
|
value: keyFile,
|
|
@@ -4051,7 +4051,7 @@ function DatasourceNewWizardPageView({
|
|
|
4051
4051
|
case "cloud-snowflake":
|
|
4052
4052
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4053
4053
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4054
|
-
|
|
4054
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4055
4055
|
{
|
|
4056
4056
|
label: labels.fieldAccount,
|
|
4057
4057
|
value: account,
|
|
@@ -4064,7 +4064,7 @@ function DatasourceNewWizardPageView({
|
|
|
4064
4064
|
}
|
|
4065
4065
|
),
|
|
4066
4066
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4067
|
-
|
|
4067
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4068
4068
|
{
|
|
4069
4069
|
label: labels.fieldWarehouse,
|
|
4070
4070
|
value: warehouseField,
|
|
@@ -4077,7 +4077,7 @@ function DatasourceNewWizardPageView({
|
|
|
4077
4077
|
}
|
|
4078
4078
|
),
|
|
4079
4079
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4080
|
-
|
|
4080
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4081
4081
|
{
|
|
4082
4082
|
label: labels.fieldDatabase,
|
|
4083
4083
|
value: database,
|
|
@@ -4090,7 +4090,7 @@ function DatasourceNewWizardPageView({
|
|
|
4090
4090
|
}
|
|
4091
4091
|
),
|
|
4092
4092
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4093
|
-
|
|
4093
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4094
4094
|
{
|
|
4095
4095
|
label: labels.fieldUsername,
|
|
4096
4096
|
value: username,
|
|
@@ -4103,7 +4103,7 @@ function DatasourceNewWizardPageView({
|
|
|
4103
4103
|
}
|
|
4104
4104
|
),
|
|
4105
4105
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4106
|
-
|
|
4106
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4107
4107
|
{
|
|
4108
4108
|
label: labels.fieldPassword,
|
|
4109
4109
|
type: "password",
|
|
@@ -4116,7 +4116,7 @@ function DatasourceNewWizardPageView({
|
|
|
4116
4116
|
}
|
|
4117
4117
|
),
|
|
4118
4118
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4119
|
-
|
|
4119
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4120
4120
|
{
|
|
4121
4121
|
label: labels.fieldSchema,
|
|
4122
4122
|
value: schema,
|
|
@@ -4131,7 +4131,7 @@ function DatasourceNewWizardPageView({
|
|
|
4131
4131
|
case "cloud-key":
|
|
4132
4132
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4133
4133
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4134
|
-
|
|
4134
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4135
4135
|
{
|
|
4136
4136
|
label: labels.fieldRegion,
|
|
4137
4137
|
value: region,
|
|
@@ -4144,7 +4144,7 @@ function DatasourceNewWizardPageView({
|
|
|
4144
4144
|
}
|
|
4145
4145
|
),
|
|
4146
4146
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4147
|
-
|
|
4147
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4148
4148
|
{
|
|
4149
4149
|
label: labels.fieldToken,
|
|
4150
4150
|
type: "password",
|
|
@@ -4158,7 +4158,7 @@ function DatasourceNewWizardPageView({
|
|
|
4158
4158
|
}
|
|
4159
4159
|
),
|
|
4160
4160
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4161
|
-
|
|
4161
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4162
4162
|
{
|
|
4163
4163
|
label: labels.fieldBucket,
|
|
4164
4164
|
value: bucket,
|
|
@@ -4173,7 +4173,7 @@ function DatasourceNewWizardPageView({
|
|
|
4173
4173
|
case "vector-key":
|
|
4174
4174
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4175
4175
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4176
|
-
|
|
4176
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4177
4177
|
{
|
|
4178
4178
|
label: labels.fieldApiKey,
|
|
4179
4179
|
type: "password",
|
|
@@ -4187,7 +4187,7 @@ function DatasourceNewWizardPageView({
|
|
|
4187
4187
|
}
|
|
4188
4188
|
),
|
|
4189
4189
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4190
|
-
|
|
4190
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4191
4191
|
{
|
|
4192
4192
|
label: labels.fieldEnvironment,
|
|
4193
4193
|
value: environment,
|
|
@@ -4200,7 +4200,7 @@ function DatasourceNewWizardPageView({
|
|
|
4200
4200
|
}
|
|
4201
4201
|
),
|
|
4202
4202
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4203
|
-
|
|
4203
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4204
4204
|
{
|
|
4205
4205
|
label: labels.fieldIndex,
|
|
4206
4206
|
value: index,
|
|
@@ -4216,13 +4216,13 @@ function DatasourceNewWizardPageView({
|
|
|
4216
4216
|
}
|
|
4217
4217
|
function renderStep2() {
|
|
4218
4218
|
if (!dialectOption) {
|
|
4219
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4219
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.SectionCard, { variant: "glass", header: { title: labels.wizardStep1Title }, children: [
|
|
4220
4220
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-700 dark:text-slate-200", children: labels.wizardStep1Subtitle }),
|
|
4221
4221
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3", children: /* @__PURE__ */ jsxRuntime.jsx(chunkBHOT22QL_js.Button, { type: "button", outline: true, onClick: () => goToStep(1), children: labels.wizardBack }) })
|
|
4222
4222
|
] });
|
|
4223
4223
|
}
|
|
4224
4224
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4225
|
-
|
|
4225
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
4226
4226
|
{
|
|
4227
4227
|
variant: "glass",
|
|
4228
4228
|
header: {
|
|
@@ -4233,7 +4233,7 @@ function DatasourceNewWizardPageView({
|
|
|
4233
4233
|
},
|
|
4234
4234
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4235
4235
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4236
|
-
|
|
4236
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4237
4237
|
{
|
|
4238
4238
|
label: labels.fieldName,
|
|
4239
4239
|
value: name,
|
|
@@ -4245,10 +4245,10 @@ function DatasourceNewWizardPageView({
|
|
|
4245
4245
|
required: true
|
|
4246
4246
|
}
|
|
4247
4247
|
),
|
|
4248
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4248
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.FormGrid, { children: renderConnectionFields() }),
|
|
4249
4249
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-6 pt-1", children: [
|
|
4250
4250
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4251
|
-
|
|
4251
|
+
chunk6R5Z2IQ5_js.FormToggle,
|
|
4252
4252
|
{
|
|
4253
4253
|
checked: ssl,
|
|
4254
4254
|
onChange: (v) => {
|
|
@@ -4260,7 +4260,7 @@ function DatasourceNewWizardPageView({
|
|
|
4260
4260
|
}
|
|
4261
4261
|
),
|
|
4262
4262
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4263
|
-
|
|
4263
|
+
chunk6R5Z2IQ5_js.FormToggle,
|
|
4264
4264
|
{
|
|
4265
4265
|
checked: readOnly,
|
|
4266
4266
|
onChange: (v) => {
|
|
@@ -4282,13 +4282,13 @@ function DatasourceNewWizardPageView({
|
|
|
4282
4282
|
onClick: () => void handleTestConnection(),
|
|
4283
4283
|
disabled: testStatus === "testing",
|
|
4284
4284
|
children: testStatus === "testing" ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-2", children: [
|
|
4285
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4285
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.Spinner, { size: "xs" }),
|
|
4286
4286
|
labels.testing
|
|
4287
4287
|
] }) : labels.testConnection
|
|
4288
4288
|
}
|
|
4289
4289
|
),
|
|
4290
|
-
testStatus === "success" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4291
|
-
testStatus === "failed" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4290
|
+
testStatus === "success" && /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.StatusBadge, { status: "success", label: labels.connectionSuccess }),
|
|
4291
|
+
testStatus === "failed" && /* @__PURE__ */ jsxRuntime.jsx(chunk6R5Z2IQ5_js.StatusBadge, { status: "error", label: labels.connectionFailed })
|
|
4292
4292
|
] })
|
|
4293
4293
|
] })
|
|
4294
4294
|
}
|
|
@@ -4296,7 +4296,7 @@ function DatasourceNewWizardPageView({
|
|
|
4296
4296
|
}
|
|
4297
4297
|
function renderStep3() {
|
|
4298
4298
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4299
|
-
|
|
4299
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
4300
4300
|
{
|
|
4301
4301
|
variant: "glass",
|
|
4302
4302
|
header: {
|
|
@@ -4304,9 +4304,9 @@ function DatasourceNewWizardPageView({
|
|
|
4304
4304
|
subtitle: labels.governanceSectionSubtitle
|
|
4305
4305
|
},
|
|
4306
4306
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4307
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4307
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
4308
4308
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4309
|
-
|
|
4309
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4310
4310
|
{
|
|
4311
4311
|
label: labels.fieldMaxPoolSize,
|
|
4312
4312
|
type: "number",
|
|
@@ -4321,7 +4321,7 @@ function DatasourceNewWizardPageView({
|
|
|
4321
4321
|
}
|
|
4322
4322
|
),
|
|
4323
4323
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4324
|
-
|
|
4324
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4325
4325
|
{
|
|
4326
4326
|
label: labels.fieldTimeoutMs,
|
|
4327
4327
|
type: "number",
|
|
@@ -4338,7 +4338,7 @@ function DatasourceNewWizardPageView({
|
|
|
4338
4338
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
4339
4339
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "block text-xs font-medium text-gray-500 dark:text-gray-400", children: labels.fieldAllowedTables }),
|
|
4340
4340
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4341
|
-
|
|
4341
|
+
chunk6R5Z2IQ5_js.ChipPicker,
|
|
4342
4342
|
{
|
|
4343
4343
|
items: allowedTablesItems,
|
|
4344
4344
|
selectedIds: allowedTablesSelected,
|
|
@@ -4362,7 +4362,7 @@ function DatasourceNewWizardPageView({
|
|
|
4362
4362
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
4363
4363
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "block text-xs font-medium text-gray-500 dark:text-gray-400", children: labels.fieldBlockedColumns }),
|
|
4364
4364
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4365
|
-
|
|
4365
|
+
chunk6R5Z2IQ5_js.ChipPicker,
|
|
4366
4366
|
{
|
|
4367
4367
|
items: blockedColumnsItems,
|
|
4368
4368
|
selectedIds: blockedColumnsSelected,
|
|
@@ -4384,7 +4384,7 @@ function DatasourceNewWizardPageView({
|
|
|
4384
4384
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] text-slate-500 dark:text-slate-400", children: labels.fieldBlockedColumnsHint })
|
|
4385
4385
|
] }),
|
|
4386
4386
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4387
|
-
|
|
4387
|
+
chunk6R5Z2IQ5_js.FormCheckbox,
|
|
4388
4388
|
{
|
|
4389
4389
|
checked: maskPii,
|
|
4390
4390
|
onChange: (v) => {
|
|
@@ -4406,7 +4406,7 @@ function DatasourceNewWizardPageView({
|
|
|
4406
4406
|
const blocked = blockedColumnsSelected;
|
|
4407
4407
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4408
4408
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4409
|
-
|
|
4409
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
4410
4410
|
{
|
|
4411
4411
|
variant: "glass",
|
|
4412
4412
|
header: {
|
|
@@ -4424,7 +4424,7 @@ function DatasourceNewWizardPageView({
|
|
|
4424
4424
|
}
|
|
4425
4425
|
),
|
|
4426
4426
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4427
|
-
|
|
4427
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
4428
4428
|
{
|
|
4429
4429
|
variant: "glass",
|
|
4430
4430
|
header: {
|
|
@@ -4444,7 +4444,7 @@ function DatasourceNewWizardPageView({
|
|
|
4444
4444
|
}
|
|
4445
4445
|
),
|
|
4446
4446
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4447
|
-
|
|
4447
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
4448
4448
|
{
|
|
4449
4449
|
variant: "glass",
|
|
4450
4450
|
header: {
|
|
@@ -4633,9 +4633,9 @@ function RuleNewWizardPageView({
|
|
|
4633
4633
|
text: "text-fuchsia-700 dark:text-fuchsia-300"
|
|
4634
4634
|
};
|
|
4635
4635
|
const [combinator, setCombinator] = react.useState("and");
|
|
4636
|
-
const [condition, setCondition] = react.useState(
|
|
4636
|
+
const [condition, setCondition] = react.useState(chunkY4YIGEX6_js.defaultRuleCondition());
|
|
4637
4637
|
const [actionTileId, setActionTileId] = react.useState("");
|
|
4638
|
-
const [action, setAction] = react.useState(
|
|
4638
|
+
const [action, setAction] = react.useState(chunkY4YIGEX6_js.defaultRuleAction());
|
|
4639
4639
|
const [validFromDate, setValidFromDate] = react.useState(null);
|
|
4640
4640
|
const [validFromTime, setValidFromTime] = react.useState(null);
|
|
4641
4641
|
const [validUntilDate, setValidUntilDate] = react.useState(null);
|
|
@@ -4764,7 +4764,7 @@ function RuleNewWizardPageView({
|
|
|
4764
4764
|
}));
|
|
4765
4765
|
const counter = labels.wizardStepCounter.replace("{current}", String(step)).replace("{total}", String(TOTAL_STEPS3));
|
|
4766
4766
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
4767
|
-
|
|
4767
|
+
chunk6R5Z2IQ5_js.HeroSection,
|
|
4768
4768
|
{
|
|
4769
4769
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.AdjustmentsHorizontalIcon, { className: "h-5 w-5" }),
|
|
4770
4770
|
label: counter,
|
|
@@ -4772,7 +4772,7 @@ function RuleNewWizardPageView({
|
|
|
4772
4772
|
subtitle: stepSubtitles[step - 1] ?? labels.pageSubtitle,
|
|
4773
4773
|
gradient: "from-fuchsia-500 to-purple-700",
|
|
4774
4774
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4775
|
-
|
|
4775
|
+
chunk6R5Z2IQ5_js.StepIndicator,
|
|
4776
4776
|
{
|
|
4777
4777
|
accent: "violet",
|
|
4778
4778
|
currentStep: step - 1,
|
|
@@ -4785,7 +4785,7 @@ function RuleNewWizardPageView({
|
|
|
4785
4785
|
);
|
|
4786
4786
|
function renderStep1() {
|
|
4787
4787
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4788
|
-
|
|
4788
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
4789
4789
|
{
|
|
4790
4790
|
variant: "glass",
|
|
4791
4791
|
header: {
|
|
@@ -4794,7 +4794,7 @@ function RuleNewWizardPageView({
|
|
|
4794
4794
|
},
|
|
4795
4795
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
4796
4796
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4797
|
-
|
|
4797
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
4798
4798
|
{
|
|
4799
4799
|
label: labels.nameLabel,
|
|
4800
4800
|
value: name,
|
|
@@ -4807,7 +4807,7 @@ function RuleNewWizardPageView({
|
|
|
4807
4807
|
}
|
|
4808
4808
|
),
|
|
4809
4809
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4810
|
-
|
|
4810
|
+
chunk6R5Z2IQ5_js.FormTextarea,
|
|
4811
4811
|
{
|
|
4812
4812
|
label: labels.descriptionLabel,
|
|
4813
4813
|
value: description,
|
|
@@ -4843,7 +4843,7 @@ function RuleNewWizardPageView({
|
|
|
4843
4843
|
}
|
|
4844
4844
|
),
|
|
4845
4845
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4846
|
-
|
|
4846
|
+
chunk6R5Z2IQ5_js.FormToggle,
|
|
4847
4847
|
{
|
|
4848
4848
|
checked: enabled,
|
|
4849
4849
|
onChange: (v) => {
|
|
@@ -4860,7 +4860,7 @@ function RuleNewWizardPageView({
|
|
|
4860
4860
|
}
|
|
4861
4861
|
function renderStep2() {
|
|
4862
4862
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4863
|
-
|
|
4863
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
4864
4864
|
{
|
|
4865
4865
|
variant: "glass",
|
|
4866
4866
|
header: {
|
|
@@ -4871,7 +4871,7 @@ function RuleNewWizardPageView({
|
|
|
4871
4871
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
4872
4872
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "mb-2 block text-xs font-semibold uppercase tracking-wider text-slate-600 dark:text-slate-400", children: labels.combinatorLabel }),
|
|
4873
4873
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4874
|
-
|
|
4874
|
+
chunk6R5Z2IQ5_js.SegmentedControl,
|
|
4875
4875
|
{
|
|
4876
4876
|
segments: [
|
|
4877
4877
|
{ value: "and", label: labels.combinatorAnd },
|
|
@@ -4888,7 +4888,7 @@ function RuleNewWizardPageView({
|
|
|
4888
4888
|
)
|
|
4889
4889
|
] }),
|
|
4890
4890
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4891
|
-
|
|
4891
|
+
chunkY4YIGEX6_js.RuleConditionBuilder,
|
|
4892
4892
|
{
|
|
4893
4893
|
value: condition,
|
|
4894
4894
|
onChange: (next) => {
|
|
@@ -4904,7 +4904,7 @@ function RuleNewWizardPageView({
|
|
|
4904
4904
|
function renderStep3() {
|
|
4905
4905
|
const selectedTile = ACTION_TILES.find((t) => t.id === actionTileId) ?? null;
|
|
4906
4906
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4907
|
-
|
|
4907
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
4908
4908
|
{
|
|
4909
4909
|
variant: "glass",
|
|
4910
4910
|
header: {
|
|
@@ -4924,7 +4924,7 @@ function RuleNewWizardPageView({
|
|
|
4924
4924
|
const label = labels[tile.labelKey] ?? tile.id;
|
|
4925
4925
|
const description2 = labels[tile.descriptionKey] ?? "";
|
|
4926
4926
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4927
|
-
|
|
4927
|
+
chunk6R5Z2IQ5_js.FilterTileButton,
|
|
4928
4928
|
{
|
|
4929
4929
|
isActive: selected,
|
|
4930
4930
|
color: tile.color,
|
|
@@ -4942,7 +4942,7 @@ function RuleNewWizardPageView({
|
|
|
4942
4942
|
}
|
|
4943
4943
|
),
|
|
4944
4944
|
selectedTile && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4945
|
-
|
|
4945
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
4946
4946
|
{
|
|
4947
4947
|
variant: "glass",
|
|
4948
4948
|
header: {
|
|
@@ -4950,7 +4950,7 @@ function RuleNewWizardPageView({
|
|
|
4950
4950
|
subtitle: labels.actionConfigSubtitle
|
|
4951
4951
|
},
|
|
4952
4952
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4953
|
-
|
|
4953
|
+
chunkY4YIGEX6_js.RuleActionBuilder,
|
|
4954
4954
|
{
|
|
4955
4955
|
value: action,
|
|
4956
4956
|
onChange: (next) => {
|
|
@@ -4967,7 +4967,7 @@ function RuleNewWizardPageView({
|
|
|
4967
4967
|
}
|
|
4968
4968
|
function renderStep4() {
|
|
4969
4969
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-4", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4970
|
-
|
|
4970
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
4971
4971
|
{
|
|
4972
4972
|
variant: "glass",
|
|
4973
4973
|
header: {
|
|
@@ -4975,12 +4975,12 @@ function RuleNewWizardPageView({
|
|
|
4975
4975
|
subtitle: labels.scheduleSectionSubtitle
|
|
4976
4976
|
},
|
|
4977
4977
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-5", children: [
|
|
4978
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4978
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk6R5Z2IQ5_js.FormGrid, { children: [
|
|
4979
4979
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
4980
4980
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "block text-xs font-semibold uppercase tracking-wider text-slate-600 dark:text-slate-400", children: labels.validFromLabel }),
|
|
4981
4981
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
4982
4982
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4983
|
-
|
|
4983
|
+
chunk6R5Z2IQ5_js.DatePicker,
|
|
4984
4984
|
{
|
|
4985
4985
|
value: validFromDate,
|
|
4986
4986
|
onChange: (d) => {
|
|
@@ -4991,7 +4991,7 @@ function RuleNewWizardPageView({
|
|
|
4991
4991
|
}
|
|
4992
4992
|
),
|
|
4993
4993
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4994
|
-
|
|
4994
|
+
chunk6R5Z2IQ5_js.TimePicker,
|
|
4995
4995
|
{
|
|
4996
4996
|
value: validFromTime,
|
|
4997
4997
|
onChange: (t) => {
|
|
@@ -5007,7 +5007,7 @@ function RuleNewWizardPageView({
|
|
|
5007
5007
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "block text-xs font-semibold uppercase tracking-wider text-slate-600 dark:text-slate-400", children: labels.validUntilLabel }),
|
|
5008
5008
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
5009
5009
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5010
|
-
|
|
5010
|
+
chunk6R5Z2IQ5_js.DatePicker,
|
|
5011
5011
|
{
|
|
5012
5012
|
value: validUntilDate,
|
|
5013
5013
|
onChange: (d) => {
|
|
@@ -5018,7 +5018,7 @@ function RuleNewWizardPageView({
|
|
|
5018
5018
|
}
|
|
5019
5019
|
),
|
|
5020
5020
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5021
|
-
|
|
5021
|
+
chunk6R5Z2IQ5_js.TimePicker,
|
|
5022
5022
|
{
|
|
5023
5023
|
value: validUntilTime,
|
|
5024
5024
|
onChange: (t) => {
|
|
@@ -5032,7 +5032,7 @@ function RuleNewWizardPageView({
|
|
|
5032
5032
|
] })
|
|
5033
5033
|
] }),
|
|
5034
5034
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5035
|
-
|
|
5035
|
+
chunk6R5Z2IQ5_js.FormCheckbox,
|
|
5036
5036
|
{
|
|
5037
5037
|
checked: noExpiry,
|
|
5038
5038
|
onChange: (v) => {
|
|
@@ -5046,7 +5046,7 @@ function RuleNewWizardPageView({
|
|
|
5046
5046
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
5047
5047
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "mb-2 block text-xs font-semibold uppercase tracking-wider text-slate-600 dark:text-slate-400", children: labels.statusLabel }),
|
|
5048
5048
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5049
|
-
|
|
5049
|
+
chunk6R5Z2IQ5_js.SegmentedControl,
|
|
5050
5050
|
{
|
|
5051
5051
|
segments: [
|
|
5052
5052
|
{ value: "active", label: labels.statusActive },
|
|
@@ -5065,7 +5065,7 @@ function RuleNewWizardPageView({
|
|
|
5065
5065
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
5066
5066
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "block text-xs font-semibold uppercase tracking-wider text-slate-600 dark:text-slate-400", children: labels.tagsLabel }),
|
|
5067
5067
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5068
|
-
|
|
5068
|
+
chunk6R5Z2IQ5_js.ChipPicker,
|
|
5069
5069
|
{
|
|
5070
5070
|
items: tagsItems,
|
|
5071
5071
|
selectedIds: tagsSelected,
|
|
@@ -5089,7 +5089,7 @@ function RuleNewWizardPageView({
|
|
|
5089
5089
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
5090
5090
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "mb-2 block text-xs font-semibold uppercase tracking-wider text-slate-600 dark:text-slate-400", children: labels.recurrenceLabel }),
|
|
5091
5091
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5092
|
-
|
|
5092
|
+
chunk6R5Z2IQ5_js.SegmentedControl,
|
|
5093
5093
|
{
|
|
5094
5094
|
segments: [
|
|
5095
5095
|
{ value: "one-off", label: labels.recurrenceOneOff },
|
|
@@ -5106,7 +5106,7 @@ function RuleNewWizardPageView({
|
|
|
5106
5106
|
)
|
|
5107
5107
|
] }),
|
|
5108
5108
|
recurrence === "cron" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5109
|
-
|
|
5109
|
+
chunk6R5Z2IQ5_js.FormInput,
|
|
5110
5110
|
{
|
|
5111
5111
|
label: labels.cronExpressionLabel,
|
|
5112
5112
|
value: cronExpression,
|
|
@@ -5122,7 +5122,7 @@ function RuleNewWizardPageView({
|
|
|
5122
5122
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
5123
5123
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "mb-2 block text-xs font-semibold uppercase tracking-wider text-slate-600 dark:text-slate-400", children: labels.weekdaysLabel }),
|
|
5124
5124
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5125
|
-
|
|
5125
|
+
chunk6R5Z2IQ5_js.ChipPicker,
|
|
5126
5126
|
{
|
|
5127
5127
|
items: WEEKDAYS.map((d) => ({
|
|
5128
5128
|
id: d.id,
|
|
@@ -5144,7 +5144,7 @@ function RuleNewWizardPageView({
|
|
|
5144
5144
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
5145
5145
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "mb-2 block text-xs font-semibold uppercase tracking-wider text-slate-600 dark:text-slate-400", children: labels.timeOfDayLabel }),
|
|
5146
5146
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5147
|
-
|
|
5147
|
+
chunk6R5Z2IQ5_js.TimePicker,
|
|
5148
5148
|
{
|
|
5149
5149
|
value: recurringTime,
|
|
5150
5150
|
onChange: (t) => {
|
|
@@ -5166,7 +5166,7 @@ function RuleNewWizardPageView({
|
|
|
5166
5166
|
const actionSentence = humanReadableAction(payload.action, labels, ACTION_TILES, actionTileId);
|
|
5167
5167
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
5168
5168
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5169
|
-
|
|
5169
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
5170
5170
|
{
|
|
5171
5171
|
variant: "glass",
|
|
5172
5172
|
header: {
|
|
@@ -5192,7 +5192,7 @@ function RuleNewWizardPageView({
|
|
|
5192
5192
|
}
|
|
5193
5193
|
),
|
|
5194
5194
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5195
|
-
|
|
5195
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
5196
5196
|
{
|
|
5197
5197
|
variant: "glass",
|
|
5198
5198
|
header: {
|
|
@@ -5211,7 +5211,7 @@ function RuleNewWizardPageView({
|
|
|
5211
5211
|
}
|
|
5212
5212
|
),
|
|
5213
5213
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5214
|
-
|
|
5214
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
5215
5215
|
{
|
|
5216
5216
|
variant: "glass",
|
|
5217
5217
|
header: {
|
|
@@ -5229,7 +5229,7 @@ function RuleNewWizardPageView({
|
|
|
5229
5229
|
}
|
|
5230
5230
|
),
|
|
5231
5231
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5232
|
-
|
|
5232
|
+
chunk6R5Z2IQ5_js.SectionCard,
|
|
5233
5233
|
{
|
|
5234
5234
|
variant: "glass",
|
|
5235
5235
|
header: {
|
|
@@ -5363,31 +5363,31 @@ function humanReadableAction(action, labels, tiles, actionTileId) {
|
|
|
5363
5363
|
|
|
5364
5364
|
Object.defineProperty(exports, "RolesPageView", {
|
|
5365
5365
|
enumerable: true,
|
|
5366
|
-
get: function () { return
|
|
5366
|
+
get: function () { return chunkGDVB7QDZ_js.RolesPageView; }
|
|
5367
5367
|
});
|
|
5368
5368
|
Object.defineProperty(exports, "UsersPageView", {
|
|
5369
5369
|
enumerable: true,
|
|
5370
|
-
get: function () { return
|
|
5370
|
+
get: function () { return chunkGDVB7QDZ_js.UsersPageView; }
|
|
5371
5371
|
});
|
|
5372
5372
|
Object.defineProperty(exports, "DIALECT_CATEGORIES", {
|
|
5373
5373
|
enumerable: true,
|
|
5374
|
-
get: function () { return
|
|
5374
|
+
get: function () { return chunkTXI3QDYE_js.DIALECT_CATEGORIES; }
|
|
5375
5375
|
});
|
|
5376
5376
|
Object.defineProperty(exports, "DatasourceFormModal", {
|
|
5377
5377
|
enumerable: true,
|
|
5378
|
-
get: function () { return
|
|
5378
|
+
get: function () { return chunkTXI3QDYE_js.DatasourceFormModal; }
|
|
5379
5379
|
});
|
|
5380
5380
|
Object.defineProperty(exports, "DatasourceModal", {
|
|
5381
5381
|
enumerable: true,
|
|
5382
|
-
get: function () { return
|
|
5382
|
+
get: function () { return chunkTXI3QDYE_js.DatasourceModal; }
|
|
5383
5383
|
});
|
|
5384
5384
|
Object.defineProperty(exports, "findCategory", {
|
|
5385
5385
|
enumerable: true,
|
|
5386
|
-
get: function () { return
|
|
5386
|
+
get: function () { return chunkTXI3QDYE_js.findCategory; }
|
|
5387
5387
|
});
|
|
5388
5388
|
Object.defineProperty(exports, "findDialect", {
|
|
5389
5389
|
enumerable: true,
|
|
5390
|
-
get: function () { return
|
|
5390
|
+
get: function () { return chunkTXI3QDYE_js.findDialect; }
|
|
5391
5391
|
});
|
|
5392
5392
|
exports.AgentNewWizardPageView = AgentNewWizardPageView;
|
|
5393
5393
|
exports.AgentsConfigPageView = AgentsConfigPageView;
|