@datatechsolutions/ui 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/astrlabe/contracts.d.mts +517 -0
- package/dist/astrlabe/contracts.d.ts +517 -0
- package/dist/astrlabe/graph-node.d.mts +28 -0
- package/dist/astrlabe/graph-node.d.ts +28 -0
- package/dist/astrlabe/index.d.mts +743 -0
- package/dist/astrlabe/index.d.ts +743 -0
- package/dist/astrlabe/index.js +108 -108
- package/dist/astrlabe/index.mjs +4 -4
- package/dist/astrlabe/utils.d.mts +60 -0
- package/dist/astrlabe/utils.d.ts +60 -0
- package/dist/astrlabe/workflow-canvas.d.mts +6 -0
- package/dist/astrlabe/workflow-canvas.d.ts +6 -0
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/astrlabe/workflow-preview-canvas.d.mts +10 -0
- package/dist/astrlabe/workflow-preview-canvas.d.ts +10 -0
- package/dist/billing-panel-DsHhhJqG.d.mts +18 -0
- package/dist/billing-panel-DsHhhJqG.d.ts +18 -0
- package/dist/brand/index.d.mts +71 -0
- package/dist/brand/index.d.ts +71 -0
- package/dist/{chunk-UHMAKUON.mjs → chunk-2TBNOQ7M.mjs} +3 -3
- package/dist/{chunk-UHMAKUON.mjs.map → chunk-2TBNOQ7M.mjs.map} +1 -1
- package/dist/{chunk-CY2MBKVG.js → chunk-2UMDWOUY.js} +4 -4
- package/dist/{chunk-CY2MBKVG.js.map → chunk-2UMDWOUY.js.map} +1 -1
- package/dist/{chunk-6V3DUBOZ.mjs → chunk-37ZLBCJF.mjs} +7 -7
- package/dist/{chunk-6V3DUBOZ.mjs.map → chunk-37ZLBCJF.mjs.map} +1 -1
- package/dist/{chunk-NCDBNGIB.js → chunk-5AVO5DJO.js} +62 -62
- package/dist/{chunk-NCDBNGIB.js.map → chunk-5AVO5DJO.js.map} +1 -1
- package/dist/{chunk-QPSHM2JQ.mjs → chunk-7OZ4MVEF.mjs} +4 -4
- package/dist/{chunk-QPSHM2JQ.mjs.map → chunk-7OZ4MVEF.mjs.map} +1 -1
- package/dist/{chunk-3OLYSMI5.mjs → chunk-CDYNTHUE.mjs} +4 -4
- package/dist/{chunk-3OLYSMI5.mjs.map → chunk-CDYNTHUE.mjs.map} +1 -1
- package/dist/{chunk-IOEQ2GET.mjs → chunk-CJGNEALB.mjs} +4 -4
- package/dist/{chunk-IOEQ2GET.mjs.map → chunk-CJGNEALB.mjs.map} +1 -1
- package/dist/{chunk-NJ5RVWLA.mjs → chunk-CP5QXRXA.mjs} +4 -4
- package/dist/{chunk-NJ5RVWLA.mjs.map → chunk-CP5QXRXA.mjs.map} +1 -1
- package/dist/{chunk-2MJAHST4.mjs → chunk-EGXB3WXT.mjs} +4 -4
- package/dist/{chunk-2MJAHST4.mjs.map → chunk-EGXB3WXT.mjs.map} +1 -1
- package/dist/{chunk-NKXQYFS7.js → chunk-EI6FIA45.js} +16 -16
- package/dist/{chunk-NKXQYFS7.js.map → chunk-EI6FIA45.js.map} +1 -1
- package/dist/{chunk-NOHHZ6FM.mjs → chunk-EUXHJMGC.mjs} +3 -3
- package/dist/{chunk-NOHHZ6FM.mjs.map → chunk-EUXHJMGC.mjs.map} +1 -1
- package/dist/{chunk-QSMPKL27.js → chunk-F5UDX6JA.js} +74 -74
- package/dist/{chunk-QSMPKL27.js.map → chunk-F5UDX6JA.js.map} +1 -1
- package/dist/{chunk-P43PX75J.js → chunk-HVDDCBQ2.js} +33 -33
- package/dist/{chunk-P43PX75J.js.map → chunk-HVDDCBQ2.js.map} +1 -1
- package/dist/{chunk-AWDH6WNA.js → chunk-K4M4B6ME.js} +3 -3
- package/dist/{chunk-AWDH6WNA.js.map → chunk-K4M4B6ME.js.map} +1 -1
- package/dist/{chunk-VMGNQFRO.js → chunk-KIBOX3UQ.js} +53 -53
- package/dist/{chunk-VMGNQFRO.js.map → chunk-KIBOX3UQ.js.map} +1 -1
- package/dist/{chunk-5I7F7KZ6.js → chunk-KRPSTXN5.js} +10 -10
- package/dist/{chunk-5I7F7KZ6.js.map → chunk-KRPSTXN5.js.map} +1 -1
- package/dist/{chunk-ZM2Q2SMC.mjs → chunk-L5O4NWQO.mjs} +3 -3
- package/dist/{chunk-ZM2Q2SMC.mjs.map → chunk-L5O4NWQO.mjs.map} +1 -1
- package/dist/{chunk-BVXATTTA.js → chunk-MT4FJRMD.js} +4 -4
- package/dist/{chunk-BVXATTTA.js.map → chunk-MT4FJRMD.js.map} +1 -1
- package/dist/{chunk-C4NRF2G2.js → chunk-OWJIKCR2.js} +13 -13
- package/dist/{chunk-C4NRF2G2.js.map → chunk-OWJIKCR2.js.map} +1 -1
- package/dist/{chunk-5BEVTOZV.mjs → chunk-PFHXKWFT.mjs} +4 -4
- package/dist/{chunk-5BEVTOZV.mjs.map → chunk-PFHXKWFT.mjs.map} +1 -1
- package/dist/{chunk-QLFSJ6HK.mjs → chunk-PI2C3S6A.mjs} +3 -3
- package/dist/{chunk-QLFSJ6HK.mjs.map → chunk-PI2C3S6A.mjs.map} +1 -1
- package/dist/{chunk-74MHWEDC.js → chunk-PYQLY2RH.js} +161 -161
- package/dist/{chunk-74MHWEDC.js.map → chunk-PYQLY2RH.js.map} +1 -1
- package/dist/{chunk-Z7VY5M4T.js → chunk-QIUVK4BI.js} +77 -77
- package/dist/{chunk-Z7VY5M4T.js.map → chunk-QIUVK4BI.js.map} +1 -1
- package/dist/{chunk-4PFU6A2B.mjs → chunk-R3Q5RXXO.mjs} +3 -3
- package/dist/{chunk-4PFU6A2B.mjs.map → chunk-R3Q5RXXO.mjs.map} +1 -1
- package/dist/{chunk-7UHV6A4C.mjs → chunk-R6O57NTJ.mjs} +6 -6
- package/dist/{chunk-7UHV6A4C.mjs.map → chunk-R6O57NTJ.mjs.map} +1 -1
- package/dist/{chunk-A7FI4K7Z.js → chunk-RQBTLFYH.js} +5 -5
- package/dist/{chunk-A7FI4K7Z.js.map → chunk-RQBTLFYH.js.map} +1 -1
- package/dist/{chunk-V5VBYOF5.js → chunk-SFFSXC5E.js} +36 -36
- package/dist/{chunk-V5VBYOF5.js.map → chunk-SFFSXC5E.js.map} +1 -1
- package/dist/{chunk-AVM53A3Y.js → chunk-U6XA2OYE.js} +28 -28
- package/dist/{chunk-AVM53A3Y.js.map → chunk-U6XA2OYE.js.map} +1 -1
- package/dist/{chunk-7CEZB3ZD.mjs → chunk-ULEPJXTN.mjs} +3 -3
- package/dist/{chunk-7CEZB3ZD.mjs.map → chunk-ULEPJXTN.mjs.map} +1 -1
- package/dist/{chunk-FK3WDELF.js → chunk-VMIAMBCP.js} +40 -40
- package/dist/{chunk-FK3WDELF.js.map → chunk-VMIAMBCP.js.map} +1 -1
- package/dist/{chunk-OASC7NYV.mjs → chunk-WKCR4KVQ.mjs} +3 -3
- package/dist/{chunk-OASC7NYV.mjs.map → chunk-WKCR4KVQ.mjs.map} +1 -1
- package/dist/{chunk-6W7VTZG6.mjs → chunk-YV2SE5LS.mjs} +3 -3
- package/dist/{chunk-6W7VTZG6.mjs.map → chunk-YV2SE5LS.mjs.map} +1 -1
- package/dist/dynamic-island-confirm-BKsZkAEP.d.mts +17 -0
- package/dist/dynamic-island-confirm-BKsZkAEP.d.ts +17 -0
- package/dist/index-BNRGVAS5.d.mts +222 -0
- package/dist/index-BoebbJ44.d.mts +49 -0
- package/dist/index-BoebbJ44.d.ts +49 -0
- package/dist/index-CnCY-b5V.d.ts +222 -0
- package/dist/index.d.mts +5310 -0
- package/dist/index.d.ts +5310 -0
- package/dist/index.js +721 -721
- package/dist/index.mjs +2 -2
- package/dist/layout-engine-YZcVr20M.d.mts +19 -0
- package/dist/layout-engine-YZcVr20M.d.ts +19 -0
- package/dist/lib/i18n-context.d.mts +36 -0
- package/dist/lib/i18n-context.d.ts +36 -0
- package/dist/lib/router-context.d.mts +35 -0
- package/dist/lib/router-context.d.ts +35 -0
- package/dist/navigation-BiWVffAN.d.mts +49 -0
- package/dist/navigation-BiWVffAN.d.ts +49 -0
- package/dist/platform/admin/index.d.mts +17 -0
- package/dist/platform/admin/index.d.ts +17 -0
- package/dist/platform/admin/index.js +11 -11
- package/dist/platform/admin/index.mjs +5 -5
- package/dist/platform/agents-workspace.d.mts +19 -0
- package/dist/platform/agents-workspace.d.ts +19 -0
- package/dist/platform/agents-workspace.js +7 -7
- package/dist/platform/agents-workspace.mjs +6 -6
- package/dist/platform/app-shell.d.mts +58 -0
- package/dist/platform/app-shell.d.ts +58 -0
- package/dist/platform/app-shell.js +4 -4
- package/dist/platform/app-shell.mjs +3 -3
- package/dist/platform/auth/index.d.mts +73 -0
- package/dist/platform/auth/index.d.ts +73 -0
- package/dist/platform/auth/index.js +28 -28
- package/dist/platform/auth/index.mjs +5 -5
- package/dist/platform/billing/index.d.mts +29 -0
- package/dist/platform/billing/index.d.ts +29 -0
- package/dist/platform/billing/index.js +4 -4
- package/dist/platform/billing/index.mjs +3 -3
- package/dist/platform/impersonation/index.d.mts +19 -0
- package/dist/platform/impersonation/index.d.ts +19 -0
- package/dist/platform/impersonation/index.js +4 -4
- package/dist/platform/impersonation/index.mjs +3 -3
- package/dist/platform/index.d.mts +188 -0
- package/dist/platform/index.d.ts +188 -0
- package/dist/platform/index.js +89 -89
- package/dist/platform/index.mjs +19 -19
- package/dist/platform/pages/index.d.mts +440 -0
- package/dist/platform/pages/index.d.ts +440 -0
- package/dist/platform/pages/index.js +206 -206
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +9 -9
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/rbac.d.mts +42 -0
- package/dist/platform/rbac.d.ts +42 -0
- package/dist/platform/settings/index.d.mts +31 -0
- package/dist/platform/settings/index.d.ts +31 -0
- package/dist/platform/settings/index.js +8 -8
- package/dist/platform/settings/index.mjs +7 -7
- package/dist/platform/telemetry/index.d.mts +51 -0
- package/dist/platform/telemetry/index.d.ts +51 -0
- package/dist/platform/utils/index.d.mts +32 -0
- package/dist/platform/utils/index.d.ts +32 -0
- package/dist/platform/windsock-admin-client.d.mts +57 -0
- package/dist/platform/windsock-admin-client.d.ts +57 -0
- package/dist/platform/workflow-api-client.d.mts +6 -0
- package/dist/platform/workflow-api-client.d.ts +6 -0
- package/dist/platform/workflow-canvas-shell.d.mts +18 -0
- package/dist/platform/workflow-canvas-shell.d.ts +18 -0
- package/dist/platform/workflow-canvas-shell.js +5 -5
- package/dist/platform/workflow-canvas-shell.mjs +4 -4
- package/dist/rule-form-BYJzyork.d.mts +128 -0
- package/dist/rule-form-BYJzyork.d.ts +128 -0
- package/dist/workflow-api-client-CpFl3WcG.d.mts +468 -0
- package/dist/workflow-api-client-uLICOanv.d.ts +468 -0
- package/dist/workflow-canvas--qaYKuMm.d.ts +113 -0
- package/dist/workflow-canvas-B80fmD_n.d.mts +113 -0
- package/dist/workflow-store-o17I6L6A.d.ts +79 -0
- package/dist/workflow-store-ppVHdMZi.d.mts +79 -0
- package/package.json +1 -1
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunk3T2WGL47_js = require('../../chunk-3T2WGL47.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var chunkU6XA2OYE_js = require('../../chunk-U6XA2OYE.js');
|
|
6
|
+
var chunkSFFSXC5E_js = require('../../chunk-SFFSXC5E.js');
|
|
7
|
+
var chunkPYQLY2RH_js = require('../../chunk-PYQLY2RH.js');
|
|
8
8
|
require('../../chunk-55H6WZQP.js');
|
|
9
9
|
require('../../chunk-DJDZIRM6.js');
|
|
10
|
-
require('../../chunk-
|
|
11
|
-
var
|
|
10
|
+
require('../../chunk-F5UDX6JA.js');
|
|
11
|
+
var chunkK4M4B6ME_js = require('../../chunk-K4M4B6ME.js');
|
|
12
12
|
require('../../chunk-UZ3CMNUJ.js');
|
|
13
|
+
require('../../chunk-YXN2K77G.js');
|
|
13
14
|
var chunkS7KHTUHA_js = require('../../chunk-S7KHTUHA.js');
|
|
14
15
|
require('../../chunk-SY4MUT5V.js');
|
|
15
16
|
require('../../chunk-2OZZH2IO.js');
|
|
16
|
-
require('../../chunk-YXN2K77G.js');
|
|
17
17
|
require('../../chunk-P4YYEM4B.js');
|
|
18
18
|
require('../../chunk-72SWXOD5.js');
|
|
19
19
|
var react = require('react');
|
|
@@ -26,7 +26,7 @@ function AgentsModelsPageView({ labels, models, loading }) {
|
|
|
26
26
|
const filteredModels = searchTerm.trim() ? allModels.filter((model) => model.name.toLowerCase().includes(searchTerm.trim().toLowerCase())) : allModels;
|
|
27
27
|
const isEmpty = allModels.length === 0;
|
|
28
28
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
29
|
-
|
|
29
|
+
chunkK4M4B6ME_js.HeroSection,
|
|
30
30
|
{
|
|
31
31
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.CubeTransparentIcon, { className: "h-5 w-5" }),
|
|
32
32
|
label: labels.title,
|
|
@@ -36,32 +36,32 @@ function AgentsModelsPageView({ labels, models, loading }) {
|
|
|
36
36
|
}
|
|
37
37
|
);
|
|
38
38
|
const summary = !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
39
|
-
|
|
39
|
+
chunkK4M4B6ME_js.SearchBar,
|
|
40
40
|
{
|
|
41
41
|
searchTerm,
|
|
42
42
|
onSearchChange: setSearchTerm,
|
|
43
43
|
placeholder: labels.searchPlaceholder ?? labels.title
|
|
44
44
|
}
|
|
45
45
|
) : void 0;
|
|
46
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
47
|
-
|
|
46
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.PageLoadingState, {}) : isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_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(
|
|
47
|
+
chunkK4M4B6ME_js.EntityCard,
|
|
48
48
|
{
|
|
49
49
|
accentGradient: "from-emerald-500 to-teal-700",
|
|
50
50
|
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" }) }),
|
|
51
51
|
title: model.name,
|
|
52
52
|
subtitle: `${labels.provider}: ${model.provider}`,
|
|
53
|
-
status: /* @__PURE__ */ jsxRuntime.jsx(
|
|
53
|
+
status: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Badge, { color: model.enabled ? "emerald" : "zinc", children: model.enabled ? labels.enabled : labels.disabled })
|
|
54
54
|
},
|
|
55
55
|
model.id
|
|
56
56
|
)) });
|
|
57
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
57
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.ManagementPageLayout, { hero, summary, content });
|
|
58
58
|
}
|
|
59
59
|
function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpdate, onDelete }) {
|
|
60
60
|
const [editing, setEditing] = react.useState(null);
|
|
61
61
|
const [createOpen, setCreateOpen] = react.useState(false);
|
|
62
62
|
const modelOptions = models.map((model) => ({ value: model.id, label: `${model.name} (${model.provider})` }));
|
|
63
63
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
64
|
-
|
|
64
|
+
chunkK4M4B6ME_js.HeroSection,
|
|
65
65
|
{
|
|
66
66
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.CpuChipIcon, { className: "h-5 w-5" }),
|
|
67
67
|
label: labels.title,
|
|
@@ -69,7 +69,7 @@ function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpd
|
|
|
69
69
|
subtitle: labels.subtitle,
|
|
70
70
|
gradient: "from-violet-500 to-indigo-700",
|
|
71
71
|
toolbar: /* @__PURE__ */ jsxRuntime.jsx(
|
|
72
|
-
|
|
72
|
+
chunkK4M4B6ME_js.CreateActionButton,
|
|
73
73
|
{
|
|
74
74
|
mode: "desktop",
|
|
75
75
|
label: labels.addAgent,
|
|
@@ -80,7 +80,7 @@ function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpd
|
|
|
80
80
|
}
|
|
81
81
|
);
|
|
82
82
|
const mobileAction = /* @__PURE__ */ jsxRuntime.jsx(
|
|
83
|
-
|
|
83
|
+
chunkK4M4B6ME_js.CreateActionButton,
|
|
84
84
|
{
|
|
85
85
|
mode: "mobile",
|
|
86
86
|
label: labels.addAgent,
|
|
@@ -88,23 +88,23 @@ function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpd
|
|
|
88
88
|
accent: "violet"
|
|
89
89
|
}
|
|
90
90
|
);
|
|
91
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
91
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.PageLoadingState, {}) : agents.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_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: agents.map((agent) => {
|
|
92
92
|
const modelRecord = models.find((model) => model.id === String(agent.modelId ?? ""));
|
|
93
93
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
94
|
-
|
|
94
|
+
chunkK4M4B6ME_js.EntityCard,
|
|
95
95
|
{
|
|
96
96
|
accentGradient: "from-violet-500 to-indigo-700",
|
|
97
97
|
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" }) }),
|
|
98
98
|
title: String(agent.name ?? ""),
|
|
99
99
|
subtitle: String(modelRecord?.name ?? agent.modelId ?? ""),
|
|
100
|
-
status: agent.activePromptVersion > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
100
|
+
status: agent.activePromptVersion > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.Badge, { color: "emerald", children: [
|
|
101
101
|
"v",
|
|
102
102
|
agent.activePromptVersion
|
|
103
103
|
] }) : null,
|
|
104
104
|
footer: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
105
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
105
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Button, { type: "button", size: "sm", outline: true, onClick: () => setEditing(agent), children: labels.edit }),
|
|
106
106
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
107
|
-
|
|
107
|
+
chunkK4M4B6ME_js.Button,
|
|
108
108
|
{
|
|
109
109
|
type: "button",
|
|
110
110
|
size: "sm",
|
|
@@ -128,7 +128,7 @@ function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpd
|
|
|
128
128
|
);
|
|
129
129
|
}) });
|
|
130
130
|
const renderForm = (initial, onSubmit) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
131
|
-
|
|
131
|
+
chunkK4M4B6ME_js.GlassModal,
|
|
132
132
|
{
|
|
133
133
|
open: true,
|
|
134
134
|
onClose: () => {
|
|
@@ -151,18 +151,18 @@ function AgentsConfigPageView({ labels, agents, models, loading, onCreate, onUpd
|
|
|
151
151
|
outputSchema: String(form.get("outputSchema") ?? "").trim() || void 0
|
|
152
152
|
});
|
|
153
153
|
},
|
|
154
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
155
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
156
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
157
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
158
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
159
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
160
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
154
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.FormGrid, { children: [
|
|
155
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormInput, { name: "name", label: labels.name, defaultValue: initial.name ?? "", required: true }),
|
|
156
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormSelect, { name: "modelId", label: labels.model, options: modelOptions, defaultValue: initial.modelId ?? modelOptions[0]?.value ?? "", required: true }),
|
|
157
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormInput, { name: "maxTokens", label: String(labels.maxTokens), type: "number", defaultValue: String(initial.maxTokens ?? 2048) }),
|
|
158
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormInput, { name: "temperature", label: labels.temperature, type: "number", step: 0.1, min: 0, max: 2, defaultValue: String(initial.temperature ?? 0.2) }),
|
|
159
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormTextarea, { name: "systemPrompt", label: labels.systemPrompt, defaultValue: initial.systemPrompt ?? "", rows: 4 }),
|
|
160
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormTextarea, { name: "outputSchema", label: labels.outputSchema, placeholder: labels.outputSchemaPlaceholder, defaultValue: initial.outputSchema ?? "", rows: 4 })
|
|
161
161
|
] })
|
|
162
162
|
}
|
|
163
163
|
);
|
|
164
164
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
165
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
165
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.ManagementPageLayout, { hero, content, mobileAction }),
|
|
166
166
|
createOpen && renderForm({ title: labels.createTitle }, (input) => {
|
|
167
167
|
onCreate(input);
|
|
168
168
|
setCreateOpen(false);
|
|
@@ -212,7 +212,7 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
212
212
|
return map;
|
|
213
213
|
}, [agents]);
|
|
214
214
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
215
|
-
|
|
215
|
+
chunkK4M4B6ME_js.HeroSection,
|
|
216
216
|
{
|
|
217
217
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.ChatBubbleLeftEllipsisIcon, { className: "h-5 w-5" }),
|
|
218
218
|
label: labels.title,
|
|
@@ -220,7 +220,7 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
220
220
|
subtitle: labels.subtitle,
|
|
221
221
|
gradient: "from-sky-500 to-blue-700",
|
|
222
222
|
toolbar: /* @__PURE__ */ jsxRuntime.jsx(
|
|
223
|
-
|
|
223
|
+
chunkK4M4B6ME_js.CreateActionButton,
|
|
224
224
|
{
|
|
225
225
|
mode: "desktop",
|
|
226
226
|
label: labels.addPrompt,
|
|
@@ -231,7 +231,7 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
233
|
const mobileAction = /* @__PURE__ */ jsxRuntime.jsx(
|
|
234
|
-
|
|
234
|
+
chunkK4M4B6ME_js.CreateActionButton,
|
|
235
235
|
{
|
|
236
236
|
mode: "mobile",
|
|
237
237
|
label: labels.addPrompt,
|
|
@@ -248,28 +248,28 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
248
248
|
}) : allPrompts;
|
|
249
249
|
const isEmpty = allPrompts.length === 0;
|
|
250
250
|
const summary = !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
251
|
-
|
|
251
|
+
chunkK4M4B6ME_js.SearchBar,
|
|
252
252
|
{
|
|
253
253
|
searchTerm,
|
|
254
254
|
onSearchChange: setSearchTerm,
|
|
255
255
|
placeholder: labels.searchPlaceholder ?? labels.title
|
|
256
256
|
}
|
|
257
257
|
) : void 0;
|
|
258
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
258
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.PageLoadingState, {}) : isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_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: filteredPrompts.map((prompt) => {
|
|
259
259
|
const agentName = agentNameById.get(prompt.agentId) ?? prompt.agentId;
|
|
260
260
|
const key = `${prompt.agentId}:${prompt.locale}:${prompt.version}`;
|
|
261
261
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
262
|
-
|
|
262
|
+
chunkK4M4B6ME_js.EntityCard,
|
|
263
263
|
{
|
|
264
264
|
accentGradient: "from-sky-500 to-blue-700",
|
|
265
265
|
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" }) }),
|
|
266
266
|
title: agentName,
|
|
267
267
|
subtitle: `${prompt.locale} \xB7 v${prompt.version}`,
|
|
268
|
-
status: prompt.isActive ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
268
|
+
status: prompt.isActive ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Badge, { color: "emerald", children: labels.isActive }) : null,
|
|
269
269
|
footer: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
270
|
-
!prompt.isActive && /* @__PURE__ */ jsxRuntime.jsx(
|
|
270
|
+
!prompt.isActive && /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Button, { type: "button", size: "sm", outline: true, onClick: () => onActivate(prompt), children: labels.activate }),
|
|
271
271
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
272
|
-
|
|
272
|
+
chunkK4M4B6ME_js.Button,
|
|
273
273
|
{
|
|
274
274
|
type: "button",
|
|
275
275
|
size: "sm",
|
|
@@ -287,9 +287,9 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
287
287
|
);
|
|
288
288
|
}) });
|
|
289
289
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
290
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
290
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.ManagementPageLayout, { hero, summary, content, mobileAction }),
|
|
291
291
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
292
|
-
|
|
292
|
+
chunkK4M4B6ME_js.GlassModal,
|
|
293
293
|
{
|
|
294
294
|
open: createOpen,
|
|
295
295
|
onClose: () => setCreateOpen(false),
|
|
@@ -313,11 +313,11 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
313
313
|
});
|
|
314
314
|
setCreateOpen(false);
|
|
315
315
|
},
|
|
316
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
317
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
318
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
316
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.FormGrid, { children: [
|
|
317
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormSelect, { name: "agentId", label: labels.agent, options: agentOptions, required: true }),
|
|
318
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormSelect, { name: "locale", label: labels.locale, options: LOCALE_OPTIONS, defaultValue: "en" }),
|
|
319
319
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
320
|
-
|
|
320
|
+
chunkK4M4B6ME_js.FormSelect,
|
|
321
321
|
{
|
|
322
322
|
name: "isActive",
|
|
323
323
|
label: labels.isActive,
|
|
@@ -325,10 +325,10 @@ function AgentsPromptsPageView({ labels, agents, prompts, loading, onCreate, onA
|
|
|
325
325
|
defaultValue: "true"
|
|
326
326
|
}
|
|
327
327
|
),
|
|
328
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
329
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
330
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
331
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
328
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormInput, { name: "reason", label: labels.reason }),
|
|
329
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormTextarea, { name: "systemPrompt", label: labels.systemPrompt, rows: 3 }),
|
|
330
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormTextarea, { name: "userTemplate", label: labels.userTemplate, rows: 3 }),
|
|
331
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormTextarea, { name: "prompt", label: labels.prompt, rows: 6, required: true })
|
|
332
332
|
] })
|
|
333
333
|
}
|
|
334
334
|
)
|
|
@@ -363,7 +363,7 @@ function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpd
|
|
|
363
363
|
const filteredTools = searchTerm.trim() ? allTools.filter((tool) => tool.name.toLowerCase().includes(searchTerm.trim().toLowerCase())) : allTools;
|
|
364
364
|
const isEmpty = allTools.length === 0;
|
|
365
365
|
const summary = !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
366
|
-
|
|
366
|
+
chunkK4M4B6ME_js.SearchBar,
|
|
367
367
|
{
|
|
368
368
|
searchTerm,
|
|
369
369
|
onSearchChange: setSearchTerm,
|
|
@@ -371,7 +371,7 @@ function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpd
|
|
|
371
371
|
}
|
|
372
372
|
) : void 0;
|
|
373
373
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
374
|
-
|
|
374
|
+
chunkK4M4B6ME_js.HeroSection,
|
|
375
375
|
{
|
|
376
376
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.WrenchScrewdriverIcon, { className: "h-5 w-5" }),
|
|
377
377
|
label: labels.title,
|
|
@@ -379,7 +379,7 @@ function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpd
|
|
|
379
379
|
subtitle: labels.subtitle,
|
|
380
380
|
gradient: "from-amber-500 to-orange-700",
|
|
381
381
|
toolbar: /* @__PURE__ */ jsxRuntime.jsx(
|
|
382
|
-
|
|
382
|
+
chunkK4M4B6ME_js.CreateActionButton,
|
|
383
383
|
{
|
|
384
384
|
mode: "desktop",
|
|
385
385
|
label: labels.addTool,
|
|
@@ -390,7 +390,7 @@ function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpd
|
|
|
390
390
|
}
|
|
391
391
|
);
|
|
392
392
|
const mobileAction = /* @__PURE__ */ jsxRuntime.jsx(
|
|
393
|
-
|
|
393
|
+
chunkK4M4B6ME_js.CreateActionButton,
|
|
394
394
|
{
|
|
395
395
|
mode: "mobile",
|
|
396
396
|
label: labels.addTool,
|
|
@@ -398,18 +398,18 @@ function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpd
|
|
|
398
398
|
accent: "amber"
|
|
399
399
|
}
|
|
400
400
|
);
|
|
401
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
402
|
-
|
|
401
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.PageLoadingState, {}) : isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_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: filteredTools.map((tool) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
402
|
+
chunkK4M4B6ME_js.EntityCard,
|
|
403
403
|
{
|
|
404
404
|
accentGradient: "from-amber-500 to-orange-700",
|
|
405
405
|
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" }) }),
|
|
406
406
|
title: tool.name,
|
|
407
407
|
subtitle: toolTypeLabel(tool),
|
|
408
|
-
status: /* @__PURE__ */ jsxRuntime.jsx(
|
|
408
|
+
status: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Badge, { color: tool.enabled ? "emerald" : "zinc", children: tool.enabled ? labels.enabled : labels.disabled }),
|
|
409
409
|
footer: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
410
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
410
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Button, { type: "button", size: "sm", outline: true, onClick: () => setEditing(tool), children: labels.edit }),
|
|
411
411
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
412
|
-
|
|
412
|
+
chunkK4M4B6ME_js.Button,
|
|
413
413
|
{
|
|
414
414
|
type: "button",
|
|
415
415
|
size: "sm",
|
|
@@ -426,7 +426,7 @@ function AgentsToolDefinitionsPageView({ labels, tools, loading, onCreate, onUpd
|
|
|
426
426
|
tool.agentToolId
|
|
427
427
|
)) });
|
|
428
428
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
429
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
429
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.ManagementPageLayout, { hero, summary, content, mobileAction }),
|
|
430
430
|
createOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
431
431
|
ToolEditor,
|
|
432
432
|
{
|
|
@@ -484,7 +484,7 @@ function ToolEditor({
|
|
|
484
484
|
setValue((v) => ({ ...v, [key]: next }));
|
|
485
485
|
};
|
|
486
486
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
487
|
-
|
|
487
|
+
chunkK4M4B6ME_js.GlassModal,
|
|
488
488
|
{
|
|
489
489
|
open: true,
|
|
490
490
|
onClose,
|
|
@@ -497,9 +497,9 @@ function ToolEditor({
|
|
|
497
497
|
handleSubmit();
|
|
498
498
|
},
|
|
499
499
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-5", children: [
|
|
500
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
500
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.FormGrid, { children: [
|
|
501
501
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
502
|
-
|
|
502
|
+
chunkK4M4B6ME_js.FormInput,
|
|
503
503
|
{
|
|
504
504
|
label: "Name",
|
|
505
505
|
required: true,
|
|
@@ -509,7 +509,7 @@ function ToolEditor({
|
|
|
509
509
|
}
|
|
510
510
|
),
|
|
511
511
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
512
|
-
|
|
512
|
+
chunkK4M4B6ME_js.FormSelect,
|
|
513
513
|
{
|
|
514
514
|
label: "Tool type",
|
|
515
515
|
value: value.toolType,
|
|
@@ -519,7 +519,7 @@ function ToolEditor({
|
|
|
519
519
|
}
|
|
520
520
|
),
|
|
521
521
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
522
|
-
|
|
522
|
+
chunkK4M4B6ME_js.FormSelect,
|
|
523
523
|
{
|
|
524
524
|
label: "Enabled",
|
|
525
525
|
value: value.enabled ? "true" : "false",
|
|
@@ -528,7 +528,7 @@ function ToolEditor({
|
|
|
528
528
|
}
|
|
529
529
|
),
|
|
530
530
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
531
|
-
|
|
531
|
+
chunkK4M4B6ME_js.FormInput,
|
|
532
532
|
{
|
|
533
533
|
label: "Icon (optional)",
|
|
534
534
|
value: value.icon ?? "",
|
|
@@ -538,7 +538,7 @@ function ToolEditor({
|
|
|
538
538
|
)
|
|
539
539
|
] }),
|
|
540
540
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
541
|
-
|
|
541
|
+
chunkK4M4B6ME_js.FormTextarea,
|
|
542
542
|
{
|
|
543
543
|
label: "Description",
|
|
544
544
|
rows: 2,
|
|
@@ -586,7 +586,7 @@ function ParametersEditor({
|
|
|
586
586
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
587
587
|
parameters.map((param, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-[1fr_160px_1fr_110px_auto] items-end gap-2", children: [
|
|
588
588
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
589
|
-
|
|
589
|
+
chunkK4M4B6ME_js.FormInput,
|
|
590
590
|
{
|
|
591
591
|
label: "Name",
|
|
592
592
|
value: param.name,
|
|
@@ -595,7 +595,7 @@ function ParametersEditor({
|
|
|
595
595
|
}
|
|
596
596
|
),
|
|
597
597
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
598
|
-
|
|
598
|
+
chunkK4M4B6ME_js.FormSelect,
|
|
599
599
|
{
|
|
600
600
|
label: "Type",
|
|
601
601
|
value: param.type,
|
|
@@ -604,7 +604,7 @@ function ParametersEditor({
|
|
|
604
604
|
}
|
|
605
605
|
),
|
|
606
606
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
607
|
-
|
|
607
|
+
chunkK4M4B6ME_js.FormInput,
|
|
608
608
|
{
|
|
609
609
|
label: "Description",
|
|
610
610
|
value: param.description,
|
|
@@ -623,9 +623,9 @@ function ParametersEditor({
|
|
|
623
623
|
),
|
|
624
624
|
"Required"
|
|
625
625
|
] }),
|
|
626
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
626
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Button, { type: "button", plain: true, onClick: () => remove(index), children: "Remove" })
|
|
627
627
|
] }, index)),
|
|
628
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
628
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Button, { type: "button", outline: true, onClick: add, children: "+ Add parameter" })
|
|
629
629
|
] })
|
|
630
630
|
] });
|
|
631
631
|
}
|
|
@@ -638,9 +638,9 @@ function HandlerConfigEditor({
|
|
|
638
638
|
if (toolType === "http") {
|
|
639
639
|
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: [
|
|
640
640
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 text-sm font-semibold text-slate-700 dark:text-slate-200", children: "HTTP handler" }),
|
|
641
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
641
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.FormGrid, { children: [
|
|
642
642
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
643
|
-
|
|
643
|
+
chunkK4M4B6ME_js.FormSelect,
|
|
644
644
|
{
|
|
645
645
|
label: "Method",
|
|
646
646
|
value: stringProp(config, "method", "GET"),
|
|
@@ -649,7 +649,7 @@ function HandlerConfigEditor({
|
|
|
649
649
|
}
|
|
650
650
|
),
|
|
651
651
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
652
|
-
|
|
652
|
+
chunkK4M4B6ME_js.FormInput,
|
|
653
653
|
{
|
|
654
654
|
label: "URL template",
|
|
655
655
|
value: stringProp(config, "url"),
|
|
@@ -659,7 +659,7 @@ function HandlerConfigEditor({
|
|
|
659
659
|
)
|
|
660
660
|
] }),
|
|
661
661
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
662
|
-
|
|
662
|
+
chunkK4M4B6ME_js.FormTextarea,
|
|
663
663
|
{
|
|
664
664
|
label: "Headers (JSON)",
|
|
665
665
|
rows: 3,
|
|
@@ -669,7 +669,7 @@ function HandlerConfigEditor({
|
|
|
669
669
|
}
|
|
670
670
|
),
|
|
671
671
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
672
|
-
|
|
672
|
+
chunkK4M4B6ME_js.FormTextarea,
|
|
673
673
|
{
|
|
674
674
|
label: "Body template",
|
|
675
675
|
rows: 3,
|
|
@@ -684,7 +684,7 @@ function HandlerConfigEditor({
|
|
|
684
684
|
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: [
|
|
685
685
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 text-sm font-semibold text-slate-700 dark:text-slate-200", children: "Function handler" }),
|
|
686
686
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
687
|
-
|
|
687
|
+
chunkK4M4B6ME_js.FormInput,
|
|
688
688
|
{
|
|
689
689
|
label: "Implementation key",
|
|
690
690
|
value: stringProp(config, "implementationKey"),
|
|
@@ -698,9 +698,9 @@ function HandlerConfigEditor({
|
|
|
698
698
|
if (toolType === "database_query") {
|
|
699
699
|
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: [
|
|
700
700
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 text-sm font-semibold text-slate-700 dark:text-slate-200", children: "Database query handler" }),
|
|
701
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
701
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.FormGrid, { children: [
|
|
702
702
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
703
|
-
|
|
703
|
+
chunkK4M4B6ME_js.FormInput,
|
|
704
704
|
{
|
|
705
705
|
label: "Datasource ID",
|
|
706
706
|
value: stringProp(config, "datasourceId"),
|
|
@@ -709,7 +709,7 @@ function HandlerConfigEditor({
|
|
|
709
709
|
}
|
|
710
710
|
),
|
|
711
711
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
712
|
-
|
|
712
|
+
chunkK4M4B6ME_js.FormInput,
|
|
713
713
|
{
|
|
714
714
|
label: "Max rows",
|
|
715
715
|
type: "number",
|
|
@@ -719,7 +719,7 @@ function HandlerConfigEditor({
|
|
|
719
719
|
)
|
|
720
720
|
] }),
|
|
721
721
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
722
|
-
|
|
722
|
+
chunkK4M4B6ME_js.FormTextarea,
|
|
723
723
|
{
|
|
724
724
|
label: "Query template",
|
|
725
725
|
rows: 4,
|
|
@@ -735,7 +735,7 @@ function HandlerConfigEditor({
|
|
|
735
735
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 text-sm font-semibold text-slate-700 dark:text-slate-200", children: "Code execution handler" }),
|
|
736
736
|
/* @__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." }),
|
|
737
737
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
738
|
-
|
|
738
|
+
chunkK4M4B6ME_js.FormSelect,
|
|
739
739
|
{
|
|
740
740
|
label: "Language",
|
|
741
741
|
value: stringProp(config, "language", "javascript"),
|
|
@@ -747,7 +747,7 @@ function HandlerConfigEditor({
|
|
|
747
747
|
}
|
|
748
748
|
),
|
|
749
749
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
750
|
-
|
|
750
|
+
chunkK4M4B6ME_js.FormTextarea,
|
|
751
751
|
{
|
|
752
752
|
label: "Code",
|
|
753
753
|
rows: 6,
|
|
@@ -760,9 +760,9 @@ function HandlerConfigEditor({
|
|
|
760
760
|
}
|
|
761
761
|
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: [
|
|
762
762
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 text-sm font-semibold text-slate-700 dark:text-slate-200", children: "API call handler" }),
|
|
763
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
763
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.FormGrid, { children: [
|
|
764
764
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
765
|
-
|
|
765
|
+
chunkK4M4B6ME_js.FormInput,
|
|
766
766
|
{
|
|
767
767
|
label: "URL",
|
|
768
768
|
value: stringProp(config, "url"),
|
|
@@ -770,7 +770,7 @@ function HandlerConfigEditor({
|
|
|
770
770
|
}
|
|
771
771
|
),
|
|
772
772
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
773
|
-
|
|
773
|
+
chunkK4M4B6ME_js.FormSelect,
|
|
774
774
|
{
|
|
775
775
|
label: "Auth",
|
|
776
776
|
value: stringProp(config, "authType", "bearer"),
|
|
@@ -784,7 +784,7 @@ function HandlerConfigEditor({
|
|
|
784
784
|
}
|
|
785
785
|
),
|
|
786
786
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
787
|
-
|
|
787
|
+
chunkK4M4B6ME_js.FormInput,
|
|
788
788
|
{
|
|
789
789
|
label: "Credential secret id",
|
|
790
790
|
value: stringProp(config, "credentialRef"),
|
|
@@ -917,7 +917,7 @@ function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete })
|
|
|
917
917
|
const filteredRules = searchTerm.trim() ? allRules.filter((rule) => (rule.name ?? "").toLowerCase().includes(searchTerm.trim().toLowerCase())) : allRules;
|
|
918
918
|
const isEmpty = allRules.length === 0;
|
|
919
919
|
const summary = !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
920
|
-
|
|
920
|
+
chunkK4M4B6ME_js.SearchBar,
|
|
921
921
|
{
|
|
922
922
|
searchTerm,
|
|
923
923
|
onSearchChange: setSearchTerm,
|
|
@@ -925,7 +925,7 @@ function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete })
|
|
|
925
925
|
}
|
|
926
926
|
) : void 0;
|
|
927
927
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
928
|
-
|
|
928
|
+
chunkK4M4B6ME_js.HeroSection,
|
|
929
929
|
{
|
|
930
930
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.AdjustmentsHorizontalIcon, { className: "h-5 w-5" }),
|
|
931
931
|
label: labels.title,
|
|
@@ -933,7 +933,7 @@ function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete })
|
|
|
933
933
|
subtitle: labels.subtitle,
|
|
934
934
|
gradient: "from-fuchsia-500 to-purple-700",
|
|
935
935
|
toolbar: /* @__PURE__ */ jsxRuntime.jsx(
|
|
936
|
-
|
|
936
|
+
chunkK4M4B6ME_js.CreateActionButton,
|
|
937
937
|
{
|
|
938
938
|
mode: "desktop",
|
|
939
939
|
label: labels.addRule,
|
|
@@ -944,7 +944,7 @@ function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete })
|
|
|
944
944
|
}
|
|
945
945
|
);
|
|
946
946
|
const mobileAction = /* @__PURE__ */ jsxRuntime.jsx(
|
|
947
|
-
|
|
947
|
+
chunkK4M4B6ME_js.CreateActionButton,
|
|
948
948
|
{
|
|
949
949
|
mode: "mobile",
|
|
950
950
|
label: labels.addRule,
|
|
@@ -952,18 +952,18 @@ function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete })
|
|
|
952
952
|
accent: "fuchsia"
|
|
953
953
|
}
|
|
954
954
|
);
|
|
955
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
956
|
-
|
|
955
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.PageLoadingState, {}) : isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_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(
|
|
956
|
+
chunkK4M4B6ME_js.EntityCard,
|
|
957
957
|
{
|
|
958
958
|
accentGradient: "from-fuchsia-500 to-purple-700",
|
|
959
959
|
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" }) }),
|
|
960
960
|
title: rule.name,
|
|
961
961
|
subtitle: `${labels.order}: ${rule.order ?? 0}`,
|
|
962
|
-
status: /* @__PURE__ */ jsxRuntime.jsx(
|
|
962
|
+
status: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Badge, { color: rule.enabled ? "emerald" : "zinc", children: rule.enabled ? labels.enabled : labels.disabled }),
|
|
963
963
|
footer: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
964
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
964
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Button, { type: "button", size: "sm", outline: true, onClick: () => setEditing(rule), children: labels.edit }),
|
|
965
965
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
966
|
-
|
|
966
|
+
chunkK4M4B6ME_js.Button,
|
|
967
967
|
{
|
|
968
968
|
type: "button",
|
|
969
969
|
size: "sm",
|
|
@@ -980,13 +980,13 @@ function RulesPageView({ labels, rules, loading, onCreate, onUpdate, onDelete })
|
|
|
980
980
|
rule.ruleId
|
|
981
981
|
)) });
|
|
982
982
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
983
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
983
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.ManagementPageLayout, { hero, summary, content, mobileAction }),
|
|
984
984
|
createOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
985
985
|
RuleEditor,
|
|
986
986
|
{
|
|
987
987
|
title: labels.createTitle,
|
|
988
988
|
saveLabel: labels.save,
|
|
989
|
-
initial:
|
|
989
|
+
initial: chunkPYQLY2RH_js.defaultRuleForm(),
|
|
990
990
|
onClose: () => setCreateOpen(false),
|
|
991
991
|
onSubmit: (value) => {
|
|
992
992
|
onCreate(value);
|
|
@@ -1018,7 +1018,7 @@ function RuleEditor({
|
|
|
1018
1018
|
}) {
|
|
1019
1019
|
const [value, setValue] = react.useState(initial);
|
|
1020
1020
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1021
|
-
|
|
1021
|
+
chunkK4M4B6ME_js.GlassModal,
|
|
1022
1022
|
{
|
|
1023
1023
|
open: true,
|
|
1024
1024
|
onClose,
|
|
@@ -1030,12 +1030,12 @@ function RuleEditor({
|
|
|
1030
1030
|
event.preventDefault();
|
|
1031
1031
|
onSubmit(value);
|
|
1032
1032
|
},
|
|
1033
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1033
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkPYQLY2RH_js.RuleForm, { value, onChange: setValue })
|
|
1034
1034
|
}
|
|
1035
1035
|
);
|
|
1036
1036
|
}
|
|
1037
1037
|
function ruleToFormValue(rule) {
|
|
1038
|
-
const base =
|
|
1038
|
+
const base = chunkPYQLY2RH_js.defaultRuleForm();
|
|
1039
1039
|
const rawCondition = rule.condition ?? rule.conditions;
|
|
1040
1040
|
const rawAction = pickAction(rule);
|
|
1041
1041
|
return {
|
|
@@ -1166,7 +1166,7 @@ var SAMPLE_DATASOURCES = [
|
|
|
1166
1166
|
];
|
|
1167
1167
|
function getDialectLabel(dialect) {
|
|
1168
1168
|
if (!dialect) return "Unknown";
|
|
1169
|
-
for (const category of
|
|
1169
|
+
for (const category of chunkSFFSXC5E_js.DIALECT_CATEGORIES) {
|
|
1170
1170
|
const found = category.dialects.find((d) => d.value === dialect);
|
|
1171
1171
|
if (found) return found.label;
|
|
1172
1172
|
}
|
|
@@ -1174,12 +1174,12 @@ function getDialectLabel(dialect) {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
function getDialectGradient(dialect) {
|
|
1176
1176
|
if (!dialect) return "from-gray-400 to-gray-500";
|
|
1177
|
-
const category =
|
|
1177
|
+
const category = chunkSFFSXC5E_js.findCategory(dialect);
|
|
1178
1178
|
return category?.gradient ?? "from-gray-400 to-gray-500";
|
|
1179
1179
|
}
|
|
1180
1180
|
function getDialectIcon(dialect) {
|
|
1181
1181
|
if (!dialect) return outline.CircleStackIcon;
|
|
1182
|
-
const category =
|
|
1182
|
+
const category = chunkSFFSXC5E_js.findCategory(dialect);
|
|
1183
1183
|
return category?.icon ?? outline.CircleStackIcon;
|
|
1184
1184
|
}
|
|
1185
1185
|
var DIALECT_LOGO = {
|
|
@@ -1222,7 +1222,7 @@ function DatasourcesPageView({
|
|
|
1222
1222
|
useSampleData ? SAMPLE_DATASOURCES : []
|
|
1223
1223
|
);
|
|
1224
1224
|
const allDatasources = externalDatasources ?? localDatasources;
|
|
1225
|
-
const datasources = searchTerm.trim() ? allDatasources.filter((ds) => ds.name.toLowerCase().includes(searchTerm.trim().toLowerCase())) : allDatasources;
|
|
1225
|
+
const datasources = searchTerm.trim() ? allDatasources.filter((ds) => (ds.name ?? "").toLowerCase().includes(searchTerm.trim().toLowerCase())) : allDatasources;
|
|
1226
1226
|
const isEmpty = allDatasources.length === 0;
|
|
1227
1227
|
function handleCreate(data) {
|
|
1228
1228
|
if (onCreate) {
|
|
@@ -1249,7 +1249,7 @@ function DatasourcesPageView({
|
|
|
1249
1249
|
}
|
|
1250
1250
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
1251
1251
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1252
|
-
|
|
1252
|
+
chunkK4M4B6ME_js.HeroSection,
|
|
1253
1253
|
{
|
|
1254
1254
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.CircleStackIcon, { className: "h-5 w-5" }),
|
|
1255
1255
|
label: labels.title,
|
|
@@ -1257,7 +1257,7 @@ function DatasourcesPageView({
|
|
|
1257
1257
|
subtitle: labels.subtitle,
|
|
1258
1258
|
gradient: "from-amber-500 to-orange-600",
|
|
1259
1259
|
toolbar: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1260
|
-
|
|
1260
|
+
chunkK4M4B6ME_js.CreateActionButton,
|
|
1261
1261
|
{
|
|
1262
1262
|
mode: "desktop",
|
|
1263
1263
|
label: labels.addDatasource,
|
|
@@ -1268,7 +1268,7 @@ function DatasourcesPageView({
|
|
|
1268
1268
|
}
|
|
1269
1269
|
),
|
|
1270
1270
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1271
|
-
|
|
1271
|
+
chunkK4M4B6ME_js.CreateActionButton,
|
|
1272
1272
|
{
|
|
1273
1273
|
mode: "mobile",
|
|
1274
1274
|
label: labels.addDatasource,
|
|
@@ -1277,7 +1277,7 @@ function DatasourcesPageView({
|
|
|
1277
1277
|
}
|
|
1278
1278
|
),
|
|
1279
1279
|
!isEmpty && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1280
|
-
|
|
1280
|
+
chunkK4M4B6ME_js.SearchBar,
|
|
1281
1281
|
{
|
|
1282
1282
|
searchTerm,
|
|
1283
1283
|
onSearchChange: setSearchTerm,
|
|
@@ -1285,7 +1285,7 @@ function DatasourcesPageView({
|
|
|
1285
1285
|
}
|
|
1286
1286
|
),
|
|
1287
1287
|
isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1288
|
-
|
|
1288
|
+
chunkK4M4B6ME_js.PageEmptyState,
|
|
1289
1289
|
{
|
|
1290
1290
|
title: labels.emptyTitle,
|
|
1291
1291
|
message: labels.emptyDescription,
|
|
@@ -1299,13 +1299,13 @@ function DatasourcesPageView({
|
|
|
1299
1299
|
const logoSrc = getDialectLogoSrc(ds.dialect);
|
|
1300
1300
|
const iconElement = logoSrc ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-11 w-11 items-center justify-center rounded-lg bg-white shadow-sm ring-1 ring-black/5 dark:bg-white/10 dark:ring-white/10", 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" }) });
|
|
1301
1301
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1302
|
-
|
|
1302
|
+
chunkK4M4B6ME_js.EntityCard,
|
|
1303
1303
|
{
|
|
1304
1304
|
accentGradient: gradient,
|
|
1305
1305
|
icon: iconElement,
|
|
1306
1306
|
title: ds.name ?? ds.id,
|
|
1307
1307
|
subtitle: dialectLabel,
|
|
1308
|
-
status: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1308
|
+
status: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Badge, { color: ds.enabled ? "emerald" : "zinc", children: ds.enabled ? labels.enabled : labels.disabled }),
|
|
1309
1309
|
footer: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-xs text-gray-400 dark:text-gray-500", children: [
|
|
1310
1310
|
ds.readOnly && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-full bg-blue-100 px-2 py-0.5 text-[10px] font-semibold text-blue-700 dark:bg-blue-900/30 dark:text-blue-300", children: "Read-only" }),
|
|
1311
1311
|
ds.timeoutMs && /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
@@ -1329,7 +1329,7 @@ function DatasourcesPageView({
|
|
|
1329
1329
|
);
|
|
1330
1330
|
}) }),
|
|
1331
1331
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1332
|
-
|
|
1332
|
+
chunkSFFSXC5E_js.DatasourceModal,
|
|
1333
1333
|
{
|
|
1334
1334
|
open: modalOpen,
|
|
1335
1335
|
onClose: () => setModalOpen(false),
|
|
@@ -1344,7 +1344,7 @@ function DashboardPageView({ labels, appLogo }) {
|
|
|
1344
1344
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center mb-6", children: appLogo }),
|
|
1345
1345
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-3 text-base text-gray-500 dark:text-gray-400", children: labels.subtitle })
|
|
1346
1346
|
] });
|
|
1347
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1347
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.ManagementPageLayout, { hero, content: null });
|
|
1348
1348
|
}
|
|
1349
1349
|
function AgentsIndexPageView({ labels }) {
|
|
1350
1350
|
const Link = chunkS7KHTUHA_js.useLink();
|
|
@@ -1358,7 +1358,7 @@ function AgentsIndexPageView({ labels }) {
|
|
|
1358
1358
|
const filteredTiles = searchTerm.trim() ? allTiles.filter((tile) => tile.title.toLowerCase().includes(searchTerm.trim().toLowerCase())) : allTiles;
|
|
1359
1359
|
const isEmpty = allTiles.length === 0;
|
|
1360
1360
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1361
|
-
|
|
1361
|
+
chunkK4M4B6ME_js.HeroSection,
|
|
1362
1362
|
{
|
|
1363
1363
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.CpuChipIcon, { className: "h-5 w-5" }),
|
|
1364
1364
|
label: labels.title,
|
|
@@ -1368,7 +1368,7 @@ function AgentsIndexPageView({ labels }) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
);
|
|
1370
1370
|
const summary = !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1371
|
-
|
|
1371
|
+
chunkK4M4B6ME_js.SearchBar,
|
|
1372
1372
|
{
|
|
1373
1373
|
searchTerm,
|
|
1374
1374
|
onSearchChange: setSearchTerm,
|
|
@@ -1378,7 +1378,7 @@ function AgentsIndexPageView({ labels }) {
|
|
|
1378
1378
|
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) => {
|
|
1379
1379
|
const Icon = tile.icon;
|
|
1380
1380
|
return /* @__PURE__ */ jsxRuntime.jsx(Link, { href: tile.href, className: "block focus:outline-none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1381
|
-
|
|
1381
|
+
chunkK4M4B6ME_js.EntityCard,
|
|
1382
1382
|
{
|
|
1383
1383
|
accentGradient: tile.gradient,
|
|
1384
1384
|
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" }) }),
|
|
@@ -1387,13 +1387,13 @@ function AgentsIndexPageView({ labels }) {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
) }, tile.id);
|
|
1389
1389
|
}) });
|
|
1390
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1390
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.ManagementPageLayout, { hero, summary, content });
|
|
1391
1391
|
}
|
|
1392
1392
|
function WorkflowsPageView({ labels, workflows, onCreate, onUpdateMeta, onPublish }) {
|
|
1393
1393
|
const selectedWorkflow = workflows[0] ?? null;
|
|
1394
1394
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
|
|
1395
1395
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1396
|
-
|
|
1396
|
+
chunkK4M4B6ME_js.SectionHeader,
|
|
1397
1397
|
{
|
|
1398
1398
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.RectangleStackIcon, { className: "h-5 w-5 text-white" }),
|
|
1399
1399
|
title: labels.title,
|
|
@@ -1402,9 +1402,9 @@ function WorkflowsPageView({ labels, workflows, onCreate, onUpdateMeta, onPublis
|
|
|
1402
1402
|
}
|
|
1403
1403
|
),
|
|
1404
1404
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "liquid-surface rounded-2xl p-4 space-y-3", children: [
|
|
1405
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1405
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Text, { className: "font-semibold text-slate-900 dark:text-slate-100", children: labels.add }),
|
|
1406
1406
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1407
|
-
|
|
1407
|
+
chunkK4M4B6ME_js.Form,
|
|
1408
1408
|
{
|
|
1409
1409
|
onSubmit: (event) => {
|
|
1410
1410
|
event.preventDefault();
|
|
@@ -1415,32 +1415,32 @@ function WorkflowsPageView({ labels, workflows, onCreate, onUpdateMeta, onPublis
|
|
|
1415
1415
|
onCreate({ name, description });
|
|
1416
1416
|
event.currentTarget.reset();
|
|
1417
1417
|
},
|
|
1418
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1419
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1420
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1421
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1418
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.FormGrid, { children: [
|
|
1419
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormInput, { name: "name", label: labels.workflowName, placeholder: labels.workflowNamePlaceholder, required: true }),
|
|
1420
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormTextarea, { name: "description", label: labels.description, placeholder: labels.workflowDescriptionPlaceholder, rows: 3 }),
|
|
1421
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormActionsRow, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Button, { type: "submit", children: labels.create }) })
|
|
1422
1422
|
] })
|
|
1423
1423
|
}
|
|
1424
1424
|
)
|
|
1425
1425
|
] }),
|
|
1426
1426
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "liquid-surface rounded-2xl p-4 space-y-3", children: [
|
|
1427
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1428
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1429
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1430
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1431
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1432
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1433
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1434
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1427
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Text, { className: "font-semibold text-slate-900 dark:text-slate-100", children: labels.registry }),
|
|
1428
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.Table, { children: [
|
|
1429
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.TableHead, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.TableRow, { children: [
|
|
1430
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.TableHeader, { children: labels.name }),
|
|
1431
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.TableHeader, { children: labels.description }),
|
|
1432
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.TableHeader, { children: labels.version }),
|
|
1433
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.TableHeader, { children: labels.status }),
|
|
1434
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.TableHeader, { children: labels.actions })
|
|
1435
1435
|
] }) }),
|
|
1436
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1437
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1438
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1439
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1440
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1441
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1436
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.TableBody, { children: workflows.map((workflow) => /* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.TableRow, { children: [
|
|
1437
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.TableCell, { children: workflow.name }),
|
|
1438
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.TableCell, { children: workflow.description }),
|
|
1439
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.TableCell, { children: String(workflow.version) }),
|
|
1440
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Badge, { children: workflow.isDraft ? labels.statusDraft : labels.statusPublished }) }),
|
|
1441
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
1442
1442
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1443
|
-
|
|
1443
|
+
chunkK4M4B6ME_js.Form,
|
|
1444
1444
|
{
|
|
1445
1445
|
onSubmit: (event) => {
|
|
1446
1446
|
event.preventDefault();
|
|
@@ -1450,17 +1450,17 @@ function WorkflowsPageView({ labels, workflows, onCreate, onUpdateMeta, onPublis
|
|
|
1450
1450
|
description: workflow.description ?? ""
|
|
1451
1451
|
});
|
|
1452
1452
|
},
|
|
1453
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1453
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.InlineForm, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Button, { type: "submit", outline: true, children: labels.saveMeta }) })
|
|
1454
1454
|
}
|
|
1455
1455
|
),
|
|
1456
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1456
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Button, { type: "button", color: "sky", onClick: () => onPublish(workflow.id), children: labels.publish })
|
|
1457
1457
|
] }) })
|
|
1458
1458
|
] }, workflow.id)) })
|
|
1459
1459
|
] })
|
|
1460
1460
|
] }),
|
|
1461
1461
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "liquid-surface rounded-2xl p-4 space-y-3", children: [
|
|
1462
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1463
|
-
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(
|
|
1462
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Text, { className: "font-semibold text-slate-900 dark:text-slate-100", children: labels.workspace }),
|
|
1463
|
+
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(chunkU6XA2OYE_js.WorkflowWorkspace, { graph: chunk3T2WGL47_js.adaptWorkflowGraphToUi(selectedWorkflow.graph) }) }) : /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Text, { children: labels.empty })
|
|
1464
1464
|
] })
|
|
1465
1465
|
] });
|
|
1466
1466
|
}
|
|
@@ -1509,7 +1509,7 @@ function WorkflowRunsPageView({ labels, runs, loading, onCancel, onReplay, onVie
|
|
|
1509
1509
|
});
|
|
1510
1510
|
const isEmpty = allRuns.length === 0;
|
|
1511
1511
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1512
|
-
|
|
1512
|
+
chunkK4M4B6ME_js.HeroSection,
|
|
1513
1513
|
{
|
|
1514
1514
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.ClockIcon, { className: "h-5 w-5" }),
|
|
1515
1515
|
label: labels.title,
|
|
@@ -1517,7 +1517,7 @@ function WorkflowRunsPageView({ labels, runs, loading, onCancel, onReplay, onVie
|
|
|
1517
1517
|
subtitle: labels.subtitle,
|
|
1518
1518
|
gradient: "from-indigo-500 to-sky-700",
|
|
1519
1519
|
toolbar: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-48", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1520
|
-
|
|
1520
|
+
chunkK4M4B6ME_js.FormSelect,
|
|
1521
1521
|
{
|
|
1522
1522
|
name: "statusFilter",
|
|
1523
1523
|
label: labels.filterStatus,
|
|
@@ -1529,26 +1529,26 @@ function WorkflowRunsPageView({ labels, runs, loading, onCancel, onReplay, onVie
|
|
|
1529
1529
|
}
|
|
1530
1530
|
);
|
|
1531
1531
|
const summary = !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1532
|
-
|
|
1532
|
+
chunkK4M4B6ME_js.SearchBar,
|
|
1533
1533
|
{
|
|
1534
1534
|
searchTerm,
|
|
1535
1535
|
onSearchChange: setSearchTerm,
|
|
1536
1536
|
placeholder: labels.searchPlaceholder ?? labels.title
|
|
1537
1537
|
}
|
|
1538
1538
|
) : void 0;
|
|
1539
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1540
|
-
|
|
1539
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.PageLoadingState, {}) : filteredRuns.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_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(
|
|
1540
|
+
chunkK4M4B6ME_js.EntityCard,
|
|
1541
1541
|
{
|
|
1542
1542
|
accentGradient: "from-indigo-500 to-sky-700",
|
|
1543
1543
|
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" }) }),
|
|
1544
1544
|
title: run.id.slice(0, 8),
|
|
1545
1545
|
subtitle: `${labels.startedAt}: ${new Date(run.createdAt).toLocaleString()}`,
|
|
1546
|
-
status: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1546
|
+
status: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Badge, { color: BADGE_COLOR[run.status] ?? "zinc", children: statusLabelFor(run.status) }),
|
|
1547
1547
|
footer: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
1548
|
-
onView && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1549
|
-
onViewTimeline && labels.timeline && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1550
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1551
|
-
run.status === "running" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1548
|
+
onView && /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Button, { type: "button", size: "sm", outline: true, onClick: () => onView(run), children: labels.view }),
|
|
1549
|
+
onViewTimeline && labels.timeline && /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Button, { type: "button", size: "sm", outline: true, onClick: () => onViewTimeline(run), children: labels.timeline }),
|
|
1550
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Button, { type: "button", size: "sm", outline: true, onClick: () => onReplay(run), children: labels.replay }),
|
|
1551
|
+
run.status === "running" && /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Button, { type: "button", size: "sm", color: "rose", onClick: () => onCancel(run), children: labels.cancel })
|
|
1552
1552
|
] }),
|
|
1553
1553
|
children: [
|
|
1554
1554
|
/* @__PURE__ */ jsxRuntime.jsxs("dl", { className: "mt-1 grid grid-cols-2 gap-1 text-xs text-slate-500 dark:text-slate-400", children: [
|
|
@@ -1562,11 +1562,11 @@ function WorkflowRunsPageView({ labels, runs, loading, onCancel, onReplay, onVie
|
|
|
1562
1562
|
},
|
|
1563
1563
|
run.id
|
|
1564
1564
|
)) });
|
|
1565
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1565
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.ManagementPageLayout, { hero, summary, content });
|
|
1566
1566
|
}
|
|
1567
1567
|
function RunTimelinePageView({ labels, entries, loading, runId }) {
|
|
1568
1568
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1569
|
-
|
|
1569
|
+
chunkK4M4B6ME_js.HeroSection,
|
|
1570
1570
|
{
|
|
1571
1571
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.ClockIcon, { className: "h-5 w-5" }),
|
|
1572
1572
|
label: labels.title,
|
|
@@ -1576,23 +1576,23 @@ function RunTimelinePageView({ labels, entries, loading, runId }) {
|
|
|
1576
1576
|
}
|
|
1577
1577
|
);
|
|
1578
1578
|
if (loading) {
|
|
1579
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1579
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.ManagementPageLayout, { hero, content: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.PageLoadingState, {}) });
|
|
1580
1580
|
}
|
|
1581
1581
|
if (entries.length === 0) {
|
|
1582
1582
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1583
|
-
|
|
1583
|
+
chunkK4M4B6ME_js.ManagementPageLayout,
|
|
1584
1584
|
{
|
|
1585
1585
|
hero,
|
|
1586
|
-
content: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1586
|
+
content: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.PageEmptyState, { title: labels.empty ?? "", message: "", iconName: "folder-open" })
|
|
1587
1587
|
}
|
|
1588
1588
|
);
|
|
1589
1589
|
}
|
|
1590
1590
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1591
|
-
|
|
1591
|
+
chunkK4M4B6ME_js.ManagementPageLayout,
|
|
1592
1592
|
{
|
|
1593
1593
|
hero,
|
|
1594
1594
|
content: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1595
|
-
|
|
1595
|
+
chunkPYQLY2RH_js.ExecutionTimelinePanel,
|
|
1596
1596
|
{
|
|
1597
1597
|
entries,
|
|
1598
1598
|
labels
|
|
@@ -1678,7 +1678,7 @@ function ConnectionsPageView({
|
|
|
1678
1678
|
const filteredConnections = searchTerm.trim() ? allConnections.filter((conn) => conn.name.toLowerCase().includes(searchTerm.trim().toLowerCase())) : allConnections;
|
|
1679
1679
|
const isEmpty = allConnections.length === 0;
|
|
1680
1680
|
const summary = !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1681
|
-
|
|
1681
|
+
chunkK4M4B6ME_js.SearchBar,
|
|
1682
1682
|
{
|
|
1683
1683
|
searchTerm,
|
|
1684
1684
|
onSearchChange: setSearchTerm,
|
|
@@ -1686,7 +1686,7 @@ function ConnectionsPageView({
|
|
|
1686
1686
|
}
|
|
1687
1687
|
) : void 0;
|
|
1688
1688
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1689
|
-
|
|
1689
|
+
chunkK4M4B6ME_js.HeroSection,
|
|
1690
1690
|
{
|
|
1691
1691
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.LinkIcon, { className: "h-5 w-5" }),
|
|
1692
1692
|
label: labels.title,
|
|
@@ -1694,7 +1694,7 @@ function ConnectionsPageView({
|
|
|
1694
1694
|
subtitle: labels.subtitle,
|
|
1695
1695
|
gradient: "from-sky-500 to-indigo-600",
|
|
1696
1696
|
toolbar: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1697
|
-
|
|
1697
|
+
chunkK4M4B6ME_js.CreateActionButton,
|
|
1698
1698
|
{
|
|
1699
1699
|
mode: "desktop",
|
|
1700
1700
|
label: labels.add,
|
|
@@ -1705,7 +1705,7 @@ function ConnectionsPageView({
|
|
|
1705
1705
|
}
|
|
1706
1706
|
);
|
|
1707
1707
|
const mobileAction = /* @__PURE__ */ jsxRuntime.jsx(
|
|
1708
|
-
|
|
1708
|
+
chunkK4M4B6ME_js.CreateActionButton,
|
|
1709
1709
|
{
|
|
1710
1710
|
mode: "mobile",
|
|
1711
1711
|
label: labels.add,
|
|
@@ -1713,21 +1713,21 @@ function ConnectionsPageView({
|
|
|
1713
1713
|
accent: "sky"
|
|
1714
1714
|
}
|
|
1715
1715
|
);
|
|
1716
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1717
|
-
|
|
1716
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.PageLoadingState, {}) : isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_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(
|
|
1717
|
+
chunkK4M4B6ME_js.EntityCard,
|
|
1718
1718
|
{
|
|
1719
1719
|
accentGradient: "from-sky-500 to-indigo-600",
|
|
1720
1720
|
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" }) }),
|
|
1721
1721
|
title: conn.name,
|
|
1722
1722
|
subtitle: providerLabel(conn.providerSlug),
|
|
1723
1723
|
status: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-1", children: [
|
|
1724
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1725
|
-
conn.credentialRef ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1724
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Badge, { color: conn.enabled ? "emerald" : "zinc", children: conn.enabled ? labels.enable : labels.disable }),
|
|
1725
|
+
conn.credentialRef ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Badge, { color: "indigo", children: "Secret set" }) : /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Badge, { color: "amber", children: "No secret" })
|
|
1726
1726
|
] }),
|
|
1727
1727
|
footer: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
1728
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1728
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Button, { type: "button", size: "sm", outline: true, onClick: () => setEditing(conn), children: labels.edit }),
|
|
1729
1729
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1730
|
-
|
|
1730
|
+
chunkK4M4B6ME_js.Button,
|
|
1731
1731
|
{
|
|
1732
1732
|
type: "button",
|
|
1733
1733
|
size: "sm",
|
|
@@ -1748,7 +1748,7 @@ function ConnectionsPageView({
|
|
|
1748
1748
|
conn.id
|
|
1749
1749
|
)) });
|
|
1750
1750
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1751
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1751
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.ManagementPageLayout, { hero, summary, content, mobileAction }),
|
|
1752
1752
|
createOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1753
1753
|
ConnectionEditor,
|
|
1754
1754
|
{
|
|
@@ -1862,7 +1862,7 @@ function ConnectionEditor({
|
|
|
1862
1862
|
return preset.exampleModels?.join(", ") ?? "";
|
|
1863
1863
|
}, [preset]);
|
|
1864
1864
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1865
|
-
|
|
1865
|
+
chunkK4M4B6ME_js.GlassModal,
|
|
1866
1866
|
{
|
|
1867
1867
|
open: true,
|
|
1868
1868
|
onClose,
|
|
@@ -1875,9 +1875,9 @@ function ConnectionEditor({
|
|
|
1875
1875
|
void handleSubmit();
|
|
1876
1876
|
},
|
|
1877
1877
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
1878
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1878
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.FormGrid, { children: [
|
|
1879
1879
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1880
|
-
|
|
1880
|
+
chunkK4M4B6ME_js.FormSelect,
|
|
1881
1881
|
{
|
|
1882
1882
|
label: "Provider",
|
|
1883
1883
|
value: value.providerSlug,
|
|
@@ -1888,7 +1888,7 @@ function ConnectionEditor({
|
|
|
1888
1888
|
}
|
|
1889
1889
|
),
|
|
1890
1890
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1891
|
-
|
|
1891
|
+
chunkK4M4B6ME_js.FormInput,
|
|
1892
1892
|
{
|
|
1893
1893
|
label: "Display name",
|
|
1894
1894
|
required: true,
|
|
@@ -1898,7 +1898,7 @@ function ConnectionEditor({
|
|
|
1898
1898
|
}
|
|
1899
1899
|
),
|
|
1900
1900
|
preset.needsRegion && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1901
|
-
|
|
1901
|
+
chunkK4M4B6ME_js.FormInput,
|
|
1902
1902
|
{
|
|
1903
1903
|
label: "Region",
|
|
1904
1904
|
value: value.region,
|
|
@@ -1907,7 +1907,7 @@ function ConnectionEditor({
|
|
|
1907
1907
|
}
|
|
1908
1908
|
),
|
|
1909
1909
|
preset.needsEndpoint && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1910
|
-
|
|
1910
|
+
chunkK4M4B6ME_js.FormInput,
|
|
1911
1911
|
{
|
|
1912
1912
|
label: "Endpoint URL",
|
|
1913
1913
|
value: value.endpoint,
|
|
@@ -1917,7 +1917,7 @@ function ConnectionEditor({
|
|
|
1917
1917
|
)
|
|
1918
1918
|
] }),
|
|
1919
1919
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1920
|
-
|
|
1920
|
+
chunkK4M4B6ME_js.FormInput,
|
|
1921
1921
|
{
|
|
1922
1922
|
label: value.credentialRef ? "Rotate API key (leave blank to keep current)" : "API key",
|
|
1923
1923
|
type: "password",
|
|
@@ -1928,7 +1928,7 @@ function ConnectionEditor({
|
|
|
1928
1928
|
}
|
|
1929
1929
|
),
|
|
1930
1930
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1931
|
-
|
|
1931
|
+
chunkK4M4B6ME_js.FormInput,
|
|
1932
1932
|
{
|
|
1933
1933
|
label: "Model filter (comma-separated, optional)",
|
|
1934
1934
|
value: value.modelFilter,
|
|
@@ -1940,7 +1940,7 @@ function ConnectionEditor({
|
|
|
1940
1940
|
/* @__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: [
|
|
1941
1941
|
/* @__PURE__ */ jsxRuntime.jsx("summary", { className: "cursor-pointer font-medium text-slate-700 dark:text-slate-200", children: "Advanced config (JSON)" }),
|
|
1942
1942
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1943
|
-
|
|
1943
|
+
chunkK4M4B6ME_js.FormTextarea,
|
|
1944
1944
|
{
|
|
1945
1945
|
rows: 4,
|
|
1946
1946
|
value: value.configJson,
|
|
@@ -2004,7 +2004,7 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2004
2004
|
const filteredCredentials = searchTerm.trim() ? allCredentials.filter((secret) => secret.name.toLowerCase().includes(searchTerm.trim().toLowerCase())) : allCredentials;
|
|
2005
2005
|
const isEmpty = allCredentials.length === 0;
|
|
2006
2006
|
const summary = !isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2007
|
-
|
|
2007
|
+
chunkK4M4B6ME_js.SearchBar,
|
|
2008
2008
|
{
|
|
2009
2009
|
searchTerm,
|
|
2010
2010
|
onSearchChange: setSearchTerm,
|
|
@@ -2018,7 +2018,7 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2018
2018
|
{ value: "password", label: labels.typePassword }
|
|
2019
2019
|
];
|
|
2020
2020
|
const hero = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2021
|
-
|
|
2021
|
+
chunkK4M4B6ME_js.HeroSection,
|
|
2022
2022
|
{
|
|
2023
2023
|
icon: /* @__PURE__ */ jsxRuntime.jsx(outline.KeyIcon, { className: "h-5 w-5" }),
|
|
2024
2024
|
label: labels.title,
|
|
@@ -2026,7 +2026,7 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2026
2026
|
subtitle: labels.subtitle,
|
|
2027
2027
|
gradient: "from-rose-500 to-orange-600",
|
|
2028
2028
|
toolbar: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2029
|
-
|
|
2029
|
+
chunkK4M4B6ME_js.CreateActionButton,
|
|
2030
2030
|
{
|
|
2031
2031
|
mode: "desktop",
|
|
2032
2032
|
label: labels.addCredential,
|
|
@@ -2037,7 +2037,7 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2037
2037
|
}
|
|
2038
2038
|
);
|
|
2039
2039
|
const mobileAction = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2040
|
-
|
|
2040
|
+
chunkK4M4B6ME_js.CreateActionButton,
|
|
2041
2041
|
{
|
|
2042
2042
|
mode: "mobile",
|
|
2043
2043
|
label: labels.addCredential,
|
|
@@ -2045,23 +2045,23 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2045
2045
|
accent: "rose"
|
|
2046
2046
|
}
|
|
2047
2047
|
);
|
|
2048
|
-
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2049
|
-
|
|
2048
|
+
const content = loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.PageLoadingState, {}) : isEmpty ? /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_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: filteredCredentials.map((secret) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2049
|
+
chunkK4M4B6ME_js.EntityCard,
|
|
2050
2050
|
{
|
|
2051
2051
|
accentGradient: "from-rose-500 to-orange-700",
|
|
2052
2052
|
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" }) }),
|
|
2053
2053
|
title: secret.name,
|
|
2054
2054
|
subtitle: secret.secretType,
|
|
2055
|
-
status: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2055
|
+
status: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.Badge, { color: secret.disabled ? "zinc" : "emerald", children: secret.disabled ? labels.disable : "Active" }),
|
|
2056
2056
|
footer: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
2057
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2057
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.CopyableId, { id: secret.secretId }),
|
|
2058
2058
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
2059
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2059
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.Button, { type: "button", size: "sm", outline: true, onClick: () => setRotateFor(secret), children: [
|
|
2060
2060
|
/* @__PURE__ */ jsxRuntime.jsx(outline.ArrowPathIcon, { className: "mr-1 h-3.5 w-3.5" }),
|
|
2061
2061
|
labels.rotate
|
|
2062
2062
|
] }),
|
|
2063
2063
|
!secret.disabled && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2064
|
-
|
|
2064
|
+
chunkK4M4B6ME_js.Button,
|
|
2065
2065
|
{
|
|
2066
2066
|
type: "button",
|
|
2067
2067
|
size: "sm",
|
|
@@ -2090,9 +2090,9 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2090
2090
|
secret.secretId
|
|
2091
2091
|
)) });
|
|
2092
2092
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2093
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2093
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.ManagementPageLayout, { hero, summary, content, mobileAction }),
|
|
2094
2094
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2095
|
-
|
|
2095
|
+
chunkK4M4B6ME_js.GlassModal,
|
|
2096
2096
|
{
|
|
2097
2097
|
open: createOpen,
|
|
2098
2098
|
onClose: () => setCreateOpen(false),
|
|
@@ -2110,16 +2110,16 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2110
2110
|
onCreate({ name, value, secretType, description });
|
|
2111
2111
|
setCreateOpen(false);
|
|
2112
2112
|
},
|
|
2113
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2114
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2115
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2116
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2117
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2113
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkK4M4B6ME_js.FormGrid, { children: [
|
|
2114
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormInput, { name: "name", label: labels.name, placeholder: labels.namePlaceholder, required: true }),
|
|
2115
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormSelect, { name: "secretType", label: labels.type, options: typeOptions, defaultValue: "generic" }),
|
|
2116
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormInput, { name: "value", label: labels.value, placeholder: labels.valuePlaceholder, required: true, type: "password" }),
|
|
2117
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormTextarea, { name: "description", label: labels.description, placeholder: labels.descriptionPlaceholder, rows: 2 })
|
|
2118
2118
|
] })
|
|
2119
2119
|
}
|
|
2120
2120
|
),
|
|
2121
2121
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2122
|
-
|
|
2122
|
+
chunkK4M4B6ME_js.GlassModal,
|
|
2123
2123
|
{
|
|
2124
2124
|
open: rotateFor !== null,
|
|
2125
2125
|
onClose: () => setRotateFor(null),
|
|
@@ -2134,7 +2134,7 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2134
2134
|
onRotate(rotateFor, value);
|
|
2135
2135
|
setRotateFor(null);
|
|
2136
2136
|
},
|
|
2137
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2137
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormGrid, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkK4M4B6ME_js.FormInput, { name: "value", label: labels.value, placeholder: labels.valuePlaceholder, required: true, type: "password" }) })
|
|
2138
2138
|
}
|
|
2139
2139
|
)
|
|
2140
2140
|
] });
|
|
@@ -2142,31 +2142,31 @@ function CredentialsPageView({ labels, credentials, loading, onCreate, onRotate,
|
|
|
2142
2142
|
|
|
2143
2143
|
Object.defineProperty(exports, "RolesPageView", {
|
|
2144
2144
|
enumerable: true,
|
|
2145
|
-
get: function () { return
|
|
2145
|
+
get: function () { return chunkU6XA2OYE_js.RolesPageView; }
|
|
2146
2146
|
});
|
|
2147
2147
|
Object.defineProperty(exports, "UsersPageView", {
|
|
2148
2148
|
enumerable: true,
|
|
2149
|
-
get: function () { return
|
|
2149
|
+
get: function () { return chunkU6XA2OYE_js.UsersPageView; }
|
|
2150
2150
|
});
|
|
2151
2151
|
Object.defineProperty(exports, "DIALECT_CATEGORIES", {
|
|
2152
2152
|
enumerable: true,
|
|
2153
|
-
get: function () { return
|
|
2153
|
+
get: function () { return chunkSFFSXC5E_js.DIALECT_CATEGORIES; }
|
|
2154
2154
|
});
|
|
2155
2155
|
Object.defineProperty(exports, "DatasourceFormModal", {
|
|
2156
2156
|
enumerable: true,
|
|
2157
|
-
get: function () { return
|
|
2157
|
+
get: function () { return chunkSFFSXC5E_js.DatasourceFormModal; }
|
|
2158
2158
|
});
|
|
2159
2159
|
Object.defineProperty(exports, "DatasourceModal", {
|
|
2160
2160
|
enumerable: true,
|
|
2161
|
-
get: function () { return
|
|
2161
|
+
get: function () { return chunkSFFSXC5E_js.DatasourceModal; }
|
|
2162
2162
|
});
|
|
2163
2163
|
Object.defineProperty(exports, "findCategory", {
|
|
2164
2164
|
enumerable: true,
|
|
2165
|
-
get: function () { return
|
|
2165
|
+
get: function () { return chunkSFFSXC5E_js.findCategory; }
|
|
2166
2166
|
});
|
|
2167
2167
|
Object.defineProperty(exports, "findDialect", {
|
|
2168
2168
|
enumerable: true,
|
|
2169
|
-
get: function () { return
|
|
2169
|
+
get: function () { return chunkSFFSXC5E_js.findDialect; }
|
|
2170
2170
|
});
|
|
2171
2171
|
exports.AgentsConfigPageView = AgentsConfigPageView;
|
|
2172
2172
|
exports.AgentsIndexPageView = AgentsIndexPageView;
|