@epam/ai-dial-chat-hooks 1.2.0-dev.245 → 1.2.0-dev.252
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.d.ts +9 -5
- package/catalog.js +21 -21
- package/file-manager.d.ts +2 -2
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.js +25 -19
- package/index.d.ts +11 -7
- package/index.js +134 -134
- package/package.json +16 -16
|
@@ -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 };
|
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
|
|
|
@@ -306,16 +310,14 @@ export declare interface DeploymentGenerationApiSupport {
|
|
|
306
310
|
export declare interface DeploymentLimitsLabels {
|
|
307
311
|
/** Heading of the group every token stat row is listed under. */
|
|
308
312
|
tokenGroup: string;
|
|
309
|
-
/** Label for the
|
|
313
|
+
/** Label for the current-UTC-day token row, e.g. "Today". */
|
|
310
314
|
tokensPerDay: string;
|
|
311
|
-
/** Label for the
|
|
315
|
+
/** Label for the current-UTC-week token row, e.g. "This week". */
|
|
312
316
|
tokensPerWeek: string;
|
|
313
|
-
/** Label for the
|
|
317
|
+
/** Label for the current-UTC-month token row, e.g. "This month". */
|
|
314
318
|
tokensPerMonth: string;
|
|
315
319
|
/** Note shown instead of a total on a row whose limit follows the cost limit. */
|
|
316
320
|
followsCostLimit: string;
|
|
317
|
-
/** Formats the "$X spent" caption under a row's label. */
|
|
318
|
-
formatSpentCaption: (amount: string) => string;
|
|
319
321
|
/** Formats the combined used/total display value for a capped row. */
|
|
320
322
|
formatValueLabel: (used: string, total: string) => string;
|
|
321
323
|
/** Formats the ARIA label for a capped progress row. */
|
|
@@ -329,6 +331,8 @@ export declare interface DeploymentLimitsLabels {
|
|
|
329
331
|
label: string;
|
|
330
332
|
used: string;
|
|
331
333
|
}) => string;
|
|
334
|
+
/** Formats each period's `resetsAt` into the row's reset line. Omit it to render rows without one. */
|
|
335
|
+
formatResetTime?: FormatResetTime;
|
|
332
336
|
}
|
|
333
337
|
|
|
334
338
|
/**
|
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/file-manager.d.ts
CHANGED
|
@@ -1192,9 +1192,9 @@ export declare interface UseFileAttachmentPickerOptions {
|
|
|
1192
1192
|
forbiddenSymbolsRegExp?: RegExp;
|
|
1193
1193
|
/** Host-translated label per tab; also supplies the active tab's root-folder label. */
|
|
1194
1194
|
tabLabels: Record<DialFileManagerTabs, string>;
|
|
1195
|
-
/** Tab ids the host's configuration allows. `undefined` allows every tab.
|
|
1195
|
+
/** Tab ids the host's configuration allows. `undefined` allows every tab. */
|
|
1196
1196
|
allowedTabs?: string[];
|
|
1197
|
-
/** Initial active tab. Defaults to `DialFileManagerTabs.MyFiles
|
|
1197
|
+
/** Initial active tab. Defaults to `DialFileManagerTabs.MyFiles`. */
|
|
1198
1198
|
initialTab?: DialFileManagerTabs;
|
|
1199
1199
|
/** MIME types eligible for selection/upload. Empty or absent allows every type. */
|
|
1200
1200
|
allowedTypes?: string[];
|
|
@@ -1,42 +1,48 @@
|
|
|
1
1
|
import { mimeTypesToDialFileAcceptTypes as e } from "../attachment-types.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { DIAL_FILE_MANAGER_SECTION_TABS as t } from "../dial-file-manager.model.js";
|
|
3
|
+
import { DialFileManagerVariant as n } from "../file-manager-variant.js";
|
|
4
|
+
import { useDialFileManagerSections as r } from "../useDialFileManagerSections/useDialFileManagerSections.js";
|
|
5
|
+
import { useDialFileManagerTabConfig as i } from "../useDialFileManagerTabConfig/useDialFileManagerTabConfig.js";
|
|
6
|
+
import { isHiddenPath as a } from "@epam/ai-dial-chat-shared";
|
|
7
|
+
import { useCallback as o, useMemo as s, useState as c } from "react";
|
|
8
|
+
import { isMimeTypeAllowed as l } from "@epam/ai-dial-attachment-input";
|
|
9
|
+
import { DialFileNodeType as u, useDialFileManagerTabs as d } from "@epam/ai-dial-react-file-manager";
|
|
9
10
|
//#region src/files/useFileAttachmentPicker/useFileAttachmentPicker.ts
|
|
10
11
|
var f = ({ fileManagerOptions: f, bucket: p, forbiddenSymbolsRegExp: m, tabLabels: h, allowedTabs: g, initialTab: _, allowedTypes: v, maxSelectableFileSize: y, canAttachFolders: b = !1 }) => {
|
|
11
|
-
let { activeTab: x, handleTabChange: S, tabs: C } = d(h, _
|
|
12
|
+
let { activeTab: x, handleTabChange: S, tabs: C } = d(h, _), w = s(() => t.filter((e) => g == null || g.includes(e)).map((e) => ({
|
|
13
|
+
tab: e,
|
|
14
|
+
rootLabel: h[e]
|
|
15
|
+
})), [g, h]), [T, E] = c(() => /* @__PURE__ */ new Set()), D = o((e) => {
|
|
12
16
|
E(new Set(e));
|
|
13
|
-
}, []), O =
|
|
17
|
+
}, []), O = o((e) => {
|
|
14
18
|
E(/* @__PURE__ */ new Set()), S(e);
|
|
15
|
-
}, [S]), { tabs: k } =
|
|
19
|
+
}, [S]), { tabs: k } = i(x, O, C, g), A = r({
|
|
16
20
|
...f,
|
|
17
21
|
bucket: p,
|
|
18
22
|
activeTab: x,
|
|
19
|
-
|
|
20
|
-
variant:
|
|
23
|
+
sections: w,
|
|
24
|
+
variant: n.Attach,
|
|
21
25
|
forbiddenSymbolsRegExp: m
|
|
22
|
-
}), M =
|
|
26
|
+
}), [j, M] = c(A.sectionTab);
|
|
27
|
+
j !== A.sectionTab && (M(A.sectionTab), E(/* @__PURE__ */ new Set()));
|
|
28
|
+
let N = o((e) => v == null || v.length === 0 ? !0 : l(e, v), [v]);
|
|
23
29
|
return {
|
|
24
|
-
controller:
|
|
30
|
+
controller: A,
|
|
25
31
|
activeTab: x,
|
|
26
32
|
tabs: k,
|
|
27
33
|
onTabChange: O,
|
|
28
34
|
selectedPaths: T,
|
|
29
35
|
onSelectedPathsChange: D,
|
|
30
|
-
isRowSelectable:
|
|
36
|
+
isRowSelectable: o((e) => {
|
|
31
37
|
let t = e.data;
|
|
32
|
-
return t == null ||
|
|
38
|
+
return t == null || a(t.path) ? !1 : t.nodeType === u.FOLDER ? b : t.nodeType === u.ITEM ? !(t.contentType != null && !N(t.contentType) || y != null && t.contentLength != null && t.contentLength > y) : !1;
|
|
33
39
|
}, [
|
|
34
40
|
b,
|
|
35
|
-
|
|
41
|
+
N,
|
|
36
42
|
y
|
|
37
43
|
]),
|
|
38
|
-
isFileTypeAllowed:
|
|
39
|
-
allowedFileTypes:
|
|
44
|
+
isFileTypeAllowed: N,
|
|
45
|
+
allowedFileTypes: s(() => e(v), [v])
|
|
40
46
|
};
|
|
41
47
|
};
|
|
42
48
|
//#endregion
|
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
|
|
|
@@ -1196,16 +1200,14 @@ export declare interface DeploymentGenerationApiSupport {
|
|
|
1196
1200
|
export declare interface DeploymentLimitsLabels {
|
|
1197
1201
|
/** Heading of the group every token stat row is listed under. */
|
|
1198
1202
|
tokenGroup: string;
|
|
1199
|
-
/** Label for the
|
|
1203
|
+
/** Label for the current-UTC-day token row, e.g. "Today". */
|
|
1200
1204
|
tokensPerDay: string;
|
|
1201
|
-
/** Label for the
|
|
1205
|
+
/** Label for the current-UTC-week token row, e.g. "This week". */
|
|
1202
1206
|
tokensPerWeek: string;
|
|
1203
|
-
/** Label for the
|
|
1207
|
+
/** Label for the current-UTC-month token row, e.g. "This month". */
|
|
1204
1208
|
tokensPerMonth: string;
|
|
1205
1209
|
/** Note shown instead of a total on a row whose limit follows the cost limit. */
|
|
1206
1210
|
followsCostLimit: string;
|
|
1207
|
-
/** Formats the "$X spent" caption under a row's label. */
|
|
1208
|
-
formatSpentCaption: (amount: string) => string;
|
|
1209
1211
|
/** Formats the combined used/total display value for a capped row. */
|
|
1210
1212
|
formatValueLabel: (used: string, total: string) => string;
|
|
1211
1213
|
/** Formats the ARIA label for a capped progress row. */
|
|
@@ -1219,6 +1221,8 @@ export declare interface DeploymentLimitsLabels {
|
|
|
1219
1221
|
label: string;
|
|
1220
1222
|
used: string;
|
|
1221
1223
|
}) => string;
|
|
1224
|
+
/** Formats each period's `resetsAt` into the row's reset line. Omit it to render rows without one. */
|
|
1225
|
+
formatResetTime?: FormatResetTime;
|
|
1222
1226
|
}
|
|
1223
1227
|
|
|
1224
1228
|
export declare const deriveActionProfile: (variant: DialFileManagerVariant) => DialFileManagerActionProfile;
|
|
@@ -5804,9 +5808,9 @@ export declare interface UseFileAttachmentPickerOptions {
|
|
|
5804
5808
|
forbiddenSymbolsRegExp?: RegExp;
|
|
5805
5809
|
/** Host-translated label per tab; also supplies the active tab's root-folder label. */
|
|
5806
5810
|
tabLabels: Record<DialFileManagerTabs, string>;
|
|
5807
|
-
/** Tab ids the host's configuration allows. `undefined` allows every tab.
|
|
5811
|
+
/** Tab ids the host's configuration allows. `undefined` allows every tab. */
|
|
5808
5812
|
allowedTabs?: string[];
|
|
5809
|
-
/** Initial active tab. Defaults to `DialFileManagerTabs.MyFiles
|
|
5813
|
+
/** Initial active tab. Defaults to `DialFileManagerTabs.MyFiles`. */
|
|
5810
5814
|
initialTab?: DialFileManagerTabs;
|
|
5811
5815
|
/** MIME types eligible for selection/upload. Empty or absent allows every type. */
|
|
5812
5816
|
allowedTypes?: string[];
|
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.252",
|
|
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.252",
|
|
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.252",
|
|
124
|
+
"@epam/ai-dial-attachment-input": "1.2.0-dev.252",
|
|
125
|
+
"@epam/ai-dial-catalog": "1.2.0-dev.252",
|
|
126
|
+
"@epam/ai-dial-chat-overlay": "1.2.0-dev.252",
|
|
127
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.252",
|
|
128
|
+
"@epam/ai-dial-mcp-apps": "1.2.0-dev.252",
|
|
129
|
+
"@epam/ai-dial-publish-panel": "1.2.0-dev.252",
|
|
130
|
+
"@epam/ai-dial-quotations": "1.2.0-dev.252",
|
|
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.
|
|
136
|
-
"@epam/ai-dial-ui-kit": "^0.15.0-dev.
|
|
137
|
-
"@epam/ai-dial-usage-dashboard": "1.2.0-dev.
|
|
132
|
+
"@epam/ai-dial-scheduled-tasks": "1.2.0-dev.252",
|
|
133
|
+
"@epam/ai-dial-share": "1.2.0-dev.252",
|
|
134
|
+
"@epam/ai-dial-skill-editor": "1.2.0-dev.252",
|
|
135
|
+
"@epam/ai-dial-source-panel": "1.2.0-dev.252",
|
|
136
|
+
"@epam/ai-dial-ui-kit": "^0.15.0-dev.35",
|
|
137
|
+
"@epam/ai-dial-usage-dashboard": "1.2.0-dev.252",
|
|
138
138
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
139
139
|
"@epam/pdf-highlighter-kit": "^0.0.19",
|
|
140
140
|
"@mcp-ui/client": "^7.1.1"
|