@epam/ai-dial-chat-hooks 1.2.0-dev.250 → 1.2.0-dev.253
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/catalog/map-deployment-limits-to-catalog.js +16 -24
- package/catalog/map-deployment-limits-to-input.js +1 -1
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +63 -63
- package/catalog.d.ts +10 -7
- package/catalog.js +21 -21
- package/index.d.ts +10 -7
- package/index.js +134 -134
- package/package.json +15 -15
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { buildResetFields as e } from "./map-deployment-limits-to-input.js";
|
|
2
2
|
import { CatalogLimitStatus as t } from "@epam/ai-dial-catalog";
|
|
3
3
|
//#region src/catalog/map-deployment-limits-to-catalog.ts
|
|
4
4
|
var n = [
|
|
5
5
|
{
|
|
6
6
|
key: "dayTokenStats",
|
|
7
|
-
labelField: "tokensPerDay"
|
|
8
|
-
costKey: "dayCostStats"
|
|
7
|
+
labelField: "tokensPerDay"
|
|
9
8
|
},
|
|
10
9
|
{
|
|
11
10
|
key: "weekTokenStats",
|
|
12
|
-
labelField: "tokensPerWeek"
|
|
13
|
-
costKey: "weekCostStats"
|
|
11
|
+
labelField: "tokensPerWeek"
|
|
14
12
|
},
|
|
15
13
|
{
|
|
16
14
|
key: "monthTokenStats",
|
|
17
|
-
labelField: "tokensPerMonth"
|
|
18
|
-
costKey: "monthCostStats"
|
|
15
|
+
labelField: "tokensPerMonth"
|
|
19
16
|
}
|
|
20
17
|
], r = 2 ** 53 - 1, i = .75, a = [1e6, 1e3], o = new Intl.NumberFormat(void 0, {
|
|
21
18
|
notation: "compact",
|
|
@@ -23,15 +20,13 @@ var n = [
|
|
|
23
20
|
}), s = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), c = (e) => {
|
|
24
21
|
let t = a.find((t) => Math.abs(e) >= t);
|
|
25
22
|
return t == null ? e : Math.trunc(e / t * 10) / 10 * t;
|
|
26
|
-
}, l = (e) => e != null && Number.isFinite(e.total) && Number.isFinite(e.used) && e.total > 0, u = (e) => e >= r, d = (
|
|
27
|
-
|
|
28
|
-
}, p = (e, t, n, r) => {
|
|
29
|
-
let i = Math.max(0, e.used), a = e.total, l = o.format(c(i)), d = o.format(a), f = s.format(i), p = s.format(a), m = u(a);
|
|
23
|
+
}, l = (e) => e != null && Number.isFinite(e.total) && Number.isFinite(e.used) && e.total > 0, u = (e) => e >= r, d = (t, n, r) => {
|
|
24
|
+
let i = Math.max(0, t.used), a = t.total, l = o.format(c(i)), d = o.format(a), f = s.format(i), p = s.format(a), m = u(a);
|
|
30
25
|
return {
|
|
31
|
-
label:
|
|
26
|
+
label: n,
|
|
32
27
|
used: i,
|
|
33
28
|
total: a,
|
|
34
|
-
|
|
29
|
+
...e(t, r.formatResetTime),
|
|
35
30
|
...m ? {
|
|
36
31
|
isUnlimited: !0,
|
|
37
32
|
noteLabel: r.followsCostLimit
|
|
@@ -41,33 +36,30 @@ var n = [
|
|
|
41
36
|
},
|
|
42
37
|
valueLabel: m ? l : r.formatValueLabel(l, d),
|
|
43
38
|
ariaLabel: m ? r.formatFollowsCostLimitAriaLabel({
|
|
44
|
-
label:
|
|
39
|
+
label: n,
|
|
45
40
|
used: f
|
|
46
41
|
}) : r.formatProgressAriaLabel({
|
|
47
|
-
label:
|
|
42
|
+
label: n,
|
|
48
43
|
used: f,
|
|
49
44
|
total: p
|
|
50
45
|
})
|
|
51
46
|
};
|
|
52
|
-
},
|
|
53
|
-
let r =
|
|
47
|
+
}, f = (e) => u(e.total) ? 0 : Math.max(e.used, 0) / e.total, p = (e) => e.reduce((e, n) => {
|
|
48
|
+
let r = f(n);
|
|
54
49
|
return r >= 1 ? t.LimitReached : r >= i && e !== t.LimitReached ? t.RunningLow : e;
|
|
55
|
-
}, void 0),
|
|
50
|
+
}, void 0), m = (e, t) => {
|
|
56
51
|
if (e == null) return;
|
|
57
52
|
let r = [], i = n.flatMap((n) => {
|
|
58
53
|
let i = e[n.key];
|
|
59
|
-
|
|
60
|
-
r.push(i);
|
|
61
|
-
let a = f(e[n.costKey], t);
|
|
62
|
-
return [p(i, t[n.labelField], a, t)];
|
|
54
|
+
return l(i) ? (r.push(i), [d(i, t[n.labelField], t)]) : [];
|
|
63
55
|
});
|
|
64
56
|
return i.length > 0 ? {
|
|
65
57
|
groups: [{
|
|
66
58
|
label: t.tokenGroup,
|
|
67
59
|
rows: i
|
|
68
60
|
}],
|
|
69
|
-
status:
|
|
61
|
+
status: p(r)
|
|
70
62
|
} : void 0;
|
|
71
63
|
};
|
|
72
64
|
//#endregion
|
|
73
|
-
export {
|
|
65
|
+
export { m as mapDeploymentLimitsDtoToCatalogLimits };
|
|
@@ -5,126 +5,126 @@ import { getRunnerSchemas as r, isQuickAppSchema as i } from "../../shared/appli
|
|
|
5
5
|
import { CatalogEntityType as a } from "@epam/ai-dial-chat-shared";
|
|
6
6
|
import { useCallback as o, useMemo as s, useState as c } from "react";
|
|
7
7
|
//#region src/catalog/useCatalogEditNavigation/useCatalogEditNavigation.ts
|
|
8
|
-
var l =
|
|
9
|
-
let
|
|
8
|
+
var l = ({ deployments: l, isCustomAppsEnabled: u, isSchemaAppsEnabled: d, isHideCustomAppCreationEnabled: f, isToolsetsEnabled: p, isPromptsEnabled: m, schemas: h, urls: g, onNavigate: _, deletePrompt: v, deleteToolset: y, deleteSkill: b, deleteApplication: x, refetchPrompts: S, refetchToolsets: C, refetchSkills: w, refetchDeployments: T, onDeleteSuccess: E, labels: D, onNotify: O, onSkillUploadClick: k }) => {
|
|
9
|
+
let A = s(() => r(h), [h]), [j, M] = c(""), N = d && !f;
|
|
10
10
|
return {
|
|
11
11
|
handleEdit: o((e) => {
|
|
12
12
|
if (e.type === a.Prompt) {
|
|
13
|
-
|
|
13
|
+
_(g.buildPromptEditUrl(e.id));
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
16
|
if (e.type === a.Skill) {
|
|
17
|
-
|
|
17
|
+
_(g.buildSkillEditUrl(e.id));
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
20
|
if (e.type === a.Toolset) {
|
|
21
|
-
|
|
21
|
+
_(g.buildToolsetEditUrl(e.id));
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
|
-
let n = t(
|
|
25
|
-
if (
|
|
26
|
-
|
|
24
|
+
let n = t(l, e.id);
|
|
25
|
+
if (u && n != null && !n.applicationTypeSchemaId) {
|
|
26
|
+
_(g.buildCustomAppEditUrl(e.id));
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
|
-
let r =
|
|
30
|
-
r &&
|
|
29
|
+
let r = A.find((e) => e.id === n?.applicationTypeSchemaId)?.id ?? A.find((e) => i(e))?.id;
|
|
30
|
+
r && _(g.buildQuickAppEditUrl(r, e.id));
|
|
31
31
|
}, [
|
|
32
|
+
l,
|
|
32
33
|
u,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
_
|
|
34
|
+
A,
|
|
35
|
+
_,
|
|
36
|
+
g
|
|
37
37
|
]),
|
|
38
38
|
handleDelete: o(async (t) => {
|
|
39
39
|
try {
|
|
40
|
-
if (t.type === a.Prompt) await
|
|
41
|
-
else if (t.type === a.Toolset) await
|
|
40
|
+
if (t.type === a.Prompt) await v(t.id), await S();
|
|
41
|
+
else if (t.type === a.Toolset) await y(t.id), await C();
|
|
42
42
|
else if (t.type === a.Skill) {
|
|
43
43
|
let e = n(t.id);
|
|
44
44
|
if (e == null) throw Error(`Invalid skill resource url: ${t.id}`);
|
|
45
|
-
await
|
|
46
|
-
} else await
|
|
47
|
-
|
|
45
|
+
await b(e.bucket, e.path), await w();
|
|
46
|
+
} else await x(t.id), await T();
|
|
47
|
+
E(t);
|
|
48
48
|
} catch (t) {
|
|
49
49
|
let { traceId: n } = await e(t);
|
|
50
|
-
throw
|
|
51
|
-
message:
|
|
50
|
+
throw O({
|
|
51
|
+
message: D.deleteError,
|
|
52
52
|
requestId: n
|
|
53
53
|
}), t;
|
|
54
54
|
}
|
|
55
55
|
}, [
|
|
56
|
+
v,
|
|
56
57
|
y,
|
|
57
58
|
b,
|
|
58
59
|
x,
|
|
60
|
+
C,
|
|
61
|
+
T,
|
|
59
62
|
S,
|
|
60
63
|
w,
|
|
61
64
|
E,
|
|
62
|
-
C,
|
|
63
|
-
T,
|
|
64
65
|
D,
|
|
65
|
-
O
|
|
66
|
-
k
|
|
66
|
+
O
|
|
67
67
|
]),
|
|
68
68
|
createOptions: s(() => {
|
|
69
|
-
let e =
|
|
70
|
-
|
|
69
|
+
let e = j.trim().toLocaleLowerCase(), t = (t) => !e || t.toLocaleLowerCase().includes(e), n = [];
|
|
70
|
+
N && A.map((e) => ({
|
|
71
71
|
id: e.id,
|
|
72
|
-
label:
|
|
73
|
-
})).
|
|
72
|
+
label: e.displayName || e.id
|
|
73
|
+
})).filter((e) => t(e.label)).forEach((e) => {
|
|
74
74
|
n.push({
|
|
75
75
|
key: `runner:${e.id}`,
|
|
76
76
|
label: e.label,
|
|
77
|
-
onClick: () =>
|
|
77
|
+
onClick: () => _(g.buildQuickAppCreateUrl(e.id))
|
|
78
78
|
});
|
|
79
|
-
}),
|
|
79
|
+
}), p && t(D.createToolset) && n.push({
|
|
80
80
|
key: "toolset",
|
|
81
|
-
label:
|
|
82
|
-
onClick: () =>
|
|
83
|
-
}),
|
|
81
|
+
label: D.createToolset,
|
|
82
|
+
onClick: () => _(g.buildToolsetCreateUrl())
|
|
83
|
+
}), u && !f && t(D.createCustomApp) && n.push({
|
|
84
84
|
key: "custom-app",
|
|
85
|
-
label:
|
|
86
|
-
onClick: () =>
|
|
85
|
+
label: D.createCustomApp,
|
|
86
|
+
onClick: () => _(g.buildCustomAppCreateUrl())
|
|
87
87
|
});
|
|
88
88
|
let r = [{
|
|
89
89
|
key: "skill-write-instructions",
|
|
90
|
-
label:
|
|
91
|
-
onClick: () =>
|
|
90
|
+
label: D.createSkillWriteInstructions,
|
|
91
|
+
onClick: () => _(g.buildSkillCreateUrl())
|
|
92
92
|
}, {
|
|
93
93
|
key: "skill-upload",
|
|
94
|
-
label:
|
|
95
|
-
onClick:
|
|
96
|
-
}],
|
|
97
|
-
return
|
|
94
|
+
label: D.createSkillUpload,
|
|
95
|
+
onClick: k
|
|
96
|
+
}], i = t(D.createSkill) ? r : r.filter((e) => t(String(e.label)));
|
|
97
|
+
return i.length > 0 && n.push({
|
|
98
98
|
key: "skill",
|
|
99
|
-
label:
|
|
100
|
-
children:
|
|
101
|
-
}),
|
|
99
|
+
label: D.createSkill,
|
|
100
|
+
children: i
|
|
101
|
+
}), m && t(D.createPrompt) && n.push({
|
|
102
102
|
key: "prompt",
|
|
103
|
-
label:
|
|
104
|
-
onClick: () =>
|
|
105
|
-
}), n;
|
|
103
|
+
label: D.createPrompt,
|
|
104
|
+
onClick: () => _(g.buildPromptCreateUrl())
|
|
105
|
+
}), n.sort((e, t) => String(e.label ?? "").localeCompare(String(t.label ?? ""), void 0, { sensitivity: "base" }));
|
|
106
106
|
}, [
|
|
107
|
-
M,
|
|
108
|
-
P,
|
|
109
107
|
j,
|
|
110
|
-
|
|
108
|
+
N,
|
|
109
|
+
A,
|
|
111
110
|
_,
|
|
112
|
-
|
|
113
|
-
O,
|
|
114
|
-
p,
|
|
111
|
+
g,
|
|
115
112
|
m,
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
D,
|
|
114
|
+
f,
|
|
115
|
+
p,
|
|
116
|
+
u,
|
|
117
|
+
k
|
|
118
118
|
]),
|
|
119
|
-
createSearch: s(() =>
|
|
120
|
-
value:
|
|
121
|
-
onChange:
|
|
119
|
+
createSearch: s(() => N && A.length > 0 ? {
|
|
120
|
+
value: j,
|
|
121
|
+
onChange: M
|
|
122
122
|
} : void 0, [
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
N,
|
|
124
|
+
A.length,
|
|
125
|
+
j
|
|
126
126
|
])
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
129
|
//#endregion
|
|
130
|
-
export {
|
|
130
|
+
export { l as useCatalogEditNavigation };
|
package/catalog.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { DialToolsetAuthSettingsDto } from '@epam/ai-dial-chat-api-client';
|
|
|
18
18
|
import { DialToolsetDto } from '@epam/ai-dial-chat-api-client';
|
|
19
19
|
import { DropdownItem } from '@epam/ai-dial-ui-kit';
|
|
20
20
|
import { ExternalServicesApi } from '@epam/ai-dial-chat-api-client';
|
|
21
|
+
import { LimitStatsDto } from '@epam/ai-dial-chat-api-client';
|
|
21
22
|
import { ListFilesResponseDto } from '@epam/ai-dial-chat-api-client';
|
|
22
23
|
import { NotificationVariant } from '@epam/ai-dial-ui-kit';
|
|
23
24
|
import { OfflineCredentialsApi } from '@epam/ai-dial-chat-api-client';
|
|
@@ -37,6 +38,7 @@ import { ToolsetLoginBodyDto } from '@epam/ai-dial-chat-api-client';
|
|
|
37
38
|
import { ToolsetLogoutBodyDto } from '@epam/ai-dial-chat-api-client';
|
|
38
39
|
import { UnpublishCatalogEntityDto } from '@epam/ai-dial-chat-api-client';
|
|
39
40
|
import { UnpublishResultDto } from '@epam/ai-dial-chat-api-client';
|
|
41
|
+
import { UsageLimitProgressRow } from '@epam/ai-dial-catalog';
|
|
40
42
|
|
|
41
43
|
/** Feature-support flags for an agent (application) deployment. */
|
|
42
44
|
export declare interface AgentCapabilities {
|
|
@@ -111,6 +113,8 @@ export declare const buildDeploymentConnectApi: (baseUrl: string, id: string, {
|
|
|
111
113
|
*/
|
|
112
114
|
export declare const buildPromptOverview: (prompt: PromptResponseDto, labels: PromptOverviewLabels) => CatalogItemOverview;
|
|
113
115
|
|
|
116
|
+
export declare const buildResetFields: (stats: LimitStatsDto, formatResetTime: FormatResetTime | undefined) => Pick<UsageLimitProgressRow, "resetLabel" | "resetIsoValue" | "resetAriaLabel">;
|
|
117
|
+
|
|
114
118
|
/** Builds the Responses API endpoint URL for a deployment. */
|
|
115
119
|
export declare const buildResponsesUrl: (baseUrl: string) => string;
|
|
116
120
|
|
|
@@ -165,7 +169,6 @@ export declare interface CatalogDetailsApi extends SkillDetailsApi {
|
|
|
165
169
|
|
|
166
170
|
/** Localized copy `useCatalogEditNavigation` needs for the Create menu and delete errors. */
|
|
167
171
|
export declare interface CatalogEditNavigationLabels {
|
|
168
|
-
createQuickApp: string;
|
|
169
172
|
createToolset: string;
|
|
170
173
|
createCustomApp: string;
|
|
171
174
|
createSkill: string;
|
|
@@ -306,16 +309,14 @@ export declare interface DeploymentGenerationApiSupport {
|
|
|
306
309
|
export declare interface DeploymentLimitsLabels {
|
|
307
310
|
/** Heading of the group every token stat row is listed under. */
|
|
308
311
|
tokenGroup: string;
|
|
309
|
-
/** Label for the
|
|
312
|
+
/** Label for the current-UTC-day token row, e.g. "Today". */
|
|
310
313
|
tokensPerDay: string;
|
|
311
|
-
/** Label for the
|
|
314
|
+
/** Label for the current-UTC-week token row, e.g. "This week". */
|
|
312
315
|
tokensPerWeek: string;
|
|
313
|
-
/** Label for the
|
|
316
|
+
/** Label for the current-UTC-month token row, e.g. "This month". */
|
|
314
317
|
tokensPerMonth: string;
|
|
315
318
|
/** Note shown instead of a total on a row whose limit follows the cost limit. */
|
|
316
319
|
followsCostLimit: string;
|
|
317
|
-
/** Formats the "$X spent" caption under a row's label. */
|
|
318
|
-
formatSpentCaption: (amount: string) => string;
|
|
319
320
|
/** Formats the combined used/total display value for a capped row. */
|
|
320
321
|
formatValueLabel: (used: string, total: string) => string;
|
|
321
322
|
/** Formats the ARIA label for a capped progress row. */
|
|
@@ -329,6 +330,8 @@ export declare interface DeploymentLimitsLabels {
|
|
|
329
330
|
label: string;
|
|
330
331
|
used: string;
|
|
331
332
|
}) => string;
|
|
333
|
+
/** Formats each period's `resetsAt` into the row's reset line. Omit it to render rows without one. */
|
|
334
|
+
formatResetTime?: FormatResetTime;
|
|
332
335
|
}
|
|
333
336
|
|
|
334
337
|
/**
|
|
@@ -1043,7 +1046,7 @@ export declare interface UseCatalogEditNavigationParams {
|
|
|
1043
1046
|
export declare interface UseCatalogEditNavigationResult {
|
|
1044
1047
|
handleEdit: (item: CatalogItem) => void;
|
|
1045
1048
|
handleDelete: (item: CatalogItem) => Promise<void>;
|
|
1046
|
-
/** The Create dropdown's items: runners
|
|
1049
|
+
/** The Create dropdown's items: runners and static options sorted together by label, all filtered by `createSearch.value`. */
|
|
1047
1050
|
createOptions: DropdownItem[];
|
|
1048
1051
|
/** The Create menu's search field state, or `undefined` when no runner option is offered. */
|
|
1049
1052
|
createSearch: CatalogCreateSearch | undefined;
|
package/catalog.js
CHANGED
|
@@ -2,24 +2,24 @@ import { createPublishApiClient as e, toPublishRuleDto as t } from "./catalog/cr
|
|
|
2
2
|
import { buildChatCompletionsUrl as n, buildDeploymentConnectApi as r, buildResponsesUrl as i } from "./catalog/deployment-endpoint-url.js";
|
|
3
3
|
import { decodeDeploymentId as a, encodeDeploymentId as o, findDeploymentByIdOrReference as s, normalizeDeploymentId as c } from "./catalog/deployment-id.js";
|
|
4
4
|
import { AuthenticationType as l } from "./catalog/entity-details.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { mapDeploymentDetailsDtoToEntityDetails as
|
|
8
|
-
import { mapDeploymentToCatalogItem as
|
|
9
|
-
import { buildPromptOverview as
|
|
10
|
-
import { PUBLIC_SKILL_BUCKET as
|
|
11
|
-
import { buildSkillContentTree as
|
|
12
|
-
import { McpResourceKind as
|
|
13
|
-
import { getPublicCatalogEntityFolderPath as
|
|
14
|
-
import { deriveAvailableTabIds as
|
|
15
|
-
import { CatalogPrimaryActionType as
|
|
16
|
-
import { useCatalogEditNavigation as
|
|
17
|
-
import { useSkillItemDetails as
|
|
18
|
-
import { useCatalogItemDetails as
|
|
19
|
-
import { useCatalogToolsetCredentials as
|
|
20
|
-
import { useApplicationCredentials as
|
|
21
|
-
import { useSkillDetailsPanelData as
|
|
22
|
-
import { FavoriteEntityType as
|
|
23
|
-
import { usePublishFolders as
|
|
24
|
-
import { SkillPreviewErrorKind as
|
|
25
|
-
export { l as AuthenticationType,
|
|
5
|
+
import { buildResetFields as u, mapDeploymentLimitsToInput as d } from "./catalog/map-deployment-limits-to-input.js";
|
|
6
|
+
import { mapDeploymentLimitsDtoToCatalogLimits as f } from "./catalog/map-deployment-limits-to-catalog.js";
|
|
7
|
+
import { mapDeploymentDetailsDtoToEntityDetails as p, mapEntityDetailsToCatalogDetails as m, mapToolsetCredentials as h } from "./catalog/map-entity-details-to-catalog.js";
|
|
8
|
+
import { mapDeploymentToCatalogItem as g, mapDeploymentToolsetCredentials as _, mapToolsetToCatalogItem as v, resolveDeploymentFolder as y } from "./catalog/map-deployment-to-catalog-item.js";
|
|
9
|
+
import { buildPromptOverview as b, isOrganisationPromptItem as x, mapPromptToCatalogItem as S } from "./catalog/map-prompt-to-catalog-item.js";
|
|
10
|
+
import { PUBLIC_SKILL_BUCKET as C, SKILL_LISTING_MAX_PAGES as w, SKILL_LISTING_PAGE_SIZE as T, SKILL_MANIFEST_MAX_BYTES as E, SkillSource as D, parseSkillResourceUrl as O } from "./skill/skill-types.js";
|
|
11
|
+
import { buildSkillContentTree as k, buildSkillOverview as A, mapSkillToCatalogItem as j, readSkillFileBytes as M, readSkillFilePreviewBytes as N, readSkillManifest as P, resolveSkillFileDownloadPath as F, resolveSkillManifestFileId as I } from "./catalog/map-skill-to-catalog-item.js";
|
|
12
|
+
import { McpResourceKind as L, buildApplicationMcpUrl as R, buildConnectApi as z, buildToolsetMcpUrl as B, resolveMcpResourceKind as V } from "./catalog/mcp-endpoint-url.js";
|
|
13
|
+
import { getPublicCatalogEntityFolderPath as H, isPublicCatalogEntityId as U, mapPublishConversationResultDto as W, mapPublishHistoryEntryDto as G, toPublishEntityType as K } from "./catalog/publish.js";
|
|
14
|
+
import { deriveAvailableTabIds as q, deriveFavoriteItems as J, filterCatalogItemsBySelector as Y, filterHiddenOwnedItems as X, reconcileFilterTopics as Z } from "./catalog/catalog-derivations.js";
|
|
15
|
+
import { CatalogPrimaryActionType as Q, resolveCatalogPrimaryAction as $ } from "./catalog/catalog-primary-action.js";
|
|
16
|
+
import { useCatalogEditNavigation as ee } from "./catalog/useCatalogEditNavigation/useCatalogEditNavigation.js";
|
|
17
|
+
import { useSkillItemDetails as te } from "./catalog/useSkillItemDetails.js";
|
|
18
|
+
import { useCatalogItemDetails as ne } from "./catalog/useCatalogItemDetails.js";
|
|
19
|
+
import { useCatalogToolsetCredentials as re } from "./catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js";
|
|
20
|
+
import { useApplicationCredentials as ie } from "./catalog/useApplicationCredentials/useApplicationCredentials.js";
|
|
21
|
+
import { useSkillDetailsPanelData as ae } from "./catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.js";
|
|
22
|
+
import { FavoriteEntityType as oe, useFavoriteEntitiesState as se } from "./catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js";
|
|
23
|
+
import { usePublishFolders as ce } from "./catalog/usePublishFolders/usePublishFolders.js";
|
|
24
|
+
import { SkillPreviewErrorKind as le, useSkillFilePreview as ue } from "./skill/useSkillFilePreview.js";
|
|
25
|
+
export { l as AuthenticationType, Q as CatalogPrimaryActionType, oe as FavoriteEntityType, L as McpResourceKind, C as PUBLIC_SKILL_BUCKET, w as SKILL_LISTING_MAX_PAGES, T as SKILL_LISTING_PAGE_SIZE, E as SKILL_MANIFEST_MAX_BYTES, le as SkillPreviewErrorKind, D as SkillSource, R as buildApplicationMcpUrl, n as buildChatCompletionsUrl, z as buildConnectApi, r as buildDeploymentConnectApi, b as buildPromptOverview, u as buildResetFields, i as buildResponsesUrl, k as buildSkillContentTree, A as buildSkillOverview, B as buildToolsetMcpUrl, e as createPublishApiClient, a as decodeDeploymentId, q as deriveAvailableTabIds, J as deriveFavoriteItems, o as encodeDeploymentId, Y as filterCatalogItemsBySelector, X as filterHiddenOwnedItems, s as findDeploymentByIdOrReference, H as getPublicCatalogEntityFolderPath, x as isOrganisationPromptItem, U as isPublicCatalogEntityId, p as mapDeploymentDetailsDtoToEntityDetails, f as mapDeploymentLimitsDtoToCatalogLimits, d as mapDeploymentLimitsToInput, g as mapDeploymentToCatalogItem, _ as mapDeploymentToolsetCredentials, m as mapEntityDetailsToCatalogDetails, S as mapPromptToCatalogItem, W as mapPublishConversationResultDto, G as mapPublishHistoryEntryDto, j as mapSkillToCatalogItem, h as mapToolsetCredentials, v as mapToolsetToCatalogItem, c as normalizeDeploymentId, O as parseSkillResourceUrl, M as readSkillFileBytes, N as readSkillFilePreviewBytes, P as readSkillManifest, Z as reconcileFilterTopics, $ as resolveCatalogPrimaryAction, y as resolveDeploymentFolder, V as resolveMcpResourceKind, F as resolveSkillFileDownloadPath, I as resolveSkillManifestFileId, K as toPublishEntityType, t as toPublishRuleDto, ie as useApplicationCredentials, ee as useCatalogEditNavigation, ne as useCatalogItemDetails, re as useCatalogToolsetCredentials, se as useFavoriteEntitiesState, ce as usePublishFolders, ae as useSkillDetailsPanelData, ue as useSkillFilePreview, te as useSkillItemDetails };
|
package/index.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ import { getParentFolderPath } from '@epam/ai-dial-chat-shared';
|
|
|
79
79
|
import type { GroupedAttachmentItem } from '@epam/ai-dial-chat-shared';
|
|
80
80
|
import { Implementation } from '@modelcontextprotocol/sdk/types.js';
|
|
81
81
|
import type { InputHighlightData } from '@epam/pdf-highlighter-kit';
|
|
82
|
+
import { LimitStatsDto } from '@epam/ai-dial-chat-api-client';
|
|
82
83
|
import { ListFilesItemDto } from '@epam/ai-dial-chat-api-client';
|
|
83
84
|
import { ListFilesResponseDto } from '@epam/ai-dial-chat-api-client';
|
|
84
85
|
import { ListPublicFilesRequest } from '@epam/ai-dial-chat-api-client';
|
|
@@ -165,6 +166,7 @@ import { UpdateScheduledTaskBodyDto } from '@epam/ai-dial-chat-api-client';
|
|
|
165
166
|
import { UploadArchiveResponseDto } from '@epam/ai-dial-chat-api-client';
|
|
166
167
|
import { UploadedAttachmentResult } from '@epam/ai-dial-chat-shared';
|
|
167
168
|
import { UsageLimitCardData } from '@epam/ai-dial-usage-dashboard';
|
|
169
|
+
import { UsageLimitProgressRow } from '@epam/ai-dial-catalog';
|
|
168
170
|
import { useGridEditingScroll } from '@epam/ai-dial-chat-shared';
|
|
169
171
|
import { UseGridEditingScrollOptions } from '@epam/ai-dial-chat-shared';
|
|
170
172
|
import { UseGridEditingScrollResult } from '@epam/ai-dial-chat-shared';
|
|
@@ -516,6 +518,8 @@ export declare const buildPromptOverview: (prompt: PromptResponseDto, labels: Pr
|
|
|
516
518
|
/** Joins a folder path and a prompt name into the DIAL prompt path used as an id. */
|
|
517
519
|
export declare const buildPromptPath: (folderId: string, name: string) => string;
|
|
518
520
|
|
|
521
|
+
export declare const buildResetFields: (stats: LimitStatsDto, formatResetTime: FormatResetTime | undefined) => Pick<UsageLimitProgressRow, "resetLabel" | "resetIsoValue" | "resetAriaLabel">;
|
|
522
|
+
|
|
519
523
|
/** Builds the Responses API endpoint URL for a deployment. */
|
|
520
524
|
export declare const buildResponsesUrl: (baseUrl: string) => string;
|
|
521
525
|
|
|
@@ -637,7 +641,6 @@ export declare interface CatalogDetailsApi extends SkillDetailsApi {
|
|
|
637
641
|
|
|
638
642
|
/** Localized copy `useCatalogEditNavigation` needs for the Create menu and delete errors. */
|
|
639
643
|
export declare interface CatalogEditNavigationLabels {
|
|
640
|
-
createQuickApp: string;
|
|
641
644
|
createToolset: string;
|
|
642
645
|
createCustomApp: string;
|
|
643
646
|
createSkill: string;
|
|
@@ -1196,16 +1199,14 @@ export declare interface DeploymentGenerationApiSupport {
|
|
|
1196
1199
|
export declare interface DeploymentLimitsLabels {
|
|
1197
1200
|
/** Heading of the group every token stat row is listed under. */
|
|
1198
1201
|
tokenGroup: string;
|
|
1199
|
-
/** Label for the
|
|
1202
|
+
/** Label for the current-UTC-day token row, e.g. "Today". */
|
|
1200
1203
|
tokensPerDay: string;
|
|
1201
|
-
/** Label for the
|
|
1204
|
+
/** Label for the current-UTC-week token row, e.g. "This week". */
|
|
1202
1205
|
tokensPerWeek: string;
|
|
1203
|
-
/** Label for the
|
|
1206
|
+
/** Label for the current-UTC-month token row, e.g. "This month". */
|
|
1204
1207
|
tokensPerMonth: string;
|
|
1205
1208
|
/** Note shown instead of a total on a row whose limit follows the cost limit. */
|
|
1206
1209
|
followsCostLimit: string;
|
|
1207
|
-
/** Formats the "$X spent" caption under a row's label. */
|
|
1208
|
-
formatSpentCaption: (amount: string) => string;
|
|
1209
1210
|
/** Formats the combined used/total display value for a capped row. */
|
|
1210
1211
|
formatValueLabel: (used: string, total: string) => string;
|
|
1211
1212
|
/** Formats the ARIA label for a capped progress row. */
|
|
@@ -1219,6 +1220,8 @@ export declare interface DeploymentLimitsLabels {
|
|
|
1219
1220
|
label: string;
|
|
1220
1221
|
used: string;
|
|
1221
1222
|
}) => string;
|
|
1223
|
+
/** Formats each period's `resetsAt` into the row's reset line. Omit it to render rows without one. */
|
|
1224
|
+
formatResetTime?: FormatResetTime;
|
|
1222
1225
|
}
|
|
1223
1226
|
|
|
1224
1227
|
export declare const deriveActionProfile: (variant: DialFileManagerVariant) => DialFileManagerActionProfile;
|
|
@@ -4786,7 +4789,7 @@ export declare interface UseCatalogEditNavigationParams {
|
|
|
4786
4789
|
export declare interface UseCatalogEditNavigationResult {
|
|
4787
4790
|
handleEdit: (item: CatalogItem) => void;
|
|
4788
4791
|
handleDelete: (item: CatalogItem) => Promise<void>;
|
|
4789
|
-
/** The Create dropdown's items: runners
|
|
4792
|
+
/** The Create dropdown's items: runners and static options sorted together by label, all filtered by `createSearch.value`. */
|
|
4790
4793
|
createOptions: DropdownItem[];
|
|
4791
4794
|
/** The Create menu's search field state, or `undefined` when no runner option is offered. */
|
|
4792
4795
|
createSearch: CatalogCreateSearch | undefined;
|
package/index.js
CHANGED
|
@@ -14,137 +14,137 @@ import { createPublishApiClient as j, toPublishRuleDto as M } from "./catalog/cr
|
|
|
14
14
|
import { buildChatCompletionsUrl as N, buildDeploymentConnectApi as P, buildResponsesUrl as F } from "./catalog/deployment-endpoint-url.js";
|
|
15
15
|
import { decodeDeploymentId as I, encodeDeploymentId as L, findDeploymentByIdOrReference as R, normalizeDeploymentId as z } from "./catalog/deployment-id.js";
|
|
16
16
|
import { AuthenticationType as B } from "./catalog/entity-details.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { OAuthResourceKind as
|
|
20
|
-
import { decodeToolsetId as
|
|
21
|
-
import { appendLocaleCode as
|
|
22
|
-
import { formatCalendarDate as
|
|
23
|
-
import { mapDeploymentDetailsDtoToEntityDetails as
|
|
24
|
-
import { mapDeploymentToCatalogItem as
|
|
25
|
-
import { PromptSource as
|
|
26
|
-
import { buildPromptOverview as
|
|
27
|
-
import { SKILL_FILE_UPLOAD_MAX_BYTES as
|
|
28
|
-
import { PUBLIC_SKILL_BUCKET as
|
|
29
|
-
import { buildSkillContentTree as
|
|
30
|
-
import { McpResourceKind as
|
|
31
|
-
import { getPublicCatalogEntityFolderPath as
|
|
32
|
-
import { deriveAvailableTabIds as
|
|
33
|
-
import { CatalogPrimaryActionType as
|
|
34
|
-
import { getRunnerSchemas as
|
|
35
|
-
import { useCatalogEditNavigation as
|
|
36
|
-
import { parseSkillManifestDocument as
|
|
37
|
-
import { useSkillItemDetails as
|
|
38
|
-
import { useCatalogItemDetails as
|
|
39
|
-
import { emitToolsetLoginSuccess as
|
|
40
|
-
import { getToolsetOAuthChannelName as
|
|
41
|
-
import { buildToolsetAuthorizeUrl as
|
|
42
|
-
import { initiateOAuthLogin as
|
|
43
|
-
import { ToolsetLoginOutcomeType as
|
|
44
|
-
import { useCatalogToolsetCredentials as
|
|
45
|
-
import { useApplicationCredentials as
|
|
46
|
-
import { useSkillDetailsPanelData as
|
|
47
|
-
import { FavoriteEntityType as
|
|
48
|
-
import { usePublishFolders as
|
|
49
|
-
import { buildAnnouncementSignature as
|
|
50
|
-
import { DEFAULT_GENERATION_CONFLICT_MESSAGE as
|
|
51
|
-
import { shouldWatchForDisplayNameUpdate as
|
|
52
|
-
import { formatAppVersion as
|
|
53
|
-
import { getModelIdFromConversationId as
|
|
54
|
-
import { getTimeOfDayGreeting as
|
|
55
|
-
import { createDeploymentChangedMessage as
|
|
56
|
-
import { getFormSchemaToolSyncKey as
|
|
57
|
-
import { toOverlayMessages as
|
|
58
|
-
import { getQuickAppConversationStarters as
|
|
59
|
-
import { mapStages as
|
|
60
|
-
import { getStarterPopulateText as
|
|
61
|
-
import { useOAuthCallbackCompletion as
|
|
62
|
-
import { buildPromptExportEnvelope as
|
|
63
|
-
import { PROMPT_CONTENT_MAX_LENGTH as
|
|
64
|
-
import { usePromptsState as
|
|
65
|
-
import { UnsupportedTriggerReason as
|
|
66
|
-
import { ScheduledTaskTriggerDescriptionKind as
|
|
67
|
-
import { apSchedulerDayToJsDay as
|
|
68
|
-
import { mapFormValuesToCreateBody as
|
|
69
|
-
import { prepareScheduledTaskCreateBody as
|
|
70
|
-
import { createScheduledTasksApiClient as
|
|
71
|
-
import { useScheduledTasks as
|
|
72
|
-
import { mergeRunsById as
|
|
73
|
-
import { validateSkillFileBatch as
|
|
74
|
-
import { skillFileToAttachment as
|
|
75
|
-
import { SkillEditorLoadState as
|
|
76
|
-
import { useSkillEditorSubmit as
|
|
77
|
-
import { useSkillFileActions as
|
|
78
|
-
import { SkillPreviewErrorKind as
|
|
79
|
-
import { useSkillsState as
|
|
80
|
-
import { SkillArchiveImportErrorKind as
|
|
81
|
-
import { RecipientsCountStatus as
|
|
82
|
-
import { deriveConversationRowActionState as
|
|
83
|
-
import { useActiveConversationSync as
|
|
84
|
-
import { useAsyncConfirmDialog as
|
|
85
|
-
import { useConversationLookupMaps as
|
|
86
|
-
import { getConversationSource as
|
|
87
|
-
import { useImportFilePicker as
|
|
88
|
-
import { useMessageSelectionReply as
|
|
89
|
-
import { sanitizeFileName as
|
|
90
|
-
import { useAttachmentUpload as
|
|
91
|
-
import { AudioTranscriptionError as
|
|
92
|
-
import { useTranscribeAudio as
|
|
93
|
-
import { DEFAULT_MAX_ARCHIVE_BYTES as
|
|
94
|
-
import { attachmentToDto as
|
|
95
|
-
import { createMessagePair as
|
|
96
|
-
import { hasActiveToolConfig as
|
|
97
|
-
import { getStarterConversationText as
|
|
98
|
-
import { getConversationPath as
|
|
99
|
-
import { useConversationHandlers as
|
|
100
|
-
import { useConversationImport as
|
|
101
|
-
import { useConversationScroll as
|
|
102
|
-
import { applyChunkToMessages as
|
|
103
|
-
import { isAwaitingGenerationResume as
|
|
104
|
-
import { useConversationStream as
|
|
105
|
-
import { useConversationSources as
|
|
106
|
-
import { DialFilesApiUploadMode as
|
|
107
|
-
import { FileManagerNotificationReason as
|
|
108
|
-
import { COLUMNS_WITHOUT_AUTHOR as
|
|
109
|
-
import { DialFileManagerActionProfile as
|
|
110
|
-
import { buildSharedItemVirtualPath as
|
|
111
|
-
import { getParentFolderPath as
|
|
112
|
-
import { prepareCopyItems as
|
|
113
|
-
import { buildFromCache as
|
|
114
|
-
import { createFilesApiClient as
|
|
115
|
-
import { createUploadFileWithProgress as
|
|
116
|
-
import { openAnnotationAttachment as
|
|
117
|
-
import { annotationToOoxmlCanvasContent as
|
|
118
|
-
import { getUrlFileName as
|
|
119
|
-
import { annotationToDisplayAttachment as
|
|
120
|
-
import { dialFileToAttachment as
|
|
121
|
-
import { DownloadDestinationType as
|
|
122
|
-
import { prepareDownloadDestination as
|
|
123
|
-
import { useDialFileListing as
|
|
124
|
-
import { useDialFileMetadata as
|
|
125
|
-
import { useDialFileMutations as
|
|
126
|
-
import { useDialFileSharing as
|
|
127
|
-
import { useDialFileUploadBatch as
|
|
128
|
-
import { useDialFileManager as
|
|
129
|
-
import { useDialFileManagerSections as
|
|
130
|
-
import { useDialFileManagerTabConfig as
|
|
131
|
-
import { useFileAttachmentPicker as
|
|
132
|
-
import { getBrowserTimezone as
|
|
133
|
-
import { isValidAbsoluteUrl as
|
|
134
|
-
import { buildExternalServiceScopeId as
|
|
135
|
-
import { useChatSettingsFormConfig as
|
|
136
|
-
import { usePageFileDrag as
|
|
137
|
-
import { useViewportWidth as
|
|
138
|
-
import { usePanelMaxWidth as
|
|
139
|
-
import { useShareLink as
|
|
140
|
-
import { useToolsMenu as
|
|
141
|
-
import { USAGE_DATA_I18N_KEYS as
|
|
142
|
-
import { USAGE_MODEL_LIMITS_I18N_KEYS as
|
|
143
|
-
import { useUsageData as
|
|
144
|
-
import { McpAppResourceFetchError as
|
|
145
|
-
import { useMcpAppTools as
|
|
146
|
-
import { useMcpAppHostContext as
|
|
147
|
-
import { useMcpAppHostAdapter as
|
|
148
|
-
import { useOpenMcpAppCanvas as
|
|
149
|
-
import { useGridEditingScroll as
|
|
150
|
-
export { x as AttachmentValidationErrorReason, Dr as AudioTranscriptionError, Or as AudioTranscriptionErrorReason, B as AuthenticationType, ti as COLUMNS_WITHOUT_AUTHOR, ni as COLUMNS_WITH_AUTHOR, ri as CORE_PERMISSION_MAP, vt as CatalogPrimaryActionType, T as ConversationExportMode, E as ConversationTransferErrorCode, D as ConversationTransferWarningCode, ii as DATE_OPTIONS, Yt as DEFAULT_GENERATION_CONFLICT_MESSAGE, Xt as DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE, Ar as DEFAULT_MAX_ARCHIVE_BYTES, Zt as DEFAULT_STREAM_IDLE_TIMEOUT_MS, ai as DIAL_FILE_MANAGER_SECTION_TABS, li as DialFileManagerActionProfile, ui as DialFileManagerVariant, Zr as DialFilesApiUploadMode, ga as DownloadDestinationType, k as EXPORT_APP_NAME, O as ExportFileNameKind, Vt as FavoriteEntityType, Qr as FileManagerNotificationReason, $r as FileNameValidationErrorReason, ei as FileOperationKind, Qt as GenerationConflictError, $t as GenerationPersistenceError, Ka as McpAppResourceFetchError, rt as McpResourceKind, U as OAuthResourceKind, oi as PATH_SEPARATOR_REGEXP, On as PROMPT_CONTENT_MAX_LENGTH, kn as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, An as PROMPT_DESCRIPTION_MAX_LENGTH, jn as PROMPT_NAME_MAX_LENGTH, Ue as PUBLIC_SKILL_BUCKET, Mn as PromptFieldError, xe as PromptSource, si as RESERVED_MARKER_NAME, pr as RecipientsCountStatus, Ee as SKILL_FILE_UPLOAD_MAX_BYTES, We as SKILL_LISTING_MAX_PAGES, Ge as SKILL_LISTING_PAGE_SIZE, De as SKILL_MANIFEST_FILE, Ke as SKILL_MANIFEST_MAX_BYTES, Oe as SKILL_TEXT_FIELD_MAX_LENGTHS, ke as SKILL_UPLOAD_MAX_FILES, Ae as SKILL_UPLOAD_MAX_TOTAL_BYTES, Bn as ScheduledTaskTriggerDescriptionKind, cr as SkillArchiveImportErrorKind, lr as SkillArchiveImportStatus, ur as SkillArchiveSelectionRejectionReason, tr as SkillEditorLoadState, ar as SkillPreviewErrorKind, qe as SkillSource, en as StreamInterruptedError, tn as StreamUpstreamError, W as TOOLSET_REDIRECT_STATE_KEY, G as ToolsetAuthStatus, K as ToolsetAuthTypes, q as ToolsetCredentialsLevel, It as ToolsetLoginOutcomeType, J as ToolsetOAuthCallbackQuery, Y as ToolsetOAuthChannelControlType, X as ToolsetOAuthFailureReason, Z as ToolsetOAuthInitiationResultType, Q as ToolsetOAuthResultType, ci as UPLOAD_CONCURRENCY, Ba as USAGE_DATA_I18N_KEYS, Ha as USAGE_MODEL_LIMITS_I18N_KEYS, zn as UnsupportedTriggerReason, $ as WithLogin, ua as annotationToDisplayAttachment, Ki as annotationToOoxmlCanvasContent, qi as annotationToPdfCanvasContent, Hn as apSchedulerDayToJsDay, oe as appendLocaleCode, Kr as applyChunkToMessages, da as attachmentDtoToDisplayAttachment, fa as attachmentDtosToDisplayAttachments, Mr as attachmentToDto, Nr as attachmentsToDtos, se as buildAdditionalLocaleOptions, Wt as buildAnnouncementSignature, it as buildApplicationMcpUrl, N as buildChatCompletionsUrl, at as buildConnectApi, P as buildDeploymentConnectApi, ja as buildExternalServiceScopeId, Pi as buildFromCache, Tn as buildPromptExportEnvelope, En as buildPromptExportFileName, Ce as buildPromptOverview, Nn as buildPromptPath, F as buildResponsesUrl, fi as buildSharedItemVirtualPath, Ye as buildSkillContentTree, je as buildSkillFilesPayload, Me as buildSkillManifest, Ne as buildSkillManifestForSubmit, Pe as buildSkillManifestFromFrontmatter, Xe as buildSkillOverview, jt as buildToolsetAuthorizeUrl, ot as buildToolsetMcpUrl, dr as classifySkillArchiveImportError, Ji as clearAttachmentCache, ce as composeLocalePayload, nn as createChatStreamApi, i as createCsrfMiddleware, ln as createDeploymentChangedMessage, Ui as createFilesApiClient, qa as createMcpAppsApiClient, Pr as createMessagePair, j as createPublishApiClient, Yn as createScheduledTasksApiClient, a as createUnauthorizedMiddleware, Wi as createUploadFileWithProgress, I as decodeDeploymentId, ee as decodeToolsetId, le as decomposeLocalizedFields, di as deriveActionProfile, pt as deriveAvailableTabIds, hr as deriveConversationRowActionState, mt as deriveFavoriteItems, Vn as describeScheduledTaskTrigger, pi as dialCorePathToRelative, pa as dialFileToAttachment, ma as dialFilesToAttachments, ha as dialFolderPathToAttachment, m as downloadAttachment, Dt as emitToolsetLoginSuccess, L as encodeDeploymentId, te as encodeToolsetId, Fi as fetchByTab, Ii as fetchForSearch, ht as filterCatalogItemsBySelector, gt as filterHiddenOwnedItems, R as findDeploymentByIdOrReference, mi as findDialFileByPath, Li as findFirstSuccessfulCopyMoveItem, hi as findFolderByVirtualPath, an as formatAppVersion, fe as formatCalendarDate, C as formatDateYM, w as formatDateYMD, gi as formatOperationFolderName, A as formatQuotedNameList, e as getApiErrorDetails, t as getApiErrorMessage, n as getApiErrorStatus, Da as getBrowserTimezone, Hr as getConversationPath, yr as getConversationSource, Ma as getExternalServiceFallbackName, un as getFormSchemaToolSyncKey, dn as getLastDeploymentId, fn as getLastUserMessageToolConfiguration, pn as getLatestToolConfiguration, sn as getModelIdFromConversationId, ki as getParentFolderPath, ct as getPublicCatalogEntityFolderPath, yn as getQuickAppConversationStarters, Pn as getRemainingCharacters, bt as getRunnerSchemas, Fe as getSkillFieldLengthViolations, zr as getStarterConversationText, Br as getStarterDisplayText, Sn as getStarterPopulateText, Vr as getStarterSubmitText, Cn as getStartersFromSchema, cn as getTimeOfDayGreeting, mn as getToolConfigurationFromFormSchema, kt as getToolsetOAuthChannelName, Mt as getToolsetRedirectUri, sa as getUrlFileName, _i as getVirtualPathName, Fr as hasActiveToolConfig, Gt as hasAnnouncementContent, Yi as hasAttachmentTextSource, vi as hasDialFileWritePermission, yi as hasForbiddenNameSymbols, bi as hasSamePaths, Kt as hasStructuredAnnouncement, o as includesIgnoreCase, Nt as initiateOAuthLogin, Ir as isAnswerIncomplete, Jr as isAwaitingGenerationResume, r as isConversationNotFoundError, xi as isCopyMoveDuplicateAllowed, xt as isCustomAppSchema, _ as isDialFileAcceptType, d as isDialFileId, h as isDownloadableAttachment, ca as isExternalSourcePreviewable, Lr as isMessageChanged, hn as isMessageStreaming, we as isOrganisationPromptItem, lt as isPublicCatalogEntityId, ne as isPublicToolsetId, St as isQuickAppSchema, Si as isShareActionsAllowed, Oa as isValidAbsoluteUrl, ka as isValidFeaturesData, Ie as isValidSkillRelativePath, Un as jsDayToApSchedulerDay, Ri as mapCorePermissions, me as mapDeploymentDetailsDtoToEntityDetails, V as mapDeploymentLimitsDtoToCatalogLimits, H as mapDeploymentLimitsToInput, _e as mapDeploymentToCatalogItem, ve as mapDeploymentToolsetCredentials, he as mapEntityDetailsToCatalogDetails, zi as mapFileMetadataToDialFile, Wn as mapFormValuesToCreateBody, Gn as mapFormValuesToUpdateBody, Ua as mapOverallCostLimitsToPeriodStatuses, Te as mapPromptToCatalogItem, ut as mapPublishConversationResultDto, dt as mapPublishHistoryEntryDto, Kn as mapScheduledTaskDtoToFormValues, Bi as mapSearchItem, Ze as mapSkillToCatalogItem, bn as mapStages, ge as mapToolsetCredentials, ye as mapToolsetToCatalogItem, Va as mapUsageDataToDashboard, Wa as mapUserUsageToModelLimits, Vi as mergeCreatedFolderIntoCache, Zn as mergeRunsById, qr as mergeStages, gn as messageHasStages, v as mimeTypesToAttachmentExtensionLabels, y as mimeTypesToDialFileAcceptTypes, b as mimeTypesToFileAccept, Le as nameFromPath, Pt as navigateToolsetOAuthPopup, z as normalizeDeploymentId, _n as normalizeResponseFormat, Re as normalizeSkillName, re as normalizeToolsetId, Ci as normalizeVirtualPath, Gi as openAnnotationAttachment, Ft as openToolsetOAuthPopup, pe as padTwoDigits, Na as parseExternalServiceUrl, Aa as parseFeaturesData, wi as parseNewFolderVirtualPath, Se as parsePromptResourceUrl, ze as parseSkillManifest, wt as parseSkillManifestDocument, Je as parseSkillResourceUrl, Mi as prepareCopyItems, _a as prepareDownloadDestination, Ni as prepareMoveRenameItems, qn as prepareScheduledTaskCreateBody, Jn as prepareScheduledTaskUpdateBody, Qe as readSkillFileBytes, $e as readSkillFilePreviewBytes, et as readSkillManifest, _t as reconcileFilterTopics, Xi as referenceAttachmentToPdfCanvasContent, yt as resolveCatalogPrimaryAction, Zi as resolveCodeCanvasContent, be as resolveDeploymentFolder, Ai as resolveDialFileApiPath, f as resolveDialFileBucketAndPath, la as resolveExternalSourceContentType, Qi as resolveGroupedVisualizerCanvasContent, $i as resolveHtmlCanvasContent, ea as resolveImageCanvasContent, ta as resolveJsonCanvasContent, ue as resolveLocalizedText, na as resolveMarkdownCanvasContent, st as resolveMcpResourceKind, ra as resolveOoxmlCanvasContent, Ti as resolveOwnerCoords, ia as resolvePdfCanvasContent, p as resolveRelativeDialFilePath, Ei as resolveSectionByPath, tt as resolveSkillFileDownloadPath, nt as resolveSkillManifestFileId, aa as resolveTextCanvasContent, ie as resolveToolsetCredentialsLevel, oa as resolveVisualizerCanvasContent, s as safeDecodeURI, c as safeDecodeURIComponent, qt as sanitizeAnnouncementHtml, Jt as sanitizeAnnouncementMessageHtml, Cr as sanitizeFileName, on as sanitizeFooterHtml, ae as selectToolsetAuthStatus, Dn as serializePromptExport, Rr as shouldRerunGenerationOnEdit, rn as shouldWatchForDisplayNameUpdate, Be as skillFileBytesToBlob, er as skillFileToAttachment, wr as splitFileNameExtension, Ve as startsWithFrontmatterBlock, l as stripSurroundingSlashes, u as stripTrailingSlashes, Ot as subscribeToolsetLoginSuccess, de as toBaseLocale, vn as toOverlayMessages, ft as toPublishEntityType, M as toPublishRuleDto, xn as toStage, Tr as trimFileNameToByteLimit, Di as unionPathSets, He as unpackSkillArchive, Hi as updateEntry, gr as useActiveConversationSync, zt as useApplicationCredentials, _r as useAsyncConfirmDialog, g as useAttachmentAction, Er as useAttachmentUpload, S as useAttachmentValidation, Ct as useCatalogEditNavigation, Et as useCatalogItemDetails, Rt as useCatalogToolsetCredentials, Pa as useChatSettingsFormConfig, jr as useConversationExport, Ur as useConversationHandlers, Wr as useConversationImport, vr as useConversationLookupMaps, br as useConversationPanelItems, Gr as useConversationScroll, Xr as useConversationSources, Yr as useConversationStream, va as useDialFileListing, Ca as useDialFileManager, wa as useDialFileManagerSections, Ta as useDialFileManagerTabConfig, ya as useDialFileMetadata, ba as useDialFileMutations, xa as useDialFileSharing, Sa as useDialFileUploadBatch, Ht as useFavoriteEntitiesState, Ea as useFileAttachmentPicker, Qa as useGridEditingScroll, xr as useImportFilePicker, Xa as useMcpAppHostAdapter, Ya as useMcpAppHostContext, Ja as useMcpAppTools, Sr as useMessageSelectionReply, wn as useOAuthCallbackCompletion, Za as useOpenMcpAppCanvas, Fa as usePageFileDrag, La as usePanelMaxWidth, Rn as usePromptsState, Ut as usePublishFolders, Qn as useScheduledTaskRuns, Xn as useScheduledTasks, Ra as useShareLink, mr as useShareRecipientsCount, fr as useSkillArchiveImport, Bt as useSkillDetailsPanelData, nr as useSkillEditorLoad, rr as useSkillEditorSubmit, ir as useSkillFileActions, or as useSkillFilePreview, Tt as useSkillItemDetails, sr as useSkillsState, za as useToolsMenu, Lt as useToolsetLogin, kr as useTranscribeAudio, Ga as useUsageData, Ia as useViewportWidth, Fn as validatePromptContent, In as validatePromptDescription, Ln as validatePromptName, $n as validateSkillFileBatch, ji as virtualPathToApiPath, At as waitForToolsetOAuthResult, Oi as withRoutableRootLabels };
|
|
17
|
+
import { buildResetFields as V, mapDeploymentLimitsToInput as H } from "./catalog/map-deployment-limits-to-input.js";
|
|
18
|
+
import { mapDeploymentLimitsDtoToCatalogLimits as U } from "./catalog/map-deployment-limits-to-catalog.js";
|
|
19
|
+
import { OAuthResourceKind as W, TOOLSET_REDIRECT_STATE_KEY as G, ToolsetAuthStatus as K, ToolsetAuthTypes as q, ToolsetCredentialsLevel as J, ToolsetOAuthCallbackQuery as Y, ToolsetOAuthChannelControlType as X, ToolsetOAuthFailureReason as Z, ToolsetOAuthInitiationResultType as Q, ToolsetOAuthResultType as $, WithLogin as ee } from "./oauth/types.js";
|
|
20
|
+
import { decodeToolsetId as te, encodeToolsetId as ne, isPublicToolsetId as re, normalizeToolsetId as ie, resolveToolsetCredentialsLevel as ae, selectToolsetAuthStatus as oe } from "./oauth/toolset-id.js";
|
|
21
|
+
import { appendLocaleCode as se, buildAdditionalLocaleOptions as ce, composeLocalePayload as le, decomposeLocalizedFields as ue, resolveLocalizedText as de, toBaseLocale as fe } from "./shared/locale.js";
|
|
22
|
+
import { formatCalendarDate as pe, padTwoDigits as me } from "./shared/formatting.js";
|
|
23
|
+
import { mapDeploymentDetailsDtoToEntityDetails as he, mapEntityDetailsToCatalogDetails as ge, mapToolsetCredentials as _e } from "./catalog/map-entity-details-to-catalog.js";
|
|
24
|
+
import { mapDeploymentToCatalogItem as ve, mapDeploymentToolsetCredentials as ye, mapToolsetToCatalogItem as be, resolveDeploymentFolder as xe } from "./catalog/map-deployment-to-catalog-item.js";
|
|
25
|
+
import { PromptSource as Se, parsePromptResourceUrl as Ce } from "./prompt/prompt-resource.js";
|
|
26
|
+
import { buildPromptOverview as we, isOrganisationPromptItem as Te, mapPromptToCatalogItem as Ee } from "./catalog/map-prompt-to-catalog-item.js";
|
|
27
|
+
import { SKILL_FILE_UPLOAD_MAX_BYTES as De, SKILL_MANIFEST_FILE as Oe, SKILL_TEXT_FIELD_MAX_LENGTHS as ke, SKILL_UPLOAD_MAX_FILES as Ae, SKILL_UPLOAD_MAX_TOTAL_BYTES as je, buildSkillFilesPayload as Me, buildSkillManifest as Ne, buildSkillManifestForSubmit as Pe, buildSkillManifestFromFrontmatter as Fe, getSkillFieldLengthViolations as Ie, isValidSkillRelativePath as Le, nameFromPath as Re, normalizeSkillName as ze, parseSkillManifest as Be, skillFileBytesToBlob as Ve, startsWithFrontmatterBlock as He, unpackSkillArchive as Ue } from "./skill/skill.js";
|
|
28
|
+
import { PUBLIC_SKILL_BUCKET as We, SKILL_LISTING_MAX_PAGES as Ge, SKILL_LISTING_PAGE_SIZE as Ke, SKILL_MANIFEST_MAX_BYTES as qe, SkillSource as Je, parseSkillResourceUrl as Ye } from "./skill/skill-types.js";
|
|
29
|
+
import { buildSkillContentTree as Xe, buildSkillOverview as Ze, mapSkillToCatalogItem as Qe, readSkillFileBytes as $e, readSkillFilePreviewBytes as et, readSkillManifest as tt, resolveSkillFileDownloadPath as nt, resolveSkillManifestFileId as rt } from "./catalog/map-skill-to-catalog-item.js";
|
|
30
|
+
import { McpResourceKind as it, buildApplicationMcpUrl as at, buildConnectApi as ot, buildToolsetMcpUrl as st, resolveMcpResourceKind as ct } from "./catalog/mcp-endpoint-url.js";
|
|
31
|
+
import { getPublicCatalogEntityFolderPath as lt, isPublicCatalogEntityId as ut, mapPublishConversationResultDto as dt, mapPublishHistoryEntryDto as ft, toPublishEntityType as pt } from "./catalog/publish.js";
|
|
32
|
+
import { deriveAvailableTabIds as mt, deriveFavoriteItems as ht, filterCatalogItemsBySelector as gt, filterHiddenOwnedItems as _t, reconcileFilterTopics as vt } from "./catalog/catalog-derivations.js";
|
|
33
|
+
import { CatalogPrimaryActionType as yt, resolveCatalogPrimaryAction as bt } from "./catalog/catalog-primary-action.js";
|
|
34
|
+
import { getRunnerSchemas as xt, isCustomAppSchema as St, isQuickAppSchema as Ct } from "./shared/application-schema.js";
|
|
35
|
+
import { useCatalogEditNavigation as wt } from "./catalog/useCatalogEditNavigation/useCatalogEditNavigation.js";
|
|
36
|
+
import { parseSkillManifestDocument as Tt } from "./skill/skill-manifest.js";
|
|
37
|
+
import { useSkillItemDetails as Et } from "./catalog/useSkillItemDetails.js";
|
|
38
|
+
import { useCatalogItemDetails as Dt } from "./catalog/useCatalogItemDetails.js";
|
|
39
|
+
import { emitToolsetLoginSuccess as Ot, subscribeToolsetLoginSuccess as kt } from "./shared/toolset-login-events.js";
|
|
40
|
+
import { getToolsetOAuthChannelName as At, waitForToolsetOAuthResult as jt } from "./oauth/handshake.js";
|
|
41
|
+
import { buildToolsetAuthorizeUrl as Mt, getToolsetRedirectUri as Nt } from "./oauth/authorize-url.js";
|
|
42
|
+
import { initiateOAuthLogin as Pt, navigateToolsetOAuthPopup as Ft, openToolsetOAuthPopup as It } from "./oauth/popup.js";
|
|
43
|
+
import { ToolsetLoginOutcomeType as Lt, useToolsetLogin as Rt } from "./oauth/useToolsetLogin/useToolsetLogin.js";
|
|
44
|
+
import { useCatalogToolsetCredentials as zt } from "./catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js";
|
|
45
|
+
import { useApplicationCredentials as Bt } from "./catalog/useApplicationCredentials/useApplicationCredentials.js";
|
|
46
|
+
import { useSkillDetailsPanelData as Vt } from "./catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.js";
|
|
47
|
+
import { FavoriteEntityType as Ht, useFavoriteEntitiesState as Ut } from "./catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js";
|
|
48
|
+
import { usePublishFolders as Wt } from "./catalog/usePublishFolders/usePublishFolders.js";
|
|
49
|
+
import { buildAnnouncementSignature as Gt, hasAnnouncementContent as Kt, hasStructuredAnnouncement as qt, sanitizeAnnouncementHtml as Jt, sanitizeAnnouncementMessageHtml as Yt } from "./conversation/announcement-message.js";
|
|
50
|
+
import { DEFAULT_GENERATION_CONFLICT_MESSAGE as Xt, DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE as Zt, DEFAULT_STREAM_IDLE_TIMEOUT_MS as Qt, GenerationConflictError as $t, GenerationPersistenceError as en, StreamInterruptedError as tn, StreamUpstreamError as nn, createChatStreamApi as rn } from "./conversation/create-chat-stream-api.js";
|
|
51
|
+
import { shouldWatchForDisplayNameUpdate as an } from "./conversation/display-name-watch.js";
|
|
52
|
+
import { formatAppVersion as on, sanitizeFooterHtml as sn } from "./conversation/footer-message.js";
|
|
53
|
+
import { getModelIdFromConversationId as cn } from "./conversation/get-model-id-from-conversation-id.js";
|
|
54
|
+
import { getTimeOfDayGreeting as ln } from "./conversation/greeting.js";
|
|
55
|
+
import { createDeploymentChangedMessage as un } from "./conversation/message-factory.js";
|
|
56
|
+
import { getFormSchemaToolSyncKey as dn, getLastDeploymentId as fn, getLastUserMessageToolConfiguration as pn, getLatestToolConfiguration as mn, getToolConfigurationFromFormSchema as hn, isMessageStreaming as gn, messageHasStages as _n, normalizeResponseFormat as vn } from "./conversation/message-utils.js";
|
|
57
|
+
import { toOverlayMessages as yn } from "./conversation/overlay-messages.js";
|
|
58
|
+
import { getQuickAppConversationStarters as bn } from "./conversation/quick-app-conversation-starters.js";
|
|
59
|
+
import { mapStages as xn, toStage as Sn } from "./conversation/stage.js";
|
|
60
|
+
import { getStarterPopulateText as Cn, getStartersFromSchema as wn } from "./conversation/starter-option.js";
|
|
61
|
+
import { useOAuthCallbackCompletion as Tn } from "./oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js";
|
|
62
|
+
import { buildPromptExportEnvelope as En, buildPromptExportFileName as Dn, serializePromptExport as On } from "./prompt/export-prompt.js";
|
|
63
|
+
import { PROMPT_CONTENT_MAX_LENGTH as kn, PROMPT_COUNTER_ANNOUNCE_THRESHOLD as An, PROMPT_DESCRIPTION_MAX_LENGTH as jn, PROMPT_NAME_MAX_LENGTH as Mn, PromptFieldError as Nn, buildPromptPath as Pn, getRemainingCharacters as Fn, validatePromptContent as In, validatePromptDescription as Ln, validatePromptName as Rn } from "./prompt/prompt.js";
|
|
64
|
+
import { usePromptsState as zn } from "./prompt/usePromptsState/usePromptsState.js";
|
|
65
|
+
import { UnsupportedTriggerReason as Bn } from "./scheduled-task/scheduled-task-mapping.js";
|
|
66
|
+
import { ScheduledTaskTriggerDescriptionKind as Vn, describeScheduledTaskTrigger as Hn } from "./scheduled-task/scheduled-task-description.js";
|
|
67
|
+
import { apSchedulerDayToJsDay as Un, jsDayToApSchedulerDay as Wn } from "./shared/cron-weekday.js";
|
|
68
|
+
import { mapFormValuesToCreateBody as Gn, mapFormValuesToUpdateBody as Kn, mapScheduledTaskDtoToFormValues as qn } from "./scheduled-task/scheduled-task-trigger.js";
|
|
69
|
+
import { prepareScheduledTaskCreateBody as Jn, prepareScheduledTaskUpdateBody as Yn } from "./scheduled-task/scheduled-task-preparation.js";
|
|
70
|
+
import { createScheduledTasksApiClient as Xn } from "./scheduled-task/scheduled-tasks-api-client.js";
|
|
71
|
+
import { useScheduledTasks as Zn } from "./scheduled-task/use-scheduled-tasks.js";
|
|
72
|
+
import { mergeRunsById as Qn, useScheduledTaskRuns as $n } from "./scheduled-task/use-scheduled-task-runs.js";
|
|
73
|
+
import { validateSkillFileBatch as er } from "./skill/skill-file-batch-validation.js";
|
|
74
|
+
import { skillFileToAttachment as tr } from "./skill/skill-file-preview.js";
|
|
75
|
+
import { SkillEditorLoadState as nr, useSkillEditorLoad as rr } from "./skill/useSkillEditorLoad.js";
|
|
76
|
+
import { useSkillEditorSubmit as ir } from "./skill/useSkillEditorSubmit.js";
|
|
77
|
+
import { useSkillFileActions as ar } from "./skill/useSkillFileActions.js";
|
|
78
|
+
import { SkillPreviewErrorKind as or, useSkillFilePreview as sr } from "./skill/useSkillFilePreview.js";
|
|
79
|
+
import { useSkillsState as cr } from "./skill/useSkillsState/useSkillsState.js";
|
|
80
|
+
import { SkillArchiveImportErrorKind as lr, SkillArchiveImportStatus as ur, SkillArchiveSelectionRejectionReason as dr, classifySkillArchiveImportError as fr, useSkillArchiveImport as pr } from "./skill/useSkillArchiveImport/useSkillArchiveImport.js";
|
|
81
|
+
import { RecipientsCountStatus as mr, useShareRecipientsCount as hr } from "./useShareRecipientsCount/useShareRecipientsCount.js";
|
|
82
|
+
import { deriveConversationRowActionState as gr } from "./conversation/deriveConversationRowActionState/deriveConversationRowActionState.js";
|
|
83
|
+
import { useActiveConversationSync as _r } from "./conversation/useActiveConversationSync/useActiveConversationSync.js";
|
|
84
|
+
import { useAsyncConfirmDialog as vr } from "./conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.js";
|
|
85
|
+
import { useConversationLookupMaps as yr } from "./conversation/useConversationLookupMaps/useConversationLookupMaps.js";
|
|
86
|
+
import { getConversationSource as br, useConversationPanelItems as xr } from "./conversation/useConversationPanelItems/useConversationPanelItems.js";
|
|
87
|
+
import { useImportFilePicker as Sr } from "./conversation/useImportFilePicker/useImportFilePicker.js";
|
|
88
|
+
import { useMessageSelectionReply as Cr } from "./conversation/useMessageSelectionReply/useMessageSelectionReply.js";
|
|
89
|
+
import { sanitizeFileName as wr, splitFileNameExtension as Tr, trimFileNameToByteLimit as Er } from "./files/file-name.js";
|
|
90
|
+
import { useAttachmentUpload as Dr } from "./conversation/useAttachmentUpload/useAttachmentUpload.js";
|
|
91
|
+
import { AudioTranscriptionError as Or, AudioTranscriptionErrorReason as kr } from "./conversation/useTranscribeAudio/audio-transcription-error.js";
|
|
92
|
+
import { useTranscribeAudio as Ar } from "./conversation/useTranscribeAudio/useTranscribeAudio.js";
|
|
93
|
+
import { DEFAULT_MAX_ARCHIVE_BYTES as jr, useConversationExport as Mr } from "./conversation/useConversationExport/useConversationExport.js";
|
|
94
|
+
import { attachmentToDto as Nr, attachmentsToDtos as Pr } from "./conversation/useConversationHandlers/attachment-to-dto.js";
|
|
95
|
+
import { createMessagePair as Fr } from "./conversation/useConversationHandlers/message-factory.js";
|
|
96
|
+
import { hasActiveToolConfig as Ir, isAnswerIncomplete as Lr, isMessageChanged as Rr, shouldRerunGenerationOnEdit as zr } from "./conversation/useConversationHandlers/message-utils.js";
|
|
97
|
+
import { getStarterConversationText as Br, getStarterDisplayText as Vr, getStarterSubmitText as Hr } from "./conversation/useConversationHandlers/starter-option.js";
|
|
98
|
+
import { getConversationPath as Ur } from "./conversation/useConversationStream/conversation-path.js";
|
|
99
|
+
import { useConversationHandlers as Wr } from "./conversation/useConversationHandlers/useConversationHandlers.js";
|
|
100
|
+
import { useConversationImport as Gr } from "./conversation/useConversationImport/useConversationImport.js";
|
|
101
|
+
import { useConversationScroll as Kr } from "./conversation/useConversationScroll/useConversationScroll.js";
|
|
102
|
+
import { applyChunkToMessages as qr, mergeStages as Jr } from "./conversation/useConversationStream/apply-chunk.js";
|
|
103
|
+
import { isAwaitingGenerationResume as Yr } from "./conversation/useConversationStream/generation-resume.js";
|
|
104
|
+
import { useConversationStream as Xr } from "./conversation/useConversationStream/useConversationStream.js";
|
|
105
|
+
import { useConversationSources as Zr } from "./conversation-sources/useConversationSources/useConversationSources.js";
|
|
106
|
+
import { DialFilesApiUploadMode as Qr } from "./files/dial-files-api.js";
|
|
107
|
+
import { FileManagerNotificationReason as $r, FileNameValidationErrorReason as ei, FileOperationKind as ti } from "./files/dial-file-manager.types.js";
|
|
108
|
+
import { COLUMNS_WITHOUT_AUTHOR as ni, COLUMNS_WITH_AUTHOR as ri, CORE_PERMISSION_MAP as ii, DATE_OPTIONS as ai, DIAL_FILE_MANAGER_SECTION_TABS as oi, PATH_SEPARATOR_REGEXP as si, RESERVED_MARKER_NAME as ci, UPLOAD_CONCURRENCY as li } from "./files/dial-file-manager.model.js";
|
|
109
|
+
import { DialFileManagerActionProfile as ui, DialFileManagerVariant as di, deriveActionProfile as fi } from "./files/file-manager-variant.js";
|
|
110
|
+
import { buildSharedItemVirtualPath as pi, dialCorePathToRelative as mi, findDialFileByPath as hi, findFolderByVirtualPath as gi, formatOperationFolderName as _i, getVirtualPathName as vi, hasDialFileWritePermission as yi, hasForbiddenNameSymbols as bi, hasSamePaths as xi, isCopyMoveDuplicateAllowed as Si, isShareActionsAllowed as Ci, normalizeVirtualPath as wi, parseNewFolderVirtualPath as Ti, resolveOwnerCoords as Ei, resolveSectionByPath as Di, unionPathSets as Oi, withRoutableRootLabels as ki } from "./files/dial-file-manager-path.util.js";
|
|
111
|
+
import { getParentFolderPath as Ai, resolveDialFileApiPath as ji, virtualPathToApiPath as Mi } from "./files/resolve-dial-file-api-path.js";
|
|
112
|
+
import { prepareCopyItems as Ni, prepareMoveRenameItems as Pi } from "./files/dial-file-manager-copy-move.util.js";
|
|
113
|
+
import { buildFromCache as Fi, fetchByTab as Ii, fetchForSearch as Li, findFirstSuccessfulCopyMoveItem as Ri, mapCorePermissions as zi, mapFileMetadataToDialFile as Bi, mapSearchItem as Vi, mergeCreatedFolderIntoCache as Hi, updateEntry as Ui } from "./files/dial-file-manager-mapping.util.js";
|
|
114
|
+
import { createFilesApiClient as Wi } from "./files/create-files-api.js";
|
|
115
|
+
import { createUploadFileWithProgress as Gi } from "./files/create-upload-file-with-progress.js";
|
|
116
|
+
import { openAnnotationAttachment as Ki } from "./files/annotation.js";
|
|
117
|
+
import { annotationToOoxmlCanvasContent as qi, annotationToPdfCanvasContent as Ji, clearAttachmentCache as Yi, hasAttachmentTextSource as Xi, referenceAttachmentToPdfCanvasContent as Zi, resolveCodeCanvasContent as Qi, resolveGroupedVisualizerCanvasContent as $i, resolveHtmlCanvasContent as ea, resolveImageCanvasContent as ta, resolveJsonCanvasContent as na, resolveMarkdownCanvasContent as ra, resolveOoxmlCanvasContent as ia, resolvePdfCanvasContent as aa, resolveTextCanvasContent as oa, resolveVisualizerCanvasContent as sa } from "./files/attachment-canvas.js";
|
|
118
|
+
import { getUrlFileName as ca, isExternalSourcePreviewable as la, resolveExternalSourceContentType as ua } from "./files/source-content.js";
|
|
119
|
+
import { annotationToDisplayAttachment as da, attachmentDtoToDisplayAttachment as fa, attachmentDtosToDisplayAttachments as pa } from "./files/attachment-dto-to-display.js";
|
|
120
|
+
import { dialFileToAttachment as ma, dialFilesToAttachments as ha, dialFolderPathToAttachment as ga } from "./files/dial-file-to-attachment.js";
|
|
121
|
+
import { DownloadDestinationType as _a } from "./files/download-destination.js";
|
|
122
|
+
import { prepareDownloadDestination as va } from "./files/prepare-download-destination.js";
|
|
123
|
+
import { useDialFileListing as ya } from "./files/useDialFileListing/useDialFileListing.js";
|
|
124
|
+
import { useDialFileMetadata as ba } from "./files/useDialFileMetadata/useDialFileMetadata.js";
|
|
125
|
+
import { useDialFileMutations as xa } from "./files/useDialFileMutations/useDialFileMutations.js";
|
|
126
|
+
import { useDialFileSharing as Sa } from "./files/useDialFileSharing/useDialFileSharing.js";
|
|
127
|
+
import { useDialFileUploadBatch as Ca } from "./files/useDialFileUploadBatch/useDialFileUploadBatch.js";
|
|
128
|
+
import { useDialFileManager as wa } from "./files/useDialFileManager/useDialFileManager.js";
|
|
129
|
+
import { useDialFileManagerSections as Ta } from "./files/useDialFileManagerSections/useDialFileManagerSections.js";
|
|
130
|
+
import { useDialFileManagerTabConfig as Ea } from "./files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js";
|
|
131
|
+
import { useFileAttachmentPicker as Da } from "./files/useFileAttachmentPicker/useFileAttachmentPicker.js";
|
|
132
|
+
import { getBrowserTimezone as Oa } from "./shared/browser-timezone.js";
|
|
133
|
+
import { isValidAbsoluteUrl as ka, isValidFeaturesData as Aa, parseFeaturesData as ja } from "./shared/custom-apps.js";
|
|
134
|
+
import { buildExternalServiceScopeId as Ma, getExternalServiceFallbackName as Na, parseExternalServiceUrl as Pa } from "./shared/external-services.js";
|
|
135
|
+
import { useChatSettingsFormConfig as Fa } from "./useChatSettingsFormConfig/useChatSettingsFormConfig.js";
|
|
136
|
+
import { usePageFileDrag as Ia } from "./usePageFileDrag/usePageFileDrag.js";
|
|
137
|
+
import { useViewportWidth as La } from "./useViewportWidth/useViewportWidth.js";
|
|
138
|
+
import { usePanelMaxWidth as Ra } from "./usePanelMaxWidth/usePanelMaxWidth.js";
|
|
139
|
+
import { useShareLink as za } from "./useShareLink/useShareLink.js";
|
|
140
|
+
import { useToolsMenu as Ba } from "./useToolsMenu/useToolsMenu.js";
|
|
141
|
+
import { USAGE_DATA_I18N_KEYS as Va, mapUsageDataToDashboard as Ha } from "./usage/map-usage-data-to-dashboard.js";
|
|
142
|
+
import { USAGE_MODEL_LIMITS_I18N_KEYS as Ua, mapOverallCostLimitsToPeriodStatuses as Wa, mapUserUsageToModelLimits as Ga } from "./usage/map-user-usage-to-model-limits.js";
|
|
143
|
+
import { useUsageData as Ka } from "./usage/useUsageData/useUsageData.js";
|
|
144
|
+
import { McpAppResourceFetchError as qa, createMcpAppsApiClient as Ja } from "./mcp-apps/mcp-apps-api-client.js";
|
|
145
|
+
import { useMcpAppTools as Ya } from "./mcp-apps/useMcpAppTools/useMcpAppTools.js";
|
|
146
|
+
import { useMcpAppHostContext as Xa } from "./mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js";
|
|
147
|
+
import { useMcpAppHostAdapter as Za } from "./mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.js";
|
|
148
|
+
import { useOpenMcpAppCanvas as Qa } from "./mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.js";
|
|
149
|
+
import { useGridEditingScroll as $a } from "@epam/ai-dial-chat-shared";
|
|
150
|
+
export { x as AttachmentValidationErrorReason, Or as AudioTranscriptionError, kr as AudioTranscriptionErrorReason, B as AuthenticationType, ni as COLUMNS_WITHOUT_AUTHOR, ri as COLUMNS_WITH_AUTHOR, ii as CORE_PERMISSION_MAP, yt as CatalogPrimaryActionType, T as ConversationExportMode, E as ConversationTransferErrorCode, D as ConversationTransferWarningCode, ai as DATE_OPTIONS, Xt as DEFAULT_GENERATION_CONFLICT_MESSAGE, Zt as DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE, jr as DEFAULT_MAX_ARCHIVE_BYTES, Qt as DEFAULT_STREAM_IDLE_TIMEOUT_MS, oi as DIAL_FILE_MANAGER_SECTION_TABS, ui as DialFileManagerActionProfile, di as DialFileManagerVariant, Qr as DialFilesApiUploadMode, _a as DownloadDestinationType, k as EXPORT_APP_NAME, O as ExportFileNameKind, Ht as FavoriteEntityType, $r as FileManagerNotificationReason, ei as FileNameValidationErrorReason, ti as FileOperationKind, $t as GenerationConflictError, en as GenerationPersistenceError, qa as McpAppResourceFetchError, it as McpResourceKind, W as OAuthResourceKind, si as PATH_SEPARATOR_REGEXP, kn as PROMPT_CONTENT_MAX_LENGTH, An as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, jn as PROMPT_DESCRIPTION_MAX_LENGTH, Mn as PROMPT_NAME_MAX_LENGTH, We as PUBLIC_SKILL_BUCKET, Nn as PromptFieldError, Se as PromptSource, ci as RESERVED_MARKER_NAME, mr as RecipientsCountStatus, De as SKILL_FILE_UPLOAD_MAX_BYTES, Ge as SKILL_LISTING_MAX_PAGES, Ke as SKILL_LISTING_PAGE_SIZE, Oe as SKILL_MANIFEST_FILE, qe as SKILL_MANIFEST_MAX_BYTES, ke as SKILL_TEXT_FIELD_MAX_LENGTHS, Ae as SKILL_UPLOAD_MAX_FILES, je as SKILL_UPLOAD_MAX_TOTAL_BYTES, Vn as ScheduledTaskTriggerDescriptionKind, lr as SkillArchiveImportErrorKind, ur as SkillArchiveImportStatus, dr as SkillArchiveSelectionRejectionReason, nr as SkillEditorLoadState, or as SkillPreviewErrorKind, Je as SkillSource, tn as StreamInterruptedError, nn as StreamUpstreamError, G as TOOLSET_REDIRECT_STATE_KEY, K as ToolsetAuthStatus, q as ToolsetAuthTypes, J as ToolsetCredentialsLevel, Lt as ToolsetLoginOutcomeType, Y as ToolsetOAuthCallbackQuery, X as ToolsetOAuthChannelControlType, Z as ToolsetOAuthFailureReason, Q as ToolsetOAuthInitiationResultType, $ as ToolsetOAuthResultType, li as UPLOAD_CONCURRENCY, Va as USAGE_DATA_I18N_KEYS, Ua as USAGE_MODEL_LIMITS_I18N_KEYS, Bn as UnsupportedTriggerReason, ee as WithLogin, da as annotationToDisplayAttachment, qi as annotationToOoxmlCanvasContent, Ji as annotationToPdfCanvasContent, Un as apSchedulerDayToJsDay, se as appendLocaleCode, qr as applyChunkToMessages, fa as attachmentDtoToDisplayAttachment, pa as attachmentDtosToDisplayAttachments, Nr as attachmentToDto, Pr as attachmentsToDtos, ce as buildAdditionalLocaleOptions, Gt as buildAnnouncementSignature, at as buildApplicationMcpUrl, N as buildChatCompletionsUrl, ot as buildConnectApi, P as buildDeploymentConnectApi, Ma as buildExternalServiceScopeId, Fi as buildFromCache, En as buildPromptExportEnvelope, Dn as buildPromptExportFileName, we as buildPromptOverview, Pn as buildPromptPath, V as buildResetFields, F as buildResponsesUrl, pi as buildSharedItemVirtualPath, Xe as buildSkillContentTree, Me as buildSkillFilesPayload, Ne as buildSkillManifest, Pe as buildSkillManifestForSubmit, Fe as buildSkillManifestFromFrontmatter, Ze as buildSkillOverview, Mt as buildToolsetAuthorizeUrl, st as buildToolsetMcpUrl, fr as classifySkillArchiveImportError, Yi as clearAttachmentCache, le as composeLocalePayload, rn as createChatStreamApi, i as createCsrfMiddleware, un as createDeploymentChangedMessage, Wi as createFilesApiClient, Ja as createMcpAppsApiClient, Fr as createMessagePair, j as createPublishApiClient, Xn as createScheduledTasksApiClient, a as createUnauthorizedMiddleware, Gi as createUploadFileWithProgress, I as decodeDeploymentId, te as decodeToolsetId, ue as decomposeLocalizedFields, fi as deriveActionProfile, mt as deriveAvailableTabIds, gr as deriveConversationRowActionState, ht as deriveFavoriteItems, Hn as describeScheduledTaskTrigger, mi as dialCorePathToRelative, ma as dialFileToAttachment, ha as dialFilesToAttachments, ga as dialFolderPathToAttachment, m as downloadAttachment, Ot as emitToolsetLoginSuccess, L as encodeDeploymentId, ne as encodeToolsetId, Ii as fetchByTab, Li as fetchForSearch, gt as filterCatalogItemsBySelector, _t as filterHiddenOwnedItems, R as findDeploymentByIdOrReference, hi as findDialFileByPath, Ri as findFirstSuccessfulCopyMoveItem, gi as findFolderByVirtualPath, on as formatAppVersion, pe as formatCalendarDate, C as formatDateYM, w as formatDateYMD, _i as formatOperationFolderName, A as formatQuotedNameList, e as getApiErrorDetails, t as getApiErrorMessage, n as getApiErrorStatus, Oa as getBrowserTimezone, Ur as getConversationPath, br as getConversationSource, Na as getExternalServiceFallbackName, dn as getFormSchemaToolSyncKey, fn as getLastDeploymentId, pn as getLastUserMessageToolConfiguration, mn as getLatestToolConfiguration, cn as getModelIdFromConversationId, Ai as getParentFolderPath, lt as getPublicCatalogEntityFolderPath, bn as getQuickAppConversationStarters, Fn as getRemainingCharacters, xt as getRunnerSchemas, Ie as getSkillFieldLengthViolations, Br as getStarterConversationText, Vr as getStarterDisplayText, Cn as getStarterPopulateText, Hr as getStarterSubmitText, wn as getStartersFromSchema, ln as getTimeOfDayGreeting, hn as getToolConfigurationFromFormSchema, At as getToolsetOAuthChannelName, Nt as getToolsetRedirectUri, ca as getUrlFileName, vi as getVirtualPathName, Ir as hasActiveToolConfig, Kt as hasAnnouncementContent, Xi as hasAttachmentTextSource, yi as hasDialFileWritePermission, bi as hasForbiddenNameSymbols, xi as hasSamePaths, qt as hasStructuredAnnouncement, o as includesIgnoreCase, Pt as initiateOAuthLogin, Lr as isAnswerIncomplete, Yr as isAwaitingGenerationResume, r as isConversationNotFoundError, Si as isCopyMoveDuplicateAllowed, St as isCustomAppSchema, _ as isDialFileAcceptType, d as isDialFileId, h as isDownloadableAttachment, la as isExternalSourcePreviewable, Rr as isMessageChanged, gn as isMessageStreaming, Te as isOrganisationPromptItem, ut as isPublicCatalogEntityId, re as isPublicToolsetId, Ct as isQuickAppSchema, Ci as isShareActionsAllowed, ka as isValidAbsoluteUrl, Aa as isValidFeaturesData, Le as isValidSkillRelativePath, Wn as jsDayToApSchedulerDay, zi as mapCorePermissions, he as mapDeploymentDetailsDtoToEntityDetails, U as mapDeploymentLimitsDtoToCatalogLimits, H as mapDeploymentLimitsToInput, ve as mapDeploymentToCatalogItem, ye as mapDeploymentToolsetCredentials, ge as mapEntityDetailsToCatalogDetails, Bi as mapFileMetadataToDialFile, Gn as mapFormValuesToCreateBody, Kn as mapFormValuesToUpdateBody, Wa as mapOverallCostLimitsToPeriodStatuses, Ee as mapPromptToCatalogItem, dt as mapPublishConversationResultDto, ft as mapPublishHistoryEntryDto, qn as mapScheduledTaskDtoToFormValues, Vi as mapSearchItem, Qe as mapSkillToCatalogItem, xn as mapStages, _e as mapToolsetCredentials, be as mapToolsetToCatalogItem, Ha as mapUsageDataToDashboard, Ga as mapUserUsageToModelLimits, Hi as mergeCreatedFolderIntoCache, Qn as mergeRunsById, Jr as mergeStages, _n as messageHasStages, v as mimeTypesToAttachmentExtensionLabels, y as mimeTypesToDialFileAcceptTypes, b as mimeTypesToFileAccept, Re as nameFromPath, Ft as navigateToolsetOAuthPopup, z as normalizeDeploymentId, vn as normalizeResponseFormat, ze as normalizeSkillName, ie as normalizeToolsetId, wi as normalizeVirtualPath, Ki as openAnnotationAttachment, It as openToolsetOAuthPopup, me as padTwoDigits, Pa as parseExternalServiceUrl, ja as parseFeaturesData, Ti as parseNewFolderVirtualPath, Ce as parsePromptResourceUrl, Be as parseSkillManifest, Tt as parseSkillManifestDocument, Ye as parseSkillResourceUrl, Ni as prepareCopyItems, va as prepareDownloadDestination, Pi as prepareMoveRenameItems, Jn as prepareScheduledTaskCreateBody, Yn as prepareScheduledTaskUpdateBody, $e as readSkillFileBytes, et as readSkillFilePreviewBytes, tt as readSkillManifest, vt as reconcileFilterTopics, Zi as referenceAttachmentToPdfCanvasContent, bt as resolveCatalogPrimaryAction, Qi as resolveCodeCanvasContent, xe as resolveDeploymentFolder, ji as resolveDialFileApiPath, f as resolveDialFileBucketAndPath, ua as resolveExternalSourceContentType, $i as resolveGroupedVisualizerCanvasContent, ea as resolveHtmlCanvasContent, ta as resolveImageCanvasContent, na as resolveJsonCanvasContent, de as resolveLocalizedText, ra as resolveMarkdownCanvasContent, ct as resolveMcpResourceKind, ia as resolveOoxmlCanvasContent, Ei as resolveOwnerCoords, aa as resolvePdfCanvasContent, p as resolveRelativeDialFilePath, Di as resolveSectionByPath, nt as resolveSkillFileDownloadPath, rt as resolveSkillManifestFileId, oa as resolveTextCanvasContent, ae as resolveToolsetCredentialsLevel, sa as resolveVisualizerCanvasContent, s as safeDecodeURI, c as safeDecodeURIComponent, Jt as sanitizeAnnouncementHtml, Yt as sanitizeAnnouncementMessageHtml, wr as sanitizeFileName, sn as sanitizeFooterHtml, oe as selectToolsetAuthStatus, On as serializePromptExport, zr as shouldRerunGenerationOnEdit, an as shouldWatchForDisplayNameUpdate, Ve as skillFileBytesToBlob, tr as skillFileToAttachment, Tr as splitFileNameExtension, He as startsWithFrontmatterBlock, l as stripSurroundingSlashes, u as stripTrailingSlashes, kt as subscribeToolsetLoginSuccess, fe as toBaseLocale, yn as toOverlayMessages, pt as toPublishEntityType, M as toPublishRuleDto, Sn as toStage, Er as trimFileNameToByteLimit, Oi as unionPathSets, Ue as unpackSkillArchive, Ui as updateEntry, _r as useActiveConversationSync, Bt as useApplicationCredentials, vr as useAsyncConfirmDialog, g as useAttachmentAction, Dr as useAttachmentUpload, S as useAttachmentValidation, wt as useCatalogEditNavigation, Dt as useCatalogItemDetails, zt as useCatalogToolsetCredentials, Fa as useChatSettingsFormConfig, Mr as useConversationExport, Wr as useConversationHandlers, Gr as useConversationImport, yr as useConversationLookupMaps, xr as useConversationPanelItems, Kr as useConversationScroll, Zr as useConversationSources, Xr as useConversationStream, ya as useDialFileListing, wa as useDialFileManager, Ta as useDialFileManagerSections, Ea as useDialFileManagerTabConfig, ba as useDialFileMetadata, xa as useDialFileMutations, Sa as useDialFileSharing, Ca as useDialFileUploadBatch, Ut as useFavoriteEntitiesState, Da as useFileAttachmentPicker, $a as useGridEditingScroll, Sr as useImportFilePicker, Za as useMcpAppHostAdapter, Xa as useMcpAppHostContext, Ya as useMcpAppTools, Cr as useMessageSelectionReply, Tn as useOAuthCallbackCompletion, Qa as useOpenMcpAppCanvas, Ia as usePageFileDrag, Ra as usePanelMaxWidth, zn as usePromptsState, Wt as usePublishFolders, $n as useScheduledTaskRuns, Zn as useScheduledTasks, za as useShareLink, hr as useShareRecipientsCount, pr as useSkillArchiveImport, Vt as useSkillDetailsPanelData, rr as useSkillEditorLoad, ir as useSkillEditorSubmit, ar as useSkillFileActions, sr as useSkillFilePreview, Et as useSkillItemDetails, cr as useSkillsState, Ba as useToolsMenu, Rt as useToolsetLogin, Ar as useTranscribeAudio, Ka as useUsageData, La as useViewportWidth, In as validatePromptContent, Ln as validatePromptDescription, Rn as validatePromptName, er as validateSkillFileBatch, Mi as virtualPathToApiPath, jt as waitForToolsetOAuthResult, ki as withRoutableRootLabels };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-chat-hooks",
|
|
3
3
|
"description": "Framework-level React hooks extracted from AI DIAL Chat for building custom chat interfaces",
|
|
4
|
-
"version": "1.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.253",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
"dependencies": {
|
|
114
|
-
"@epam/ai-dial-chat-api-client": "1.2.0-dev.
|
|
114
|
+
"@epam/ai-dial-chat-api-client": "1.2.0-dev.253",
|
|
115
115
|
"dompurify": "3.4.16",
|
|
116
116
|
"fflate": "^0.8.3",
|
|
117
117
|
"lru-cache": "^10.4.3",
|
|
@@ -120,21 +120,21 @@
|
|
|
120
120
|
},
|
|
121
121
|
"peerDependencies": {
|
|
122
122
|
"react": "^19.2.8",
|
|
123
|
-
"@epam/ai-dial-attachment-canvas": "1.2.0-dev.
|
|
124
|
-
"@epam/ai-dial-attachment-input": "1.2.0-dev.
|
|
125
|
-
"@epam/ai-dial-catalog": "1.2.0-dev.
|
|
126
|
-
"@epam/ai-dial-chat-overlay": "1.2.0-dev.
|
|
127
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
128
|
-
"@epam/ai-dial-mcp-apps": "1.2.0-dev.
|
|
129
|
-
"@epam/ai-dial-publish-panel": "1.2.0-dev.
|
|
130
|
-
"@epam/ai-dial-quotations": "1.2.0-dev.
|
|
123
|
+
"@epam/ai-dial-attachment-canvas": "1.2.0-dev.253",
|
|
124
|
+
"@epam/ai-dial-attachment-input": "1.2.0-dev.253",
|
|
125
|
+
"@epam/ai-dial-catalog": "1.2.0-dev.253",
|
|
126
|
+
"@epam/ai-dial-chat-overlay": "1.2.0-dev.253",
|
|
127
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.253",
|
|
128
|
+
"@epam/ai-dial-mcp-apps": "1.2.0-dev.253",
|
|
129
|
+
"@epam/ai-dial-publish-panel": "1.2.0-dev.253",
|
|
130
|
+
"@epam/ai-dial-quotations": "1.2.0-dev.253",
|
|
131
131
|
"@epam/ai-dial-react-file-manager": "^0.3.0-dev.20",
|
|
132
|
-
"@epam/ai-dial-scheduled-tasks": "1.2.0-dev.
|
|
133
|
-
"@epam/ai-dial-share": "1.2.0-dev.
|
|
134
|
-
"@epam/ai-dial-skill-editor": "1.2.0-dev.
|
|
135
|
-
"@epam/ai-dial-source-panel": "1.2.0-dev.
|
|
132
|
+
"@epam/ai-dial-scheduled-tasks": "1.2.0-dev.253",
|
|
133
|
+
"@epam/ai-dial-share": "1.2.0-dev.253",
|
|
134
|
+
"@epam/ai-dial-skill-editor": "1.2.0-dev.253",
|
|
135
|
+
"@epam/ai-dial-source-panel": "1.2.0-dev.253",
|
|
136
136
|
"@epam/ai-dial-ui-kit": "^0.15.0-dev.35",
|
|
137
|
-
"@epam/ai-dial-usage-dashboard": "1.2.0-dev.
|
|
137
|
+
"@epam/ai-dial-usage-dashboard": "1.2.0-dev.253",
|
|
138
138
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
139
139
|
"@epam/pdf-highlighter-kit": "^0.0.19",
|
|
140
140
|
"@mcp-ui/client": "^7.1.1"
|