@epam/ai-dial-toolset-editor 1.3.0-dev.13 → 1.3.0-dev.133
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolsetEditor.d.ts","sourceRoot":"","sources":["../../../src/components/ToolsetEditor/ToolsetEditor.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AA4C5E,uKAAuK;AACvK,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ToolsetEditor.d.ts","sourceRoot":"","sources":["../../../src/components/ToolsetEditor/ToolsetEditor.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AA4C5E,uKAAuK;AACvK,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAkdhD,CAAC"}
|
package/index.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid}}}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.block{display:block}.flex{display:flex}.inline{display:inline}.max-w-\[1060px\]{max-width:1060px}.shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-tertiary{border-color:var(--stroke-tertiary,#e0e6f0)}.px-2{padding-inline:.5rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-start{text-align:start}.text-primary{color:var(--text-primary,#161b2d)}.text-secondary{color:var(--text-secondary,#57647a)}@media (min-width:1280px){.desktop\:not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}
|
package/index.js
CHANGED
|
@@ -2,24 +2,24 @@ import { DEFAULT_DEPLOYMENT_VERSION as e, DeploymentCreationFieldErrorCode as t,
|
|
|
2
2
|
import { ToolsetAuthTypes as c, ToolsetCredentialsLevel as l, WithLogin as u, dialFileToAttachment as d, getApiErrorDetails as f } from "@epam/ai-dial-chat-hooks";
|
|
3
3
|
import { CopyButton as p, ENTITY_DESCRIPTION_MAX_LENGTH as m, ENTITY_NAME_MAX_LENGTH as h, TAG_INPUT_TAG_CLASS_NAME as g, TextRefinementField as _, mergeClasses as v, useCodeCopy as y, useTextRefinement as b } from "@epam/ai-dial-chat-shared";
|
|
4
4
|
import { memo as x, useCallback as S, useEffect as C, useMemo as w, useRef as T, useState as E } from "react";
|
|
5
|
-
import { IconBrandOauth as ee, IconKey as te, IconLockOff as
|
|
5
|
+
import { IconBrandOauth as ee, IconKey as te, IconLockOff as ne, IconLogin as D, IconLogout as re } from "@tabler/icons-react";
|
|
6
6
|
import { jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
7
|
-
import { ConfirmationPopup as ie, ConfirmationPopupVariant as ae, DIAL_ICON_SIZE as A, DIAL_KIT_ICON_STROKE as j, Input as M, NeutralButton as N, PasswordInput as P, Radio as F, RadioGroup as I, SegmentedControl as L, Select as
|
|
7
|
+
import { ConfirmationPopup as ie, ConfirmationPopupVariant as ae, DIAL_ICON_SIZE as A, DIAL_KIT_ICON_STROKE as j, Input as M, NeutralButton as N, PasswordInput as P, Radio as F, RadioGroup as I, SegmentedControl as L, Select as R, TagInput as oe } from "@epam/ai-dial-ui-kit";
|
|
8
8
|
//#region src/constants/public-class-names.ts
|
|
9
9
|
var se = {
|
|
10
10
|
metadataSection: "dial-toolset-editor-metadata-section",
|
|
11
11
|
setupSection: "dial-toolset-editor-setup-section"
|
|
12
12
|
}, z = /* @__PURE__ */ function(e) {
|
|
13
13
|
return e.Http = "HTTP", e.Sse = "SSE", e;
|
|
14
|
-
}({}), B = e, ce = { validateVersionPattern: a },
|
|
14
|
+
}({}), B = e, ce = { validateVersionPattern: a }, le = {
|
|
15
15
|
[c.OAuth]: ee,
|
|
16
16
|
[c.ApiKey]: te,
|
|
17
|
-
[c.None]:
|
|
18
|
-
},
|
|
17
|
+
[c.None]: ne
|
|
18
|
+
}, V = () => ({
|
|
19
19
|
authenticationType: c.None,
|
|
20
20
|
withLogin: u.WithoutLogin,
|
|
21
21
|
isLoggedIn: !1
|
|
22
|
-
}),
|
|
22
|
+
}), ue = () => ({
|
|
23
23
|
name: "",
|
|
24
24
|
version: B,
|
|
25
25
|
iconUrl: "",
|
|
@@ -29,49 +29,49 @@ var se = {
|
|
|
29
29
|
endpoint: "",
|
|
30
30
|
protocol: z.Http,
|
|
31
31
|
allowedTools: [],
|
|
32
|
-
auth:
|
|
33
|
-
}),
|
|
32
|
+
auth: V()
|
|
33
|
+
}), H = (e) => {
|
|
34
34
|
if (!/^https?:\/\//.test(e) || e.endsWith(".") || e.endsWith("//")) return !1;
|
|
35
35
|
try {
|
|
36
36
|
return !!new URL(e);
|
|
37
37
|
} catch {
|
|
38
38
|
return !1;
|
|
39
39
|
}
|
|
40
|
-
},
|
|
40
|
+
}, U = (e) => H(e.trim()), W = (e) => e.replace(/^(https?):\/([^/])/, "$1://$2"), de = (e) => {
|
|
41
41
|
let t = e?.trim() ?? "";
|
|
42
|
-
if (!t ||
|
|
42
|
+
if (!t || H(t)) return t;
|
|
43
43
|
let n = [t];
|
|
44
44
|
try {
|
|
45
45
|
let e = decodeURIComponent(t);
|
|
46
46
|
e !== t && n.push(e);
|
|
47
47
|
} catch {}
|
|
48
48
|
for (let e of n) {
|
|
49
|
-
let t =
|
|
50
|
-
if (
|
|
49
|
+
let t = W(e);
|
|
50
|
+
if (H(t)) return t;
|
|
51
51
|
}
|
|
52
52
|
return t;
|
|
53
|
-
},
|
|
53
|
+
}, G = (e) => !e?.trim() || U(e), K = (e, t = !1) => e.isLoggedIn ? !0 : e.authenticationType === c.ApiKey ? e.keyHeader?.trim() ? e.withLogin === u.WithoutLogin || !!(e.keyHeader?.trim() && e.apiKey?.trim()) : !1 : e.authenticationType === c.OAuth && e.withLogin === u.WithConfig ? !!e.clientId?.trim() && (t || !!e.clientSecret?.trim()) && G(e.authorizationEndpoint) && G(e.tokenEndpoint) : !0, fe = (e, t = !1) => Object.keys(s(e, ce)).length === 0 && U(e.endpoint) && K(e.auth, t), q = /* @__PURE__ */ new Set([
|
|
54
54
|
"name",
|
|
55
55
|
"description",
|
|
56
56
|
"iconUrl",
|
|
57
57
|
"version",
|
|
58
58
|
"topics",
|
|
59
59
|
"otherLocales"
|
|
60
|
-
]),
|
|
60
|
+
]), pe = (e) => ({
|
|
61
61
|
name: e.name,
|
|
62
62
|
description: e.description,
|
|
63
63
|
iconUrl: e.iconUrl,
|
|
64
64
|
version: e.version,
|
|
65
65
|
topics: e.topics,
|
|
66
66
|
otherLocales: e.otherLocales
|
|
67
|
-
}),
|
|
67
|
+
}), me = (e) => {
|
|
68
68
|
let t = {}, n = {};
|
|
69
|
-
for (let [r, i] of Object.entries(e)) (
|
|
69
|
+
for (let [r, i] of Object.entries(e)) (q.has(r) ? t : n)[r] = i;
|
|
70
70
|
return {
|
|
71
71
|
metadata: t,
|
|
72
72
|
setup: n
|
|
73
73
|
};
|
|
74
|
-
},
|
|
74
|
+
}, he = {
|
|
75
75
|
name: {
|
|
76
76
|
label: "Name",
|
|
77
77
|
placeholder: "Enter name"
|
|
@@ -110,64 +110,64 @@ var se = {
|
|
|
110
110
|
saveLabel: "Save"
|
|
111
111
|
},
|
|
112
112
|
ariaLabel: "General"
|
|
113
|
-
},
|
|
113
|
+
}, ge = ({ form: e, errors: t, bucket: n, FileManagerModal: r, resolveIconUrl: a, allowedMimeTypes: o, maxFileSizeBytes: s, availableLocaleOptions: c, onChange: l, onNameBlur: u, onVersionBlur: f, renderDescription: p, labels: m }) => {
|
|
114
114
|
let h = S((e) => {
|
|
115
115
|
let [t] = e.files;
|
|
116
116
|
return (t ? d(t, n, { resolvePreviewUrl: a }) : null)?.url;
|
|
117
|
-
}, [n, a])
|
|
117
|
+
}, [n, a]), g = w(() => ({
|
|
118
|
+
bucket: n,
|
|
119
|
+
FileManagerModal: r,
|
|
120
|
+
resolveIconUrl: a,
|
|
121
|
+
resolveAttachedIconUrl: h,
|
|
122
|
+
allowedMimeTypes: o,
|
|
123
|
+
maxFileSizeBytes: s
|
|
124
|
+
}), [
|
|
125
|
+
n,
|
|
126
|
+
r,
|
|
127
|
+
a,
|
|
128
|
+
h,
|
|
129
|
+
o,
|
|
130
|
+
s
|
|
131
|
+
]), _ = w(() => ({
|
|
132
|
+
form: m?.form ?? he,
|
|
133
|
+
avatarPicker: m?.avatarPicker
|
|
134
|
+
}), [m?.form, m?.avatarPicker]);
|
|
118
135
|
return /* @__PURE__ */ O(i, {
|
|
119
136
|
values: e,
|
|
120
137
|
errors: t,
|
|
121
138
|
onChange: l,
|
|
122
139
|
onNameBlur: u,
|
|
123
140
|
onVersionBlur: f,
|
|
124
|
-
avatarPicker:
|
|
125
|
-
bucket: n,
|
|
126
|
-
FileManagerModal: r,
|
|
127
|
-
resolveIconUrl: a,
|
|
128
|
-
resolveAttachedIconUrl: h,
|
|
129
|
-
allowedMimeTypes: o,
|
|
130
|
-
maxFileSizeBytes: s
|
|
131
|
-
}), [
|
|
132
|
-
n,
|
|
133
|
-
r,
|
|
134
|
-
a,
|
|
135
|
-
h,
|
|
136
|
-
o,
|
|
137
|
-
s
|
|
138
|
-
]),
|
|
141
|
+
avatarPicker: g,
|
|
139
142
|
availableLocaleOptions: c,
|
|
140
143
|
renderDescription: p,
|
|
141
|
-
labels:
|
|
142
|
-
form: m?.form ?? pe,
|
|
143
|
-
avatarPicker: m?.avatarPicker
|
|
144
|
-
}), [m?.form, m?.avatarPicker])
|
|
144
|
+
labels: _
|
|
145
145
|
});
|
|
146
|
-
},
|
|
146
|
+
}, J = /* @__PURE__ */ function(e) {
|
|
147
147
|
return e.Success = "success", e.Cancelled = "cancelled", e.PopupBlocked = "popup-blocked", e.InvalidConfig = "invalid-config", e.Failed = "failed", e;
|
|
148
|
-
}({}),
|
|
149
|
-
let [v, y] = E(!1), [b, x] = E(!1), S = e.isLoggedIn || n || v, C =
|
|
148
|
+
}({}), Y = (e) => e === c.None ? u.WithoutLogin : u.WithLogin, _e = (e, t) => e === c.None ? t?.typeNone ?? "Open access" : e === c.OAuth ? t?.typeOAuth ?? "OAuth" : t?.typeApiKey ?? "API Key", X = ({ auth: e, errors: t, isSaving: n, toolsetId: r, isEditMode: i, endpoint: a, authActions: o, onOAuthLogin: s, onNotifySuccess: d, onNotifyError: p, onAuthChange: m, onEnsureSaved: h, labels: _ }) => {
|
|
149
|
+
let [v, y] = E(!1), [b, x] = E(!1), S = e.isLoggedIn || n || v, C = U(a) && K(e, i) && !S, w = (t) => {
|
|
150
150
|
S || t === e.authenticationType || m({
|
|
151
151
|
authenticationType: t,
|
|
152
|
-
withLogin:
|
|
152
|
+
withLogin: Y(t)
|
|
153
153
|
});
|
|
154
154
|
}, T = (e) => {
|
|
155
155
|
m({ withLogin: e });
|
|
156
156
|
}, ee = (e) => {
|
|
157
157
|
switch (e.auth != null && m(e.auth), e.status) {
|
|
158
|
-
case
|
|
158
|
+
case J.Success:
|
|
159
159
|
m({ isLoggedIn: !0 }), d(_?.loginSuccessMessage ?? "Successfully logged in.");
|
|
160
160
|
return;
|
|
161
|
-
case
|
|
161
|
+
case J.PopupBlocked:
|
|
162
162
|
p(_?.errorPopupBlocked ?? "The login popup was blocked by your browser. Please allow popups for this site and try again.");
|
|
163
163
|
return;
|
|
164
|
-
case
|
|
164
|
+
case J.InvalidConfig:
|
|
165
165
|
p(_?.errorOAuthConfigMissing ?? "The OAuth provider did not return a valid client configuration. Please check the endpoint or contact your administrator.");
|
|
166
166
|
return;
|
|
167
|
-
case
|
|
167
|
+
case J.Failed:
|
|
168
168
|
p(_?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", e.traceId);
|
|
169
169
|
return;
|
|
170
|
-
case
|
|
170
|
+
case J.Cancelled: return;
|
|
171
171
|
}
|
|
172
172
|
}, te = async () => {
|
|
173
173
|
if (!C) return;
|
|
@@ -201,7 +201,7 @@ var se = {
|
|
|
201
201
|
y(!1);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
},
|
|
204
|
+
}, ne = async () => {
|
|
205
205
|
y(!0);
|
|
206
206
|
try {
|
|
207
207
|
let t = {
|
|
@@ -231,7 +231,7 @@ var se = {
|
|
|
231
231
|
className: "flex",
|
|
232
232
|
children: /* @__PURE__ */ O(N, {
|
|
233
233
|
label: _?.logInLabel ?? "Log in",
|
|
234
|
-
iconBefore: /* @__PURE__ */ O(
|
|
234
|
+
iconBefore: /* @__PURE__ */ O(D, {
|
|
235
235
|
size: A.MD,
|
|
236
236
|
stroke: j
|
|
237
237
|
}),
|
|
@@ -256,7 +256,7 @@ var se = {
|
|
|
256
256
|
c.OAuth,
|
|
257
257
|
c.ApiKey
|
|
258
258
|
].map((t) => {
|
|
259
|
-
let n =
|
|
259
|
+
let n = le[t];
|
|
260
260
|
return {
|
|
261
261
|
value: t,
|
|
262
262
|
label: /* @__PURE__ */ k("div", {
|
|
@@ -268,7 +268,7 @@ var se = {
|
|
|
268
268
|
"aria-hidden": !0
|
|
269
269
|
}), /* @__PURE__ */ O("span", {
|
|
270
270
|
className: "sr-only desktop:not-sr-only",
|
|
271
|
-
children:
|
|
271
|
+
children: _e(t, _)
|
|
272
272
|
})]
|
|
273
273
|
}),
|
|
274
274
|
disabled: S && e.authenticationType !== t
|
|
@@ -353,7 +353,7 @@ var se = {
|
|
|
353
353
|
invalid: !!t.tokenEndpoint,
|
|
354
354
|
disabled: S
|
|
355
355
|
}),
|
|
356
|
-
/* @__PURE__ */ O(
|
|
356
|
+
/* @__PURE__ */ O(oe, {
|
|
357
357
|
id: "toolset-scopes",
|
|
358
358
|
labelProps: { label: _?.scopesLabel ?? "Scopes" },
|
|
359
359
|
placeholder: _?.scopesPlaceholder ?? "Enter scopes",
|
|
@@ -432,13 +432,13 @@ var se = {
|
|
|
432
432
|
variant: ae.Danger,
|
|
433
433
|
isLoading: v,
|
|
434
434
|
disableConfirmButton: v,
|
|
435
|
-
onConfirm:
|
|
435
|
+
onConfirm: ne,
|
|
436
436
|
onCancel: () => x(!1),
|
|
437
437
|
onClose: () => x(!1)
|
|
438
438
|
})
|
|
439
439
|
]
|
|
440
440
|
});
|
|
441
|
-
},
|
|
441
|
+
}, ve = x(({ url: e, className: t, labels: n }) => {
|
|
442
442
|
let { isCopied: r, copy: i } = y(e), a = n?.copiedLabel ?? "Copied!";
|
|
443
443
|
return /* @__PURE__ */ k("div", {
|
|
444
444
|
className: v("flex flex-col gap-3", t),
|
|
@@ -467,7 +467,7 @@ var se = {
|
|
|
467
467
|
})
|
|
468
468
|
]
|
|
469
469
|
});
|
|
470
|
-
}),
|
|
470
|
+
}), ye = ({ form: e, errors: t, isSaving: n, toolsetId: r, isEditMode: i, connectUrl: a, listToolNames: o, authActions: s, onOAuthLogin: c, onNotifySuccess: l, onNotifyError: u, onChange: d, onAuthChange: f, onEnsureSaved: p, labels: m }) => {
|
|
471
471
|
let [h, _] = E(null), v = !!a && !!r, y = w(() => [{
|
|
472
472
|
value: z.Http,
|
|
473
473
|
label: "HTTP"
|
|
@@ -476,7 +476,7 @@ var se = {
|
|
|
476
476
|
label: "SSE"
|
|
477
477
|
}], []);
|
|
478
478
|
return C(() => {
|
|
479
|
-
if (!r || !o || !
|
|
479
|
+
if (!r || !o || !K(e.auth, i)) {
|
|
480
480
|
_(null);
|
|
481
481
|
return;
|
|
482
482
|
}
|
|
@@ -525,7 +525,7 @@ var se = {
|
|
|
525
525
|
d({ protocol: e });
|
|
526
526
|
}
|
|
527
527
|
}),
|
|
528
|
-
h ? /* @__PURE__ */ O(
|
|
528
|
+
h ? /* @__PURE__ */ O(R, {
|
|
529
529
|
id: "toolset-allowed-tools",
|
|
530
530
|
multiple: !0,
|
|
531
531
|
searchable: !0,
|
|
@@ -538,7 +538,7 @@ var se = {
|
|
|
538
538
|
})),
|
|
539
539
|
value: e.allowedTools,
|
|
540
540
|
onChange: (e) => d({ allowedTools: e })
|
|
541
|
-
}) : /* @__PURE__ */ O(
|
|
541
|
+
}) : /* @__PURE__ */ O(oe, {
|
|
542
542
|
id: "toolset-allowed-tools",
|
|
543
543
|
labelProps: { label: m?.allowedToolsLabel ?? "Allowed tools" },
|
|
544
544
|
placeholder: m?.allowedToolsPlaceholder ?? "Add tools, comma separated",
|
|
@@ -546,7 +546,7 @@ var se = {
|
|
|
546
546
|
onChange: (e) => d({ allowedTools: e }),
|
|
547
547
|
tagClassName: g
|
|
548
548
|
}),
|
|
549
|
-
/* @__PURE__ */ O(
|
|
549
|
+
/* @__PURE__ */ O(X, {
|
|
550
550
|
auth: e.auth,
|
|
551
551
|
errors: t,
|
|
552
552
|
isSaving: n,
|
|
@@ -561,202 +561,206 @@ var se = {
|
|
|
561
561
|
onEnsureSaved: p,
|
|
562
562
|
labels: m?.auth
|
|
563
563
|
}),
|
|
564
|
-
v && /* @__PURE__ */ O(
|
|
564
|
+
v && /* @__PURE__ */ O(ve, {
|
|
565
565
|
url: a ?? "",
|
|
566
566
|
labels: m?.connect,
|
|
567
567
|
className: "border-t border-tertiary pt-4"
|
|
568
568
|
})
|
|
569
569
|
]
|
|
570
570
|
});
|
|
571
|
-
},
|
|
571
|
+
}, be = [
|
|
572
572
|
"keyHeader",
|
|
573
573
|
"apiKey",
|
|
574
574
|
"clientId",
|
|
575
575
|
"clientSecret",
|
|
576
576
|
"authorizationEndpoint",
|
|
577
577
|
"tokenEndpoint"
|
|
578
|
-
],
|
|
578
|
+
], xe = ["endpoint", ...be], Z = new Set(xe), Se = (e) => {
|
|
579
579
|
let t = {};
|
|
580
|
-
for (let n of Object.keys(e))
|
|
580
|
+
for (let n of Object.keys(e)) Z.has(n) && (t[n] = !0);
|
|
581
581
|
return t;
|
|
582
|
-
},
|
|
583
|
-
let
|
|
582
|
+
}, Q = ({ initialForm: e, toolsetId: i, onPersist: a, onPostSaveLogin: s, onToolsetsChanged: l, onSaveSuccess: d, onSaveComplete: p, onBack: g, onDirtyChange: v, buildMcpUrl: y, listToolNames: x, authActions: ee, onOAuthLogin: te, onNotifySuccess: ne, onNotifyError: D, bucket: re, FileManagerModal: k, resolveIconUrl: ie, allowedMimeTypes: ae, maxFileSizeBytes: A, availableLocaleOptions: j, onRefineDescription: M, labels: N }) => {
|
|
583
|
+
let P = !!i, [F, I] = E(""), L = i || F, [R, oe] = E({
|
|
584
584
|
initialForm: e,
|
|
585
585
|
key: 0
|
|
586
|
-
});
|
|
587
|
-
|
|
586
|
+
}), [z, B] = E(e);
|
|
587
|
+
R.initialForm !== e && (oe({
|
|
588
588
|
initialForm: e,
|
|
589
|
-
key:
|
|
590
|
-
});
|
|
591
|
-
let { values:
|
|
592
|
-
initialValues:
|
|
589
|
+
key: R.key + 1
|
|
590
|
+
}), B(e));
|
|
591
|
+
let le = w(() => pe(e), [e]), { values: V, setValues: ue, markTouched: H, visibleErrorCodes: W, attemptSubmit: de } = o({
|
|
592
|
+
initialValues: le,
|
|
593
593
|
validationOptions: ce,
|
|
594
|
-
reseedKey:
|
|
595
|
-
}), [
|
|
596
|
-
...
|
|
597
|
-
...
|
|
598
|
-
}), [
|
|
594
|
+
reseedKey: R.key
|
|
595
|
+
}), [G, K] = E(e), q = w(() => ({
|
|
596
|
+
...G,
|
|
597
|
+
...V
|
|
598
|
+
}), [G, V]), he = w(() => JSON.stringify(q) !== JSON.stringify(z), [q, z]);
|
|
599
|
+
C(() => {
|
|
600
|
+
v?.(he);
|
|
601
|
+
}, [he, v]);
|
|
602
|
+
let [J, Y] = E(!1), [_e, X] = E({}), [ve, Z] = E({}), Q = T(null);
|
|
599
603
|
C(() => {
|
|
600
|
-
|
|
604
|
+
K(e), Q.current = e, X({}), Z({}), I("");
|
|
601
605
|
}, [e]);
|
|
602
|
-
let
|
|
603
|
-
let { metadata: t, setup: n } =
|
|
604
|
-
Object.keys(t).length > 0 && (
|
|
606
|
+
let Ce = S((e) => {
|
|
607
|
+
let { metadata: t, setup: n } = me(e);
|
|
608
|
+
Object.keys(t).length > 0 && (ue(t), "name" in t && H(r.Name), "version" in t && H(r.Version)), Object.keys(n).length !== 0 && (K((e) => ({
|
|
605
609
|
...e,
|
|
606
610
|
...n
|
|
607
|
-
})),
|
|
611
|
+
})), Z((e) => ({
|
|
608
612
|
...e,
|
|
609
|
-
...
|
|
610
|
-
})),
|
|
613
|
+
...Se(n)
|
|
614
|
+
})), X((e) => {
|
|
611
615
|
let t = { ...e };
|
|
612
616
|
for (let e of Object.keys(n)) delete t[e];
|
|
613
617
|
return t;
|
|
614
618
|
}));
|
|
615
|
-
}, [
|
|
616
|
-
|
|
619
|
+
}, [ue, H]), we = S((e) => {
|
|
620
|
+
K((t) => ({
|
|
617
621
|
...t,
|
|
618
622
|
auth: {
|
|
619
623
|
...t.auth,
|
|
620
624
|
...e
|
|
621
625
|
}
|
|
622
|
-
})),
|
|
626
|
+
})), Z((t) => ({
|
|
623
627
|
...t,
|
|
624
|
-
...
|
|
625
|
-
})),
|
|
628
|
+
...Se(e)
|
|
629
|
+
})), X((t) => {
|
|
626
630
|
let n = { ...t };
|
|
627
|
-
if ("authenticationType" in e || "withLogin" in e || "isLoggedIn" in e) for (let e of
|
|
631
|
+
if ("authenticationType" in e || "withLogin" in e || "isLoggedIn" in e) for (let e of be) delete n[e];
|
|
628
632
|
else for (let t of Object.keys(e)) delete n[t];
|
|
629
633
|
return n;
|
|
630
634
|
}), "isLoggedIn" in e && l();
|
|
631
|
-
}, [l]),
|
|
632
|
-
if (
|
|
633
|
-
|
|
635
|
+
}, [l]), Te = S(async () => {
|
|
636
|
+
if (L && Q.current != null && JSON.stringify(Q.current) === JSON.stringify(q)) return L;
|
|
637
|
+
Y(!0);
|
|
634
638
|
try {
|
|
635
|
-
let e = await a(
|
|
636
|
-
return e ? (
|
|
639
|
+
let e = await a(q, L);
|
|
640
|
+
return e ? (L || I(e), Q.current = q, B(q), v?.(!1), await l(), e) : null;
|
|
637
641
|
} catch {
|
|
638
642
|
return null;
|
|
639
643
|
} finally {
|
|
640
|
-
|
|
644
|
+
Y(!1);
|
|
641
645
|
}
|
|
642
646
|
}, [
|
|
643
|
-
|
|
644
|
-
|
|
647
|
+
q,
|
|
648
|
+
L,
|
|
645
649
|
a,
|
|
646
|
-
l
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
Y({}), q(!0);
|
|
657
|
-
try {
|
|
658
|
-
let e = await a(G, I);
|
|
659
|
-
if (!e) return;
|
|
660
|
-
await l(), d(G);
|
|
650
|
+
l,
|
|
651
|
+
v
|
|
652
|
+
]), Ee = S(async () => await Te() ?? !1, [Te]), $ = S((e) => {
|
|
653
|
+
let t = N?.validation, n = {};
|
|
654
|
+
return e.endpoint.trim() ? U(e.endpoint) || (n.endpoint = t?.endpointInvalid ?? "Enter a valid http(s) URL") : n.endpoint = t?.endpointRequired ?? "Endpoint is required", e.auth.isLoggedIn || (e.auth.authenticationType === c.ApiKey && (e.auth.keyHeader?.trim() || (n.keyHeader = t?.keyHeaderRequired ?? "Key name is required"), e.auth.withLogin === u.WithLogin && !e.auth.apiKey?.trim() && (n.apiKey = t?.apiKeyRequired ?? "API key is required")), e.auth.authenticationType === c.OAuth && e.auth.withLogin === u.WithConfig && (e.auth.clientId?.trim() || (n.clientId = t?.clientIdRequired ?? "Client ID is required"), !P && !e.auth.clientSecret?.trim() && (n.clientSecret = t?.clientSecretRequired ?? "Client secret is required"), e.auth.authorizationEndpoint?.trim() && !U(e.auth.authorizationEndpoint) && (n.authorizationEndpoint = t?.endpointInvalid ?? "Enter a valid http(s) URL"), e.auth.tokenEndpoint?.trim() && !U(e.auth.tokenEndpoint) && (n.tokenEndpoint = t?.endpointInvalid ?? "Enter a valid http(s) URL"))), n;
|
|
655
|
+
}, [N, P]), De = S(async () => {
|
|
656
|
+
let e = de(), t = $(q);
|
|
657
|
+
if (!e || Object.keys(t).length > 0) X(t);
|
|
658
|
+
else {
|
|
659
|
+
X({}), Y(!0);
|
|
661
660
|
try {
|
|
662
|
-
await
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
661
|
+
let e = await a(q, L);
|
|
662
|
+
if (!e) return;
|
|
663
|
+
B(q), await l(), d(q);
|
|
664
|
+
try {
|
|
665
|
+
await s(e, q.auth), p();
|
|
666
|
+
} catch (e) {
|
|
667
|
+
let { traceId: t } = await f(e);
|
|
668
|
+
D(N?.settings?.auth?.errorLoginFailed ?? "Failed to log in. Please check your credentials and try again.", t);
|
|
669
|
+
}
|
|
670
|
+
} catch {} finally {
|
|
671
|
+
Y(!1);
|
|
666
672
|
}
|
|
667
|
-
} catch {} finally {
|
|
668
|
-
q(!1);
|
|
669
673
|
}
|
|
670
674
|
}, [
|
|
671
|
-
|
|
672
|
-
|
|
675
|
+
de,
|
|
676
|
+
q,
|
|
673
677
|
$,
|
|
674
|
-
|
|
678
|
+
L,
|
|
675
679
|
a,
|
|
676
680
|
l,
|
|
677
681
|
d,
|
|
678
682
|
p,
|
|
679
683
|
s,
|
|
680
684
|
D,
|
|
681
|
-
|
|
682
|
-
]),
|
|
683
|
-
value:
|
|
684
|
-
onChange: (e) =>
|
|
685
|
-
onRefine:
|
|
686
|
-
disabled:
|
|
687
|
-
resetKey:
|
|
688
|
-
}),
|
|
685
|
+
N
|
|
686
|
+
]), Oe = b({
|
|
687
|
+
value: V.description,
|
|
688
|
+
onChange: (e) => Ce({ description: e }),
|
|
689
|
+
onRefine: M,
|
|
690
|
+
disabled: J,
|
|
691
|
+
resetKey: R.key
|
|
692
|
+
}), ke = M ? (e, t) => /* @__PURE__ */ O(_, {
|
|
689
693
|
isEnabled: !0,
|
|
690
694
|
fieldId: t,
|
|
691
|
-
label:
|
|
692
|
-
labels:
|
|
693
|
-
refinement:
|
|
694
|
-
disabled:
|
|
695
|
+
label: N?.general?.form?.description.label ?? "Description",
|
|
696
|
+
labels: N?.refinement,
|
|
697
|
+
refinement: Oe,
|
|
698
|
+
disabled: Oe.isPending || J,
|
|
695
699
|
children: e
|
|
696
|
-
}) : void 0,
|
|
697
|
-
let e =
|
|
698
|
-
for (let e of
|
|
699
|
-
if (!
|
|
700
|
+
}) : void 0, Ae = w(() => !fe(q, P), [q, P]), je = w(() => {
|
|
701
|
+
let e = N?.validation, n = $(q), r = { ..._e };
|
|
702
|
+
for (let e of xe) {
|
|
703
|
+
if (!ve[e]) continue;
|
|
700
704
|
let t = n[e];
|
|
701
705
|
t ? r[e] = t : delete r[e];
|
|
702
706
|
}
|
|
703
|
-
return
|
|
707
|
+
return W.name === t.Required ? r.name = e?.nameRequired ?? "Name is required" : W.name === t.TooLong ? r.name = e?.nameTooLong ?? `Use ${h} characters or fewer.` : W.name === t.ControlCharacters && (r.name = e?.nameControlCharacters ?? "Remove line breaks, tabs and other control characters."), W.description === t.TooLong && (r.description = e?.descriptionTooLong ?? `Use ${m} characters or fewer.`), W.version === t.InvalidFormat && (r.version = e?.versionInvalid ?? "Version must follow semantic versioning (e.g., 1.0.0)"), r;
|
|
704
708
|
}, [
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
709
|
+
ve,
|
|
710
|
+
_e,
|
|
711
|
+
q,
|
|
712
|
+
N,
|
|
713
|
+
W,
|
|
710
714
|
$
|
|
711
|
-
]),
|
|
715
|
+
]), Me = y && L ? y(L) : void 0;
|
|
712
716
|
return /* @__PURE__ */ O(n, {
|
|
713
|
-
title:
|
|
717
|
+
title: P ? N?.layout?.editTitle ?? "Edit toolset" : N?.layout?.createTitle ?? "Create toolset",
|
|
714
718
|
onBack: g,
|
|
715
719
|
onCancel: g,
|
|
716
|
-
onSubmit:
|
|
717
|
-
submitLabel:
|
|
718
|
-
isSubmitting:
|
|
719
|
-
isSubmitDisabled:
|
|
720
|
+
onSubmit: De,
|
|
721
|
+
submitLabel: P ? N?.layout?.saveLabel ?? "Save" : N?.layout?.createLabel ?? "Create",
|
|
722
|
+
isSubmitting: J,
|
|
723
|
+
isSubmitDisabled: Ae || Oe.isPending,
|
|
720
724
|
metadataSectionClassName: se.metadataSection,
|
|
721
725
|
setupSectionClassName: se.setupSection,
|
|
722
726
|
labels: {
|
|
723
|
-
backAriaLabel:
|
|
724
|
-
savingStatusLabel:
|
|
725
|
-
metadataTitle:
|
|
726
|
-
setupTitle:
|
|
727
|
-
cancelLabel:
|
|
727
|
+
backAriaLabel: N?.layout?.backAriaLabel ?? "Back to catalog",
|
|
728
|
+
savingStatusLabel: N?.layout?.savingStatusLabel ?? "Saving",
|
|
729
|
+
metadataTitle: N?.layout?.metadataSectionTitle ?? "Metadata",
|
|
730
|
+
setupTitle: N?.layout?.setupSectionTitle ?? "Setup",
|
|
731
|
+
cancelLabel: N?.layout?.cancelLabel ?? "Cancel"
|
|
728
732
|
},
|
|
729
|
-
metadata: /* @__PURE__ */ O(
|
|
730
|
-
form:
|
|
731
|
-
errors:
|
|
732
|
-
bucket:
|
|
733
|
-
FileManagerModal:
|
|
734
|
-
resolveIconUrl:
|
|
735
|
-
allowedMimeTypes:
|
|
736
|
-
maxFileSizeBytes:
|
|
737
|
-
availableLocaleOptions:
|
|
738
|
-
onChange:
|
|
739
|
-
renderDescription:
|
|
740
|
-
labels:
|
|
733
|
+
metadata: /* @__PURE__ */ O(ge, {
|
|
734
|
+
form: q,
|
|
735
|
+
errors: je,
|
|
736
|
+
bucket: re,
|
|
737
|
+
FileManagerModal: k,
|
|
738
|
+
resolveIconUrl: ie,
|
|
739
|
+
allowedMimeTypes: ae,
|
|
740
|
+
maxFileSizeBytes: A,
|
|
741
|
+
availableLocaleOptions: j,
|
|
742
|
+
onChange: Ce,
|
|
743
|
+
renderDescription: ke,
|
|
744
|
+
labels: N?.general
|
|
741
745
|
}),
|
|
742
|
-
setup: /* @__PURE__ */ O(
|
|
743
|
-
form:
|
|
744
|
-
errors:
|
|
745
|
-
isSaving:
|
|
746
|
-
toolsetId:
|
|
747
|
-
isEditMode:
|
|
748
|
-
connectUrl:
|
|
749
|
-
listToolNames:
|
|
750
|
-
authActions:
|
|
751
|
-
onOAuthLogin:
|
|
752
|
-
onNotifySuccess:
|
|
746
|
+
setup: /* @__PURE__ */ O(ye, {
|
|
747
|
+
form: q,
|
|
748
|
+
errors: je,
|
|
749
|
+
isSaving: J,
|
|
750
|
+
toolsetId: L,
|
|
751
|
+
isEditMode: P,
|
|
752
|
+
connectUrl: Me,
|
|
753
|
+
listToolNames: x,
|
|
754
|
+
authActions: ee,
|
|
755
|
+
onOAuthLogin: te,
|
|
756
|
+
onNotifySuccess: ne,
|
|
753
757
|
onNotifyError: D,
|
|
754
|
-
onChange:
|
|
755
|
-
onAuthChange:
|
|
756
|
-
onEnsureSaved:
|
|
757
|
-
labels:
|
|
758
|
+
onChange: Ce,
|
|
759
|
+
onAuthChange: we,
|
|
760
|
+
onEnsureSaved: Ee,
|
|
761
|
+
labels: N?.settings
|
|
758
762
|
})
|
|
759
763
|
});
|
|
760
764
|
};
|
|
761
765
|
//#endregion
|
|
762
|
-
export {
|
|
766
|
+
export { le as AUTH_TYPE_ICONS, B as DEFAULT_TOOLSET_VERSION, ge as GeneralForm, se as TOOLSET_EDITOR_CLASS, Q as ToolsetEditor, J as ToolsetOAuthLoginStatus, z as ToolsetTransportType, ue as getDefaultToolsetForm, K as isToolsetAuthValid, fe as isToolsetFormValid, U as isValidEndpointUrl, de as normalizeReturnedEndpointUrl };
|
|
@@ -105,6 +105,8 @@ export interface ToolsetEditorProps {
|
|
|
105
105
|
onSaveComplete: () => void;
|
|
106
106
|
/** Called for the Cancel button and the header back action. */
|
|
107
107
|
onBack: () => void;
|
|
108
|
+
/** Called with whether the form differs from the values it was seeded with or last persisted, on mount and whenever that changes; `false` right after a Log In draft persist. */
|
|
109
|
+
onDirtyChange?: (isDirty: boolean) => void;
|
|
108
110
|
/**
|
|
109
111
|
* Builds the MCP endpoint URL shown in the Connect section for a toolset
|
|
110
112
|
* id. Omit when the host has no external core URL configured — the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolset-editor-props.d.ts","sourceRoot":"","sources":["../../src/models/toolset-editor-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,kCAAkC,EACnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,yFAAyF;AACzF,MAAM,WAAW,6BAA6B;IAC5C,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qGAAqG;IACrG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gIAAgI;IAChI,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,6GAA6G;IAC7G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,8GAA8G;IAC9G,c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KAAK,MAAM,CAAC;IACxC,4CAA4C;IAC5C,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,yCAAyC;IACzC,gBAAgB,EAAE,MAAM,CAAC;IACzB,wDAAwD;IACxD,sBAAsB,EAAE,kCAAkC,EAAE,CAAC;IAC7D,uFAAuF;IACvF,mBAAmB,CAAC,EAAE,sBAAsB,CAAC;IAC7C,wEAAwE;IACxE,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B"}
|
|
1
|
+
{"version":3,"file":"toolset-editor-props.d.ts","sourceRoot":"","sources":["../../src/models/toolset-editor-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,kCAAkC,EACnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,yFAAyF;AACzF,MAAM,WAAW,6BAA6B;IAC5C,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qGAAqG;IACrG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gIAAgI;IAChI,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,6GAA6G;IAC7G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,8GAA8G;IAC9G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mFAAmF;IACnF,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,4CAA4C;IAC5C,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,yCAAyC;IACzC,gBAAgB,EAAE,MAAM,CAAC;IACzB,wDAAwD;IACxD,sBAAsB,EAAE,kCAAkC,EAAE,CAAC;IAC7D,uFAAuF;IACvF,mBAAmB,CAAC,EAAE,sBAAsB,CAAC;IAC7C,wEAAwE;IACxE,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-toolset-editor",
|
|
3
3
|
"description": "Host-agnostic form for authoring and editing a DIAL MCP toolset",
|
|
4
|
-
"version": "1.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.133",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@tabler/icons-react": "^3.44.0",
|
|
21
|
-
"@epam/ai-dial-builder-form": "1.3.0-dev.
|
|
21
|
+
"@epam/ai-dial-builder-form": "1.3.0-dev.133"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@epam/ai-dial-chat-hooks": "1.3.0-dev.
|
|
25
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
26
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
24
|
+
"@epam/ai-dial-chat-hooks": "1.3.0-dev.133",
|
|
25
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.133",
|
|
26
|
+
"@epam/ai-dial-ui-kit": "^0.16.0-dev.22",
|
|
27
27
|
"react": "^19.2.8"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|