@epam/ai-dial-toolset-editor 1.5.0-dev.4 → 1.5.0-dev.8
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/components/ToolsetEditor/ToolsetEditor.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +72 -70
- package/models/toolset-editor-props.d.ts +5 -3
- package/models/toolset-editor-props.d.ts.map +1 -1
- package/models/toolset-form.d.ts +10 -0
- package/models/toolset-form.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolsetEditor.d.ts","sourceRoot":"","sources":["../../../src/components/ToolsetEditor/ToolsetEditor.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolsetEditor.d.ts","sourceRoot":"","sources":["../../../src/components/ToolsetEditor/ToolsetEditor.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AA+C5E,uKAAuK;AACvK,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA8ehD,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export type { GeneralFormLabels } from './models/general-form-labels';
|
|
|
4
4
|
export type { ConnectMcpUrlContentLabels, SettingsFormColors, SettingsFormLabels, SettingsFormTypography, } from './models/settings-form-props';
|
|
5
5
|
export type { AuthSectionLabels } from './models/auth-section-props';
|
|
6
6
|
export { ToolsetOAuthLoginStatus } from './models/toolset-oauth-login';
|
|
7
|
+
export { ToolsetPersistReason } from './models/toolset-form';
|
|
7
8
|
export type { ToolsetOAuthLoginHandler, ToolsetOAuthLoginRequest, ToolsetOAuthLoginResult, } from './models/toolset-oauth-login';
|
|
8
9
|
export type { DeploymentGeneralFormData, ToolsetAuthActions, ToolsetAuthFormData, ToolsetFormData, ToolsetFormErrors, ToolsetLoginRequest, ToolsetLogoutRequest, } from './models/toolset-form';
|
|
9
10
|
export { AUTH_TYPE_ICONS, DEFAULT_TOOLSET_VERSION, ToolsetTransportType, } from './constants/toolsets';
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AACvC,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,YAAY,EACV,0BAA0B,EAC1B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,YAAY,EACV,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AACvC,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,YAAY,EACV,0BAA0B,EAC1B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,YAAY,EACV,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC"}
|
package/index.js
CHANGED
|
@@ -54,7 +54,9 @@ var B = {
|
|
|
54
54
|
[c.OAuth]: E,
|
|
55
55
|
[c.ApiKey]: D,
|
|
56
56
|
[c.None]: te
|
|
57
|
-
}, de = ()
|
|
57
|
+
}, de = /* @__PURE__ */ function(e) {
|
|
58
|
+
return e.Save = "save", e.LogIn = "log-in", e;
|
|
59
|
+
}({}), fe = () => ({
|
|
58
60
|
authenticationType: c.None,
|
|
59
61
|
withLogin: u.WithoutLogin,
|
|
60
62
|
isLoggedIn: !1
|
|
@@ -68,7 +70,7 @@ var B = {
|
|
|
68
70
|
endpoint: "",
|
|
69
71
|
protocol: V.Http,
|
|
70
72
|
allowedTools: [],
|
|
71
|
-
auth:
|
|
73
|
+
auth: fe()
|
|
72
74
|
}), W = (e) => {
|
|
73
75
|
if (!/^https?:\/\//.test(e) || e.endsWith(".") || e.endsWith("//")) return !1;
|
|
74
76
|
try {
|
|
@@ -76,10 +78,10 @@ var B = {
|
|
|
76
78
|
} catch {
|
|
77
79
|
return !1;
|
|
78
80
|
}
|
|
79
|
-
}, G = (e) => W(e.trim()),
|
|
81
|
+
}, G = (e) => W(e.trim()), pe = /^[A-Za-z][A-Za-z0-9+.-]*:[^\s#]+$/, me = 2048, he = (e) => {
|
|
80
82
|
let t = e?.trim() ?? "";
|
|
81
83
|
if (!t) return !0;
|
|
82
|
-
if (t.length >
|
|
84
|
+
if (t.length > me || !pe.test(t)) return !1;
|
|
83
85
|
try {
|
|
84
86
|
return !!new URL(t);
|
|
85
87
|
} catch {
|
|
@@ -98,21 +100,21 @@ var B = {
|
|
|
98
100
|
if (W(t)) return t;
|
|
99
101
|
}
|
|
100
102
|
return t;
|
|
101
|
-
}, J = (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 ?? "") &&
|
|
103
|
+
}, J = (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 ?? "") && he(e.resource) : !0, ge = (e) => s({ validateVersionPattern: !0 }, e), _e = (e, t = !1) => Object.keys(o(e, ge(t))).length === 0 && G(e.endpoint) && J(e.auth, t), Y = /* @__PURE__ */ new Set([
|
|
102
104
|
"name",
|
|
103
105
|
"description",
|
|
104
106
|
"iconUrl",
|
|
105
107
|
"version",
|
|
106
108
|
"topics",
|
|
107
109
|
"otherLocales"
|
|
108
|
-
]),
|
|
110
|
+
]), ve = (e) => ({
|
|
109
111
|
name: e.name,
|
|
110
112
|
description: e.description,
|
|
111
113
|
iconUrl: e.iconUrl,
|
|
112
114
|
version: e.version,
|
|
113
115
|
topics: e.topics,
|
|
114
116
|
otherLocales: e.otherLocales
|
|
115
|
-
}),
|
|
117
|
+
}), ye = (e) => {
|
|
116
118
|
let t = {}, n = {};
|
|
117
119
|
for (let [r, i] of Object.entries(e)) (Y.has(r) ? t : n)[r] = i;
|
|
118
120
|
return {
|
|
@@ -121,11 +123,11 @@ var B = {
|
|
|
121
123
|
};
|
|
122
124
|
}, X = /* @__PURE__ */ function(e) {
|
|
123
125
|
return e.Success = "success", e.Cancelled = "cancelled", e.PopupBlocked = "popup-blocked", e.InvalidConfig = "invalid-config", e.Failed = "failed", e;
|
|
124
|
-
}({}),
|
|
126
|
+
}({}), be = { openAccessDescription: "_openAccessDescription_1ltst_1" }, Z = "toolset-client-secret-keep-caption", xe = (e) => `******${e}`, Se = (e) => e === c.None ? u.WithoutLogin : u.WithLogin, Q = (e, t) => e === c.None ? t?.typeNone ?? "Open access" : e === c.OAuth ? t?.typeOAuth ?? "OAuth" : t?.typeApiKey ?? "API Key", Ce = ({ auth: e, errors: t, isSaving: n, toolsetId: r, isEditMode: i, endpoint: a, authActions: o, onOAuthLogin: s, onNotifySuccess: f, onNotifyError: p, onAuthChange: m, onEnsureSaved: h, labels: g, titleClassName: v = "dial-h3-text", openAccessDescriptionClassName: y = "dial-small-text" }) => {
|
|
125
127
|
let [b, x] = T(!1), [S, C] = T(!1), w = e.isLoggedIn || n || b, E = i && e.clientSecretHint && !e.clientSecret ? e.clientSecretHint : void 0, D = G(a) && J(e, i) && !w, te = (t) => {
|
|
126
128
|
w || t === e.authenticationType || m({
|
|
127
129
|
authenticationType: t,
|
|
128
|
-
withLogin:
|
|
130
|
+
withLogin: Se(t)
|
|
129
131
|
});
|
|
130
132
|
}, M = (e) => {
|
|
131
133
|
m({ withLogin: e });
|
|
@@ -252,7 +254,7 @@ var B = {
|
|
|
252
254
|
})
|
|
253
255
|
}),
|
|
254
256
|
e.authenticationType === c.None && /* @__PURE__ */ R("p", {
|
|
255
|
-
className: _("pt-2", y,
|
|
257
|
+
className: _("pt-2", y, be.openAccessDescription),
|
|
256
258
|
children: g?.openAccessDescription ?? "Open endpoint, no credentials"
|
|
257
259
|
}),
|
|
258
260
|
e.authenticationType === c.OAuth && /* @__PURE__ */ z("div", {
|
|
@@ -304,7 +306,7 @@ var B = {
|
|
|
304
306
|
label: g?.clientSecretLabel ?? "Client secret",
|
|
305
307
|
required: !i
|
|
306
308
|
},
|
|
307
|
-
placeholder: E == null ? g?.clientSecretPlaceholder ?? "Enter client secret" : (g?.clientSecretHintPlaceholder ??
|
|
309
|
+
placeholder: E == null ? g?.clientSecretPlaceholder ?? "Enter client secret" : (g?.clientSecretHintPlaceholder ?? xe)(E),
|
|
308
310
|
"aria-describedby": E == null ? void 0 : Z,
|
|
309
311
|
showPasswordLabel: g?.showClientSecretLabel ?? "Show client secret",
|
|
310
312
|
hidePasswordLabel: g?.hideClientSecretLabel ?? "Hide client secret",
|
|
@@ -437,10 +439,10 @@ var B = {
|
|
|
437
439
|
})
|
|
438
440
|
]
|
|
439
441
|
});
|
|
440
|
-
},
|
|
442
|
+
}, we = {
|
|
441
443
|
title: "_title_17wsg_1",
|
|
442
444
|
description: "_description_17wsg_5"
|
|
443
|
-
},
|
|
445
|
+
}, Te = b(({ url: e, className: t, labels: n, titleClassName: r = "dial-body-semi-text", descriptionClassName: i = "dial-small-text" }) => {
|
|
444
446
|
let { isCopied: a, copy: o } = v(e), s = n?.copiedLabel ?? "Copied!";
|
|
445
447
|
return /* @__PURE__ */ z("div", {
|
|
446
448
|
className: _("flex flex-col gap-3", t),
|
|
@@ -448,10 +450,10 @@ var B = {
|
|
|
448
450
|
/* @__PURE__ */ z("div", {
|
|
449
451
|
className: "flex flex-col gap-1",
|
|
450
452
|
children: [/* @__PURE__ */ R("p", {
|
|
451
|
-
className: _("text-start", r,
|
|
453
|
+
className: _("text-start", r, we.title),
|
|
452
454
|
children: n?.title ?? "Connect toolset"
|
|
453
455
|
}), /* @__PURE__ */ R("p", {
|
|
454
|
-
className: _("text-start", i,
|
|
456
|
+
className: _("text-start", i, we.description),
|
|
455
457
|
children: n?.description ?? "Copy endpoint URL to easily integrate toolset into your workflows"
|
|
456
458
|
})]
|
|
457
459
|
}),
|
|
@@ -468,7 +470,7 @@ var B = {
|
|
|
468
470
|
})
|
|
469
471
|
]
|
|
470
472
|
});
|
|
471
|
-
}),
|
|
473
|
+
}), Ee = { connectDivider: "_connectDivider_obfkd_1" }, De = ({ 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, colors: h, typography: v }) => {
|
|
472
474
|
let [y, b] = T(null), x = !!a && !!r, w = C(() => [{
|
|
473
475
|
value: V.Http,
|
|
474
476
|
label: "HTTP"
|
|
@@ -553,7 +555,7 @@ var B = {
|
|
|
553
555
|
onChange: (e) => d({ allowedTools: e }),
|
|
554
556
|
tagClassName: ee
|
|
555
557
|
}),
|
|
556
|
-
/* @__PURE__ */ R(
|
|
558
|
+
/* @__PURE__ */ R(Ce, {
|
|
557
559
|
auth: e.auth,
|
|
558
560
|
errors: t,
|
|
559
561
|
isSaving: n,
|
|
@@ -570,16 +572,16 @@ var B = {
|
|
|
570
572
|
titleClassName: v?.authTitleClassName,
|
|
571
573
|
openAccessDescriptionClassName: v?.openAccessDescriptionClassName
|
|
572
574
|
}),
|
|
573
|
-
x && /* @__PURE__ */ R(
|
|
575
|
+
x && /* @__PURE__ */ R(Te, {
|
|
574
576
|
url: a ?? "",
|
|
575
577
|
labels: m?.connect,
|
|
576
578
|
titleClassName: v?.connectTitleClassName,
|
|
577
579
|
descriptionClassName: v?.connectDescriptionClassName,
|
|
578
|
-
className: _("border-t pt-4",
|
|
580
|
+
className: _("border-t pt-4", Ee.connectDivider)
|
|
579
581
|
})
|
|
580
582
|
]
|
|
581
583
|
});
|
|
582
|
-
},
|
|
584
|
+
}, Oe = [
|
|
583
585
|
"keyHeader",
|
|
584
586
|
"apiKey",
|
|
585
587
|
"clientId",
|
|
@@ -587,11 +589,11 @@ var B = {
|
|
|
587
589
|
"authorizationEndpoint",
|
|
588
590
|
"tokenEndpoint",
|
|
589
591
|
"resource"
|
|
590
|
-
],
|
|
592
|
+
], ke = ["endpoint", ...Oe], $ = new Set(ke), Ae = (e) => {
|
|
591
593
|
let t = {};
|
|
592
594
|
for (let n of Object.keys(e)) $.has(n) && (t[n] = !0);
|
|
593
595
|
return t;
|
|
594
|
-
},
|
|
596
|
+
}, je = ({ initialForm: e, toolsetId: o, onPersist: s, onPostSaveLogin: l, onToolsetsChanged: f, onSaveSuccess: ee, onSaveComplete: g, onBack: _, onDirtyChange: v, buildMcpUrl: b, listToolNames: E, authActions: D, onOAuthLogin: te, onNotifySuccess: ne, onNotifyError: O, avatarPicker: re, availableLocaleOptions: ie, formatLocaleLabel: ae, onRefineDescription: k, labels: A, colors: j, typography: M, isVersionReadOnly: oe = !1 }) => {
|
|
595
597
|
let N = !!o, [se, P] = T(""), F = o || se, [I, ce] = T({
|
|
596
598
|
initialForm: e,
|
|
597
599
|
key: 0
|
|
@@ -600,55 +602,55 @@ var B = {
|
|
|
600
602
|
initialForm: e,
|
|
601
603
|
key: I.key + 1
|
|
602
604
|
}), z(e));
|
|
603
|
-
let V = C(() =>
|
|
605
|
+
let V = C(() => ve(e), [e]), le = C(() => ge(N), [N]), { values: H, setValues: fe, markTouched: U, visibleErrorCodes: W, attemptSubmit: pe } = a({
|
|
604
606
|
initialValues: V,
|
|
605
607
|
validationOptions: le,
|
|
606
608
|
reseedKey: I.key
|
|
607
|
-
}), [
|
|
608
|
-
...
|
|
609
|
+
}), [me, K] = T(e), q = C(() => ({
|
|
610
|
+
...me,
|
|
609
611
|
...H
|
|
610
|
-
}), [
|
|
612
|
+
}), [me, H]), J = C(() => JSON.stringify(q) !== JSON.stringify(L), [q, L]);
|
|
611
613
|
S(() => {
|
|
612
614
|
v?.(J);
|
|
613
615
|
}, [J, v]);
|
|
614
|
-
let [Y, X] = T(!1), [
|
|
616
|
+
let [Y, X] = T(!1), [be, Z] = T({}), [xe, Se] = T({}), Q = w(null);
|
|
615
617
|
S(() => {
|
|
616
|
-
K(e), Q.current = e, Z({}),
|
|
618
|
+
K(e), Q.current = e, Z({}), Se({}), P("");
|
|
617
619
|
}, [e]);
|
|
618
|
-
let
|
|
619
|
-
let { metadata: t, setup: n } =
|
|
620
|
-
Object.keys(t).length > 0 && (
|
|
620
|
+
let Ce = x((e) => {
|
|
621
|
+
let { metadata: t, setup: n } = ye(e);
|
|
622
|
+
Object.keys(t).length > 0 && (fe(t), "name" in t && U(r.Name), "version" in t && U(r.Version)), Object.keys(n).length !== 0 && (K((e) => ({
|
|
621
623
|
...e,
|
|
622
624
|
...n
|
|
623
|
-
})),
|
|
625
|
+
})), Se((e) => ({
|
|
624
626
|
...e,
|
|
625
|
-
...
|
|
627
|
+
...Ae(n)
|
|
626
628
|
})), Z((e) => {
|
|
627
629
|
let t = { ...e };
|
|
628
630
|
for (let e of Object.keys(n)) delete t[e];
|
|
629
631
|
return t;
|
|
630
632
|
}));
|
|
631
|
-
}, [
|
|
633
|
+
}, [fe, U]), we = x((e) => {
|
|
632
634
|
K((t) => ({
|
|
633
635
|
...t,
|
|
634
636
|
auth: {
|
|
635
637
|
...t.auth,
|
|
636
638
|
...e
|
|
637
639
|
}
|
|
638
|
-
})),
|
|
640
|
+
})), Se((t) => ({
|
|
639
641
|
...t,
|
|
640
|
-
...
|
|
642
|
+
...Ae(e)
|
|
641
643
|
})), Z((t) => {
|
|
642
644
|
let n = { ...t };
|
|
643
|
-
if ("authenticationType" in e || "withLogin" in e || "isLoggedIn" in e) for (let e of
|
|
645
|
+
if ("authenticationType" in e || "withLogin" in e || "isLoggedIn" in e) for (let e of Oe) delete n[e];
|
|
644
646
|
else for (let t of Object.keys(e)) delete n[t];
|
|
645
647
|
return n;
|
|
646
648
|
}), "isLoggedIn" in e && f();
|
|
647
|
-
}, [f]),
|
|
649
|
+
}, [f]), Te = x(async () => {
|
|
648
650
|
if (F && Q.current != null && JSON.stringify(Q.current) === JSON.stringify(q)) return F;
|
|
649
651
|
X(!0);
|
|
650
652
|
try {
|
|
651
|
-
let e = await s(q, F);
|
|
653
|
+
let e = await s(q, F, de.LogIn);
|
|
652
654
|
return e ? (F || P(e), Q.current = q, z(q), v?.(!1), await f(), e) : null;
|
|
653
655
|
} catch {
|
|
654
656
|
return null;
|
|
@@ -661,16 +663,16 @@ var B = {
|
|
|
661
663
|
s,
|
|
662
664
|
f,
|
|
663
665
|
v
|
|
664
|
-
]),
|
|
666
|
+
]), Ee = x(async () => await Te() ?? !1, [Te]), $ = x((e) => {
|
|
665
667
|
let t = A?.validation, n = {};
|
|
666
|
-
return e.endpoint.trim() ? G(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"), !N && !e.auth.clientSecret?.trim() && (n.clientSecret = t?.clientSecretRequired ?? "Client secret is required"), e.auth.authorizationEndpoint?.trim() ? G(e.auth.authorizationEndpoint) || (n.authorizationEndpoint = t?.endpointInvalid ?? "Enter a valid http(s) URL") : n.authorizationEndpoint = t?.authorizationEndpointRequired ?? "Authorization endpoint is required", e.auth.tokenEndpoint?.trim() ? G(e.auth.tokenEndpoint) || (n.tokenEndpoint = t?.endpointInvalid ?? "Enter a valid http(s) URL") : n.tokenEndpoint = t?.tokenEndpointRequired ?? "Token endpoint is required",
|
|
667
|
-
}, [A, N]),
|
|
668
|
-
let e =
|
|
668
|
+
return e.endpoint.trim() ? G(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"), !N && !e.auth.clientSecret?.trim() && (n.clientSecret = t?.clientSecretRequired ?? "Client secret is required"), e.auth.authorizationEndpoint?.trim() ? G(e.auth.authorizationEndpoint) || (n.authorizationEndpoint = t?.endpointInvalid ?? "Enter a valid http(s) URL") : n.authorizationEndpoint = t?.authorizationEndpointRequired ?? "Authorization endpoint is required", e.auth.tokenEndpoint?.trim() ? G(e.auth.tokenEndpoint) || (n.tokenEndpoint = t?.endpointInvalid ?? "Enter a valid http(s) URL") : n.tokenEndpoint = t?.tokenEndpointRequired ?? "Token endpoint is required", he(e.auth.resource) || (n.resource = t?.resourceInvalid ?? "Enter an absolute URI without a fragment"))), n;
|
|
669
|
+
}, [A, N]), je = x(async () => {
|
|
670
|
+
let e = pe(), t = $(q);
|
|
669
671
|
if (!e || Object.keys(t).length > 0) Z(t);
|
|
670
672
|
else {
|
|
671
673
|
Z({}), X(!0);
|
|
672
674
|
try {
|
|
673
|
-
let e = await s(q, F);
|
|
675
|
+
let e = await s(q, F, de.Save);
|
|
674
676
|
if (!e) return;
|
|
675
677
|
z(q), await f(), ee(q);
|
|
676
678
|
try {
|
|
@@ -684,7 +686,7 @@ var B = {
|
|
|
684
686
|
}
|
|
685
687
|
}
|
|
686
688
|
}, [
|
|
687
|
-
|
|
689
|
+
pe,
|
|
688
690
|
q,
|
|
689
691
|
$,
|
|
690
692
|
F,
|
|
@@ -695,47 +697,47 @@ var B = {
|
|
|
695
697
|
l,
|
|
696
698
|
O,
|
|
697
699
|
A
|
|
698
|
-
]),
|
|
700
|
+
]), Me = y({
|
|
699
701
|
value: H.description,
|
|
700
|
-
onChange: (e) =>
|
|
702
|
+
onChange: (e) => Ce({ description: e }),
|
|
701
703
|
onRefine: k,
|
|
702
704
|
disabled: Y,
|
|
703
705
|
resetKey: I.key
|
|
704
|
-
}),
|
|
706
|
+
}), Ne = k ? (e, t) => /* @__PURE__ */ R(h, {
|
|
705
707
|
isEnabled: !0,
|
|
706
708
|
fieldId: t,
|
|
707
709
|
label: A?.general?.form?.description.label ?? "Description",
|
|
708
710
|
labels: A?.refinement,
|
|
709
|
-
refinement:
|
|
710
|
-
disabled:
|
|
711
|
+
refinement: Me,
|
|
712
|
+
disabled: Me.isPending || Y,
|
|
711
713
|
children: e
|
|
712
|
-
}) : void 0,
|
|
714
|
+
}) : void 0, Pe = C(() => ({
|
|
713
715
|
form: A?.general?.form ?? ue,
|
|
714
716
|
avatarPicker: A?.general?.avatarPicker
|
|
715
|
-
}), [A?.general?.form, A?.general?.avatarPicker]),
|
|
716
|
-
let e = A?.validation, n = $(q), r = { ...
|
|
717
|
-
for (let e of
|
|
718
|
-
if (!
|
|
717
|
+
}), [A?.general?.form, A?.general?.avatarPicker]), Fe = C(() => !_e(q, N), [q, N]), Ie = C(() => {
|
|
718
|
+
let e = A?.validation, n = $(q), r = { ...be };
|
|
719
|
+
for (let e of ke) {
|
|
720
|
+
if (!xe[e]) continue;
|
|
719
721
|
let t = n[e];
|
|
720
722
|
t ? r[e] = t : delete r[e];
|
|
721
723
|
}
|
|
722
724
|
return W.name === t.Required ? r.name = e?.nameRequired ?? "Name is required" : W.name === t.TooLong ? r.name = e?.nameTooLong ?? `Use ${m} 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 ${p} characters or fewer.`), W.version === t.InvalidFormat && (r.version = e?.versionInvalid ?? "Version may only contain letters, digits, dots, underscores, plus signs and hyphens, up to 64 characters; it cannot end with a dot, contain two underscores in a row, or start with an underscore"), r;
|
|
723
725
|
}, [
|
|
726
|
+
xe,
|
|
724
727
|
be,
|
|
725
|
-
ye,
|
|
726
728
|
q,
|
|
727
729
|
A,
|
|
728
730
|
W,
|
|
729
731
|
$
|
|
730
|
-
]),
|
|
732
|
+
]), Le = b && F ? b(F) : void 0;
|
|
731
733
|
return /* @__PURE__ */ R(n, {
|
|
732
734
|
title: N ? A?.layout?.editTitle ?? "Edit toolset" : A?.layout?.createTitle ?? "Create toolset",
|
|
733
735
|
onBack: _,
|
|
734
736
|
onCancel: _,
|
|
735
|
-
onSubmit:
|
|
737
|
+
onSubmit: je,
|
|
736
738
|
submitLabel: N ? A?.layout?.saveLabel ?? "Save" : A?.layout?.createLabel ?? "Create",
|
|
737
739
|
isSubmitting: Y,
|
|
738
|
-
isSubmitDisabled:
|
|
740
|
+
isSubmitDisabled: Fe || Me.isPending,
|
|
739
741
|
metadataSectionClassName: B.metadataSection,
|
|
740
742
|
setupSectionClassName: B.setupSection,
|
|
741
743
|
labels: {
|
|
@@ -747,31 +749,31 @@ var B = {
|
|
|
747
749
|
},
|
|
748
750
|
metadata: /* @__PURE__ */ R(i, {
|
|
749
751
|
values: q,
|
|
750
|
-
errors:
|
|
751
|
-
onChange:
|
|
752
|
+
errors: Ie,
|
|
753
|
+
onChange: Ce,
|
|
752
754
|
avatarPicker: re,
|
|
753
755
|
availableLocaleOptions: ie,
|
|
754
756
|
formatLocaleLabel: ae,
|
|
755
|
-
renderDescription:
|
|
756
|
-
labels:
|
|
757
|
+
renderDescription: Ne,
|
|
758
|
+
labels: Pe,
|
|
757
759
|
isVersionReadOnly: oe,
|
|
758
760
|
versionReadOnlyTooltip: A?.versionReadOnlyTooltip
|
|
759
761
|
}),
|
|
760
|
-
setup: /* @__PURE__ */ R(
|
|
762
|
+
setup: /* @__PURE__ */ R(De, {
|
|
761
763
|
form: q,
|
|
762
|
-
errors:
|
|
764
|
+
errors: Ie,
|
|
763
765
|
isSaving: Y,
|
|
764
766
|
toolsetId: F,
|
|
765
767
|
isEditMode: N,
|
|
766
|
-
connectUrl:
|
|
768
|
+
connectUrl: Le,
|
|
767
769
|
listToolNames: E,
|
|
768
770
|
authActions: D,
|
|
769
771
|
onOAuthLogin: te,
|
|
770
772
|
onNotifySuccess: ne,
|
|
771
773
|
onNotifyError: O,
|
|
772
|
-
onChange:
|
|
773
|
-
onAuthChange:
|
|
774
|
-
onEnsureSaved:
|
|
774
|
+
onChange: Ce,
|
|
775
|
+
onAuthChange: we,
|
|
776
|
+
onEnsureSaved: Ee,
|
|
775
777
|
labels: A?.settings,
|
|
776
778
|
colors: j?.settings,
|
|
777
779
|
typography: M?.settings
|
|
@@ -779,4 +781,4 @@ var B = {
|
|
|
779
781
|
});
|
|
780
782
|
};
|
|
781
783
|
//#endregion
|
|
782
|
-
export { H as AUTH_TYPE_ICONS, le as DEFAULT_TOOLSET_VERSION, B as TOOLSET_EDITOR_CLASS,
|
|
784
|
+
export { H as AUTH_TYPE_ICONS, le as DEFAULT_TOOLSET_VERSION, B as TOOLSET_EDITOR_CLASS, je as ToolsetEditor, X as ToolsetOAuthLoginStatus, de as ToolsetPersistReason, V as ToolsetTransportType, U as getDefaultToolsetForm, J as isToolsetAuthValid, _e as isToolsetFormValid, G as isValidEndpointUrl, q as normalizeReturnedEndpointUrl };
|
|
@@ -2,7 +2,7 @@ import { DeploymentCreationFormLocaleOption, MetadataFormAvatarPicker } from '..
|
|
|
2
2
|
import { TextRefinementCallback, TextRefinementLabels } from '../../../chat-shared/src/index.ts';
|
|
3
3
|
import { GeneralFormLabels } from './general-form-labels';
|
|
4
4
|
import { SettingsFormColors, SettingsFormLabels, SettingsFormTypography } from './settings-form-props';
|
|
5
|
-
import { ToolsetAuthActions, ToolsetAuthFormData, ToolsetFormData } from './toolset-form';
|
|
5
|
+
import { ToolsetAuthActions, ToolsetAuthFormData, ToolsetFormData, ToolsetPersistReason } from './toolset-form';
|
|
6
6
|
import { ToolsetOAuthLoginHandler } from './toolset-oauth-login';
|
|
7
7
|
/** Validation messages surfaced under the fields, all optional with English defaults. */
|
|
8
8
|
export interface ToolsetEditorValidationLabels {
|
|
@@ -99,9 +99,11 @@ export interface ToolsetEditorProps {
|
|
|
99
99
|
* Persists the form — creating the toolset when `toolsetId` is empty,
|
|
100
100
|
* updating it otherwise. The host owns the request mapping and its own
|
|
101
101
|
* failure notification; resolves the persisted toolset id, or `null` when
|
|
102
|
-
* the request failed.
|
|
102
|
+
* the request failed. `reason` tells a Save apart from the draft persist
|
|
103
|
+
* Log In runs first, so a host can open its own save step for the one and
|
|
104
|
+
* not the other.
|
|
103
105
|
*/
|
|
104
|
-
onPersist: (form: ToolsetFormData, toolsetId: string) => Promise<string | null>;
|
|
106
|
+
onPersist: (form: ToolsetFormData, toolsetId: string, reason: ToolsetPersistReason) => Promise<string | null>;
|
|
105
107
|
/**
|
|
106
108
|
* Runs the post-save automatic login for an API-key toolset configured
|
|
107
109
|
* "With login". Rejections are surfaced by the editor as a login failure
|
|
@@ -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,kCAAkC,EAClC,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,
|
|
1
|
+
{"version":3,"file":"toolset-editor-props.d.ts","sourceRoot":"","sources":["../../src/models/toolset-editor-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kCAAkC,EAClC,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACrB,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,MAA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IG;IACH,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACzD,gFAAgF;IAChF,WAAW,EAAE,kBAAkB,CAAC;IAChC,mEAAmE;IACnE,YAAY,EAAE,wBAAwB,CAAC;IACvC,2DAA2D;IAC3D,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,gFAAgF;IAChF,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,4HAA4H;IAC5H,YAAY,EAAE,wBAAwB,CAAC;IACvC,wDAAwD;IACxD,sBAAsB,EAAE,kCAAkC,EAAE,CAAC;IAC7D,6GAA6G;IAC7G,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC7C,uFAAuF;IACvF,mBAAmB,CAAC,EAAE,sBAAsB,CAAC;IAC7C,wEAAwE;IACxE,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,iIAAiI;IACjI,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,yDAAyD;IACzD,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,kCAAkC;IAClC,UAAU,CAAC,EAAE,uBAAuB,CAAC;CACtC"}
|
package/models/toolset-form.d.ts
CHANGED
|
@@ -57,6 +57,16 @@ export interface ToolsetFormData extends DeploymentGeneralFormData {
|
|
|
57
57
|
/** Authentication form state for the toolset. */
|
|
58
58
|
auth: ToolsetAuthFormData;
|
|
59
59
|
}
|
|
60
|
+
/** Why the editor asks the host to persist the form. */
|
|
61
|
+
export declare enum ToolsetPersistReason {
|
|
62
|
+
/** The user pressed the primary Save/Create action. */
|
|
63
|
+
Save = "save",
|
|
64
|
+
/**
|
|
65
|
+
* Log In needs the backend to hold the current endpoint and auth settings
|
|
66
|
+
* before it authenticates; the user did not ask to save.
|
|
67
|
+
*/
|
|
68
|
+
LogIn = "log-in"
|
|
69
|
+
}
|
|
60
70
|
export interface ToolsetFormErrors {
|
|
61
71
|
/** Validation message for the Metadata name field. */
|
|
62
72
|
name?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolset-form.d.ts","sourceRoot":"","sources":["../../src/models/toolset-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AACpF,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EACvB,SAAS,EACV,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAElE,MAAM,WAAW,mBAAmB;IAClC,yDAAyD;IACzD,kBAAkB,EAAE,gBAAgB,CAAC;IACrC,qFAAqF;IACrF,SAAS,EAAE,SAAS,CAAC;IACrB,uEAAuE;IACvE,UAAU,EAAE,OAAO,CAAC;IACpB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gGAAgG;IAChG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yCAAyC;IACzC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,uEAAuE;IACvE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wEAAwE;IACxE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,8GAA8G;IAC9G,QAAQ,CAAC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,EAAE,mBAAmB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1E,0EAA0E;IAC1E,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5E,8EAA8E;IAC9E,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACxE"}
|
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.5.0-dev.
|
|
4
|
+
"version": "1.5.0-dev.8",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.css",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@tabler/icons-react": "^3.50.0",
|
|
25
|
-
"@epam/ai-dial-builder-form": "1.5.0-dev.
|
|
25
|
+
"@epam/ai-dial-builder-form": "1.5.0-dev.8"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@epam/ai-dial-chat-hooks": "1.5.0-dev.
|
|
29
|
-
"@epam/ai-dial-chat-shared": "1.5.0-dev.
|
|
28
|
+
"@epam/ai-dial-chat-hooks": "1.5.0-dev.8",
|
|
29
|
+
"@epam/ai-dial-chat-shared": "1.5.0-dev.8",
|
|
30
30
|
"@epam/ai-dial-ui-kit": "^0.17.0",
|
|
31
31
|
"react": "^19.2.8"
|
|
32
32
|
},
|