@epam/ai-dial-chat-hooks 1.2.0-dev.173 → 1.2.0-dev.174
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/conversation/message-utils.js +44 -2
- package/conversation.d.ts +33 -0
- package/conversation.js +26 -26
- package/index.d.ts +33 -0
- package/index.js +95 -95
- package/package.json +16 -16
|
@@ -9,6 +9,48 @@ var i = (t, n, r, i) => i && n === r - 1 && t.role === e.Assistant, a = (e) => {
|
|
|
9
9
|
return null;
|
|
10
10
|
}, o = (t) => t.role === e.Assistant && (t.custom_content?.stages?.length ?? 0) > 0, s = (t) => {
|
|
11
11
|
for (let n = t.length - 1; n >= 0; n--) if (t[n].role === e.User) return t[n].custom_content?.configuration_value;
|
|
12
|
-
}, c = (e) =>
|
|
12
|
+
}, c = (e) => {
|
|
13
|
+
if (typeof e.default == "boolean") return e.default;
|
|
14
|
+
let t = e.oneOf;
|
|
15
|
+
if (Array.isArray(t) && t.length === 1) {
|
|
16
|
+
let e = t[0];
|
|
17
|
+
if (typeof e == "object" && e && "const" in e && typeof e.const == "boolean") return e.const;
|
|
18
|
+
}
|
|
19
|
+
}, l = (e) => {
|
|
20
|
+
let t = e?.properties;
|
|
21
|
+
if (t == null) return;
|
|
22
|
+
let n = Object.entries(t).flatMap(([e, t]) => {
|
|
23
|
+
let n = c(t);
|
|
24
|
+
return n === void 0 ? [] : [[e, n]];
|
|
25
|
+
});
|
|
26
|
+
return n.length > 0 ? Object.fromEntries(n) : void 0;
|
|
27
|
+
}, u = (t) => {
|
|
28
|
+
let n = -1;
|
|
29
|
+
for (let r = t.length - 1; r >= 0; r--) if (t[r].role === e.User) {
|
|
30
|
+
n = r;
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
let r = t[n]?.custom_content?.configuration_value;
|
|
34
|
+
for (let i = n + 1; i < t.length; i++) {
|
|
35
|
+
let n = t[i];
|
|
36
|
+
if (n.role !== e.Assistant) continue;
|
|
37
|
+
let a = l(n.custom_content?.form_schema);
|
|
38
|
+
a && (r = {
|
|
39
|
+
...r,
|
|
40
|
+
...a
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
return r;
|
|
44
|
+
}, d = (t, n, r) => {
|
|
45
|
+
let i = n.length - 1, a = n[i];
|
|
46
|
+
if (a?.role !== e.Assistant) return;
|
|
47
|
+
let o = l(a.custom_content?.form_schema);
|
|
48
|
+
if (!o) return;
|
|
49
|
+
let s = Object.fromEntries(r.filter((e) => e in o).sort().map((e) => [e, o[e]]));
|
|
50
|
+
if (Object.keys(s).length !== 0) return {
|
|
51
|
+
key: `${t}|${i}|${JSON.stringify(s)}`,
|
|
52
|
+
values: s
|
|
53
|
+
};
|
|
54
|
+
}, f = (e) => (e ?? "").toLowerCase().replace(/[^a-z]/g, "") === "plaintext" ? t.PlainText : t.Markdown;
|
|
13
55
|
//#endregion
|
|
14
|
-
export { a as getLastDeploymentId, s as getLastUserMessageToolConfiguration, i as isMessageStreaming, o as messageHasStages,
|
|
56
|
+
export { d as getFormSchemaToolSyncKey, a as getLastDeploymentId, s as getLastUserMessageToolConfiguration, u as getLatestToolConfiguration, l as getToolConfigurationFromFormSchema, i as isMessageStreaming, o as messageHasStages, f as normalizeResponseFormat };
|
package/conversation.d.ts
CHANGED
|
@@ -424,6 +424,21 @@ export declare const getConversationPath: (conversationId: string) => string;
|
|
|
424
424
|
*/
|
|
425
425
|
export declare const getConversationSource: (item: Pick<ConversationListItemDto, "sharedWithMe" | "publishedWithMe">) => FilterTab;
|
|
426
426
|
|
|
427
|
+
/**
|
|
428
|
+
* Returns the tool values the conversation's last message sets through its
|
|
429
|
+
* `form_schema`, restricted to `toolIds`, plus a key identifying that exact
|
|
430
|
+
* application. `undefined` when the last message is not an assistant message
|
|
431
|
+
* or sets no known tool.
|
|
432
|
+
*
|
|
433
|
+
* Streamed chunks and reloads re-create an identical `form_schema`; comparing
|
|
434
|
+
* keys rather than object identity applies an app's value once and leaves a
|
|
435
|
+
* later user toggle alone until the app sends a different value.
|
|
436
|
+
*/
|
|
437
|
+
export declare const getFormSchemaToolSyncKey: (conversationId: string, messages: Message[], toolIds: readonly string[]) => {
|
|
438
|
+
key: string;
|
|
439
|
+
values: Record<string, boolean>;
|
|
440
|
+
} | undefined;
|
|
441
|
+
|
|
427
442
|
/**
|
|
428
443
|
* Returns the deployment the conversation was last running on: scanning
|
|
429
444
|
* backwards, the `new_deployment_id` of a `model_changed` status message or
|
|
@@ -447,6 +462,15 @@ export declare const getLastDeploymentId: (messages: Message[]) => string | null
|
|
|
447
462
|
*/
|
|
448
463
|
export declare const getLastUserMessageToolConfiguration: (messages: Message[]) => Record<string, unknown> | undefined;
|
|
449
464
|
|
|
465
|
+
/**
|
|
466
|
+
* Returns the tool configuration a (re-)loaded conversation should show: the
|
|
467
|
+
* last user message's `configuration_value`, overlaid in order by the
|
|
468
|
+
* `form_schema` values of the assistant messages after it. An app that turned
|
|
469
|
+
* a toggle off in its final response must not see it re-armed on reload just
|
|
470
|
+
* because the user message that started the run had it on.
|
|
471
|
+
*/
|
|
472
|
+
export declare const getLatestToolConfiguration: (messages: Message[]) => Record<string, unknown> | undefined;
|
|
473
|
+
|
|
450
474
|
/**
|
|
451
475
|
* Extracts the deployment/model ID from a DIAL Core conversation ID.
|
|
452
476
|
*
|
|
@@ -530,6 +554,15 @@ export declare const getStarterSubmitText: (starter: StarterOption, description?
|
|
|
530
554
|
*/
|
|
531
555
|
export declare const getTimeOfDayGreeting: (hour: number, translations: GreetingTranslations, firstName?: string) => string;
|
|
532
556
|
|
|
557
|
+
/**
|
|
558
|
+
* Returns the boolean values an assistant message's `form_schema` sets, keyed
|
|
559
|
+
* by property name, or `undefined` when no property resolves to a boolean.
|
|
560
|
+
* Lets a DIAL app switch a tools-menu toggle (e.g. `deep_research`) per
|
|
561
|
+
* message — on while a run is in progress, off once its result is delivered.
|
|
562
|
+
* Not filtered by tool id: `restoreToolConfiguration` ignores unknown ids.
|
|
563
|
+
*/
|
|
564
|
+
export declare const getToolConfigurationFromFormSchema: (formSchema: DeploymentConfigurationSchema | undefined) => Record<string, boolean> | undefined;
|
|
565
|
+
|
|
533
566
|
/** Pre-translated greeting phrase strings for each time-of-day period. */
|
|
534
567
|
export declare interface GreetingTranslations {
|
|
535
568
|
morningWithName: string;
|
package/conversation.js
CHANGED
|
@@ -5,29 +5,29 @@ import { formatAppVersion as m, sanitizeFooterHtml as h } from "./conversation/f
|
|
|
5
5
|
import { getModelIdFromConversationId as g } from "./conversation/get-model-id-from-conversation-id.js";
|
|
6
6
|
import { getTimeOfDayGreeting as _ } from "./conversation/greeting.js";
|
|
7
7
|
import { createDeploymentChangedMessage as v } from "./conversation/message-factory.js";
|
|
8
|
-
import {
|
|
9
|
-
import { getQuickAppConversationStarters as
|
|
10
|
-
import { mapStages as
|
|
11
|
-
import { getStarterPopulateText as
|
|
12
|
-
import { deriveConversationRowActionState as
|
|
13
|
-
import { useActiveConversationSync as
|
|
14
|
-
import { useAsyncConfirmDialog as
|
|
15
|
-
import { useConversationLookupMaps as
|
|
16
|
-
import { getConversationSource as
|
|
17
|
-
import { useImportFilePicker as
|
|
18
|
-
import { useMessageSelectionReply as
|
|
19
|
-
import { useAttachmentUpload as
|
|
20
|
-
import { AudioTranscriptionError as
|
|
21
|
-
import { useTranscribeAudio as
|
|
22
|
-
import { attachmentToDto as
|
|
23
|
-
import { createMessagePair as
|
|
24
|
-
import { hasActiveToolConfig as
|
|
25
|
-
import { getStarterConversationText as
|
|
26
|
-
import { getConversationPath as
|
|
27
|
-
import { useConversationHandlers as
|
|
28
|
-
import { applyChunkToMessages as
|
|
29
|
-
import { isAwaitingGenerationResume as
|
|
30
|
-
import { useConversationStream as
|
|
31
|
-
import { useChatSettingsFormConfig as
|
|
32
|
-
import { useToolsMenu as
|
|
33
|
-
export {
|
|
8
|
+
import { getFormSchemaToolSyncKey as y, getLastDeploymentId as b, getLastUserMessageToolConfiguration as x, getLatestToolConfiguration as S, getToolConfigurationFromFormSchema as C, isMessageStreaming as w, messageHasStages as T, normalizeResponseFormat as E } from "./conversation/message-utils.js";
|
|
9
|
+
import { getQuickAppConversationStarters as D } from "./conversation/quick-app-conversation-starters.js";
|
|
10
|
+
import { mapStages as O, toStage as k } from "./conversation/stage.js";
|
|
11
|
+
import { getStarterPopulateText as A, getStartersFromSchema as j } from "./conversation/starter-option.js";
|
|
12
|
+
import { deriveConversationRowActionState as M } from "./conversation/deriveConversationRowActionState/deriveConversationRowActionState.js";
|
|
13
|
+
import { useActiveConversationSync as N } from "./conversation/useActiveConversationSync/useActiveConversationSync.js";
|
|
14
|
+
import { useAsyncConfirmDialog as P } from "./conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.js";
|
|
15
|
+
import { useConversationLookupMaps as F } from "./conversation/useConversationLookupMaps/useConversationLookupMaps.js";
|
|
16
|
+
import { getConversationSource as I, useConversationPanelItems as L } from "./conversation/useConversationPanelItems/useConversationPanelItems.js";
|
|
17
|
+
import { useImportFilePicker as R } from "./conversation/useImportFilePicker/useImportFilePicker.js";
|
|
18
|
+
import { useMessageSelectionReply as z } from "./conversation/useMessageSelectionReply/useMessageSelectionReply.js";
|
|
19
|
+
import { useAttachmentUpload as B } from "./conversation/useAttachmentUpload/useAttachmentUpload.js";
|
|
20
|
+
import { AudioTranscriptionError as V, AudioTranscriptionErrorReason as H } from "./conversation/useTranscribeAudio/audio-transcription-error.js";
|
|
21
|
+
import { useTranscribeAudio as U } from "./conversation/useTranscribeAudio/useTranscribeAudio.js";
|
|
22
|
+
import { attachmentToDto as W, attachmentsToDtos as G } from "./conversation/useConversationHandlers/attachment-to-dto.js";
|
|
23
|
+
import { createMessagePair as K } from "./conversation/useConversationHandlers/message-factory.js";
|
|
24
|
+
import { hasActiveToolConfig as q, isAnswerIncomplete as J, isMessageChanged as Y, shouldRerunGenerationOnEdit as X } from "./conversation/useConversationHandlers/message-utils.js";
|
|
25
|
+
import { getStarterConversationText as Z, getStarterDisplayText as Q, getStarterSubmitText as $ } from "./conversation/useConversationHandlers/starter-option.js";
|
|
26
|
+
import { getConversationPath as ee } from "./conversation/useConversationStream/conversation-path.js";
|
|
27
|
+
import { useConversationHandlers as te } from "./conversation/useConversationHandlers/useConversationHandlers.js";
|
|
28
|
+
import { applyChunkToMessages as ne, mergeStages as re } from "./conversation/useConversationStream/apply-chunk.js";
|
|
29
|
+
import { isAwaitingGenerationResume as ie } from "./conversation/useConversationStream/generation-resume.js";
|
|
30
|
+
import { useConversationStream as ae } from "./conversation/useConversationStream/useConversationStream.js";
|
|
31
|
+
import { useChatSettingsFormConfig as oe } from "./useChatSettingsFormConfig/useChatSettingsFormConfig.js";
|
|
32
|
+
import { useToolsMenu as se } from "./useToolsMenu/useToolsMenu.js";
|
|
33
|
+
export { V as AudioTranscriptionError, H as AudioTranscriptionErrorReason, a as DEFAULT_GENERATION_CONFLICT_MESSAGE, o as DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE, s as DEFAULT_STREAM_IDLE_TIMEOUT_MS, c as GenerationConflictError, l as GenerationPersistenceError, u as StreamInterruptedError, d as StreamUpstreamError, ne as applyChunkToMessages, W as attachmentToDto, G as attachmentsToDtos, e as buildAnnouncementSignature, f as createChatStreamApi, v as createDeploymentChangedMessage, K as createMessagePair, M as deriveConversationRowActionState, m as formatAppVersion, ee as getConversationPath, I as getConversationSource, y as getFormSchemaToolSyncKey, b as getLastDeploymentId, x as getLastUserMessageToolConfiguration, S as getLatestToolConfiguration, g as getModelIdFromConversationId, D as getQuickAppConversationStarters, Z as getStarterConversationText, Q as getStarterDisplayText, A as getStarterPopulateText, $ as getStarterSubmitText, j as getStartersFromSchema, _ as getTimeOfDayGreeting, C as getToolConfigurationFromFormSchema, q as hasActiveToolConfig, t as hasAnnouncementContent, n as hasStructuredAnnouncement, J as isAnswerIncomplete, ie as isAwaitingGenerationResume, Y as isMessageChanged, w as isMessageStreaming, O as mapStages, re as mergeStages, T as messageHasStages, E as normalizeResponseFormat, r as sanitizeAnnouncementHtml, i as sanitizeAnnouncementMessageHtml, h as sanitizeFooterHtml, X as shouldRerunGenerationOnEdit, p as shouldWatchForDisplayNameUpdate, k as toStage, N as useActiveConversationSync, P as useAsyncConfirmDialog, B as useAttachmentUpload, oe as useChatSettingsFormConfig, te as useConversationHandlers, F as useConversationLookupMaps, L as useConversationPanelItems, ae as useConversationStream, R as useImportFilePicker, z as useMessageSelectionReply, se as useToolsMenu, U as useTranscribeAudio };
|
package/index.d.ts
CHANGED
|
@@ -1801,6 +1801,21 @@ export declare const getConversationSource: (item: Pick<ConversationListItemDto,
|
|
|
1801
1801
|
*/
|
|
1802
1802
|
export declare const getExternalServiceFallbackName: (serviceName: string) => string;
|
|
1803
1803
|
|
|
1804
|
+
/**
|
|
1805
|
+
* Returns the tool values the conversation's last message sets through its
|
|
1806
|
+
* `form_schema`, restricted to `toolIds`, plus a key identifying that exact
|
|
1807
|
+
* application. `undefined` when the last message is not an assistant message
|
|
1808
|
+
* or sets no known tool.
|
|
1809
|
+
*
|
|
1810
|
+
* Streamed chunks and reloads re-create an identical `form_schema`; comparing
|
|
1811
|
+
* keys rather than object identity applies an app's value once and leaves a
|
|
1812
|
+
* later user toggle alone until the app sends a different value.
|
|
1813
|
+
*/
|
|
1814
|
+
export declare const getFormSchemaToolSyncKey: (conversationId: string, messages: Message[], toolIds: readonly string[]) => {
|
|
1815
|
+
key: string;
|
|
1816
|
+
values: Record<string, boolean>;
|
|
1817
|
+
} | undefined;
|
|
1818
|
+
|
|
1804
1819
|
/**
|
|
1805
1820
|
* Returns the deployment the conversation was last running on: scanning
|
|
1806
1821
|
* backwards, the `new_deployment_id` of a `model_changed` status message or
|
|
@@ -1824,6 +1839,15 @@ export declare const getLastDeploymentId: (messages: Message[]) => string | null
|
|
|
1824
1839
|
*/
|
|
1825
1840
|
export declare const getLastUserMessageToolConfiguration: (messages: Message[]) => Record<string, unknown> | undefined;
|
|
1826
1841
|
|
|
1842
|
+
/**
|
|
1843
|
+
* Returns the tool configuration a (re-)loaded conversation should show: the
|
|
1844
|
+
* last user message's `configuration_value`, overlaid in order by the
|
|
1845
|
+
* `form_schema` values of the assistant messages after it. An app that turned
|
|
1846
|
+
* a toggle off in its final response must not see it re-armed on reload just
|
|
1847
|
+
* because the user message that started the run had it on.
|
|
1848
|
+
*/
|
|
1849
|
+
export declare const getLatestToolConfiguration: (messages: Message[]) => Record<string, unknown> | undefined;
|
|
1850
|
+
|
|
1827
1851
|
/**
|
|
1828
1852
|
* Extracts the deployment/model ID from a DIAL Core conversation ID.
|
|
1829
1853
|
*
|
|
@@ -1927,6 +1951,15 @@ export declare const getStarterSubmitText: (starter: StarterOption, description?
|
|
|
1927
1951
|
*/
|
|
1928
1952
|
export declare const getTimeOfDayGreeting: (hour: number, translations: GreetingTranslations, firstName?: string) => string;
|
|
1929
1953
|
|
|
1954
|
+
/**
|
|
1955
|
+
* Returns the boolean values an assistant message's `form_schema` sets, keyed
|
|
1956
|
+
* by property name, or `undefined` when no property resolves to a boolean.
|
|
1957
|
+
* Lets a DIAL app switch a tools-menu toggle (e.g. `deep_research`) per
|
|
1958
|
+
* message — on while a run is in progress, off once its result is delivered.
|
|
1959
|
+
* Not filtered by tool id: `restoreToolConfiguration` ignores unknown ids.
|
|
1960
|
+
*/
|
|
1961
|
+
export declare const getToolConfigurationFromFormSchema: (formSchema: DeploymentConfigurationSchema | undefined) => Record<string, boolean> | undefined;
|
|
1962
|
+
|
|
1930
1963
|
/** Name of the same-origin `BroadcastChannel` shared by an OAuth flow's opener and its callback popup. */
|
|
1931
1964
|
export declare const getToolsetOAuthChannelName: (flowId: string) => string;
|
|
1932
1965
|
|
package/index.js
CHANGED
|
@@ -52,98 +52,98 @@ import { formatAppVersion as Xt, sanitizeFooterHtml as Zt } from "./conversation
|
|
|
52
52
|
import { getModelIdFromConversationId as Qt } from "./conversation/get-model-id-from-conversation-id.js";
|
|
53
53
|
import { getTimeOfDayGreeting as $t } from "./conversation/greeting.js";
|
|
54
54
|
import { createDeploymentChangedMessage as en } from "./conversation/message-factory.js";
|
|
55
|
-
import {
|
|
56
|
-
import { toOverlayMessages as
|
|
57
|
-
import { getQuickAppConversationStarters as
|
|
58
|
-
import { mapStages as
|
|
59
|
-
import { getStarterPopulateText as
|
|
60
|
-
import { useOAuthCallbackCompletion as
|
|
61
|
-
import { buildPromptExportEnvelope as
|
|
62
|
-
import { PROMPT_CONTENT_MAX_LENGTH as
|
|
63
|
-
import { usePromptsState as
|
|
64
|
-
import { UnsupportedTriggerReason as
|
|
65
|
-
import { ScheduledTaskTriggerDescriptionKind as
|
|
66
|
-
import { apSchedulerDayToJsDay as
|
|
67
|
-
import { mapFormValuesToCreateBody as
|
|
68
|
-
import { prepareScheduledTaskCreateBody as
|
|
69
|
-
import { createScheduledTasksApiClient as
|
|
70
|
-
import { useScheduledTasks as
|
|
71
|
-
import { mergeRunsById as
|
|
72
|
-
import { validateSkillFileBatch as
|
|
73
|
-
import { skillFileToAttachment as
|
|
74
|
-
import { SkillEditorLoadState as
|
|
75
|
-
import { useSkillEditorSubmit as
|
|
76
|
-
import { useSkillFileActions as
|
|
77
|
-
import { SkillPreviewErrorKind as
|
|
78
|
-
import { useSkillsState as
|
|
79
|
-
import { SkillArchiveImportErrorKind as
|
|
80
|
-
import { RecipientsCountStatus as
|
|
81
|
-
import { deriveConversationRowActionState as
|
|
82
|
-
import { useActiveConversationSync as
|
|
83
|
-
import { useAsyncConfirmDialog as
|
|
84
|
-
import { useConversationLookupMaps as
|
|
85
|
-
import { getConversationSource as
|
|
86
|
-
import { useImportFilePicker as
|
|
87
|
-
import { useMessageSelectionReply as
|
|
88
|
-
import { sanitizeFileName as
|
|
89
|
-
import { useAttachmentUpload as
|
|
90
|
-
import { AudioTranscriptionError as
|
|
91
|
-
import { useTranscribeAudio as
|
|
92
|
-
import { DEFAULT_MAX_ARCHIVE_BYTES as
|
|
93
|
-
import { attachmentToDto as
|
|
94
|
-
import { createMessagePair as
|
|
95
|
-
import { hasActiveToolConfig as
|
|
96
|
-
import { getStarterConversationText as
|
|
97
|
-
import { getConversationPath as
|
|
98
|
-
import { useConversationHandlers as
|
|
99
|
-
import { useConversationImport as
|
|
100
|
-
import { useConversationScroll as
|
|
101
|
-
import { applyChunkToMessages as
|
|
102
|
-
import { isAwaitingGenerationResume as
|
|
103
|
-
import { useConversationStream as
|
|
104
|
-
import { useConversationSources as
|
|
105
|
-
import { DialFilesApiUploadMode as
|
|
106
|
-
import { FileManagerNotificationReason as
|
|
107
|
-
import { COLUMNS_WITHOUT_AUTHOR as
|
|
108
|
-
import { DialFileManagerActionProfile as
|
|
109
|
-
import { buildSharedItemVirtualPath as
|
|
110
|
-
import { getParentFolderPath as
|
|
111
|
-
import { prepareCopyItems as
|
|
112
|
-
import { buildFromCache as
|
|
113
|
-
import { createFilesApiClient as
|
|
114
|
-
import { createUploadFileWithProgress as
|
|
115
|
-
import { openAnnotationAttachment as
|
|
116
|
-
import { annotationToOoxmlCanvasContent as
|
|
117
|
-
import { getUrlFileName as
|
|
118
|
-
import { annotationToDisplayAttachment as
|
|
119
|
-
import { dialFileToAttachment as
|
|
120
|
-
import { DownloadDestinationType as
|
|
121
|
-
import { prepareDownloadDestination as
|
|
122
|
-
import { useDialFileListing as
|
|
123
|
-
import { useDialFileMetadata as
|
|
124
|
-
import { useDialFileMutations as
|
|
125
|
-
import { useDialFileSharing as
|
|
126
|
-
import { useDialFileUploadBatch as
|
|
127
|
-
import { useDialFileManager as
|
|
128
|
-
import { useDialFileManagerTabConfig as
|
|
129
|
-
import { useFileAttachmentPicker as
|
|
130
|
-
import { isCustomAppSchema as
|
|
131
|
-
import { getBrowserTimezone as
|
|
132
|
-
import { isValidAbsoluteUrl as
|
|
133
|
-
import { buildExternalServiceScopeId as
|
|
134
|
-
import { useChatSettingsFormConfig as
|
|
135
|
-
import { usePageFileDrag as
|
|
136
|
-
import { useViewportWidth as
|
|
137
|
-
import { usePanelMaxWidth as
|
|
138
|
-
import { useShareLink as
|
|
139
|
-
import { useToolsMenu as
|
|
140
|
-
import { USAGE_DATA_I18N_KEYS as
|
|
141
|
-
import { USAGE_MODEL_LIMITS_I18N_KEYS as
|
|
142
|
-
import { useUsageData as
|
|
143
|
-
import { McpAppResourceFetchError as
|
|
144
|
-
import { useMcpAppTools as
|
|
145
|
-
import { useMcpAppHostContext as
|
|
146
|
-
import { useMcpAppHostAdapter as
|
|
147
|
-
import { useOpenMcpAppCanvas as
|
|
148
|
-
import { useGridEditingScroll as
|
|
149
|
-
export { x as AttachmentValidationErrorReason, gr as AudioTranscriptionError, _r as AudioTranscriptionErrorReason, R as AuthenticationType, Wr as COLUMNS_WITHOUT_AUTHOR, Gr as COLUMNS_WITH_AUTHOR, Kr as CORE_PERMISSION_MAP, nt as CatalogPrimaryActionType, T as ConversationExportMode, E as ConversationTransferErrorCode, D as ConversationTransferWarningCode, qr as DATE_OPTIONS, Vt as DEFAULT_GENERATION_CONFLICT_MESSAGE, Ht as DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE, yr as DEFAULT_MAX_ARCHIVE_BYTES, Ut as DEFAULT_STREAM_IDLE_TIMEOUT_MS, Zr as DialFileManagerActionProfile, Qr as DialFileManagerVariant, Br as DialFilesApiUploadMode, ea as DownloadDestinationType, k as EXPORT_APP_NAME, O as ExportFileNameKind, Nt as FavoriteEntityType, Vr as FileManagerNotificationReason, Hr as FileNameValidationErrorReason, Ur as FileOperationKind, Wt as GenerationConflictError, Gt as GenerationPersistenceError, ja as McpAppResourceFetchError, Ve as McpResourceKind, ct as OAuthResourceKind, Jr as PATH_SEPARATOR_REGEXP, _n as PROMPT_CONTENT_MAX_LENGTH, vn as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, yn as PROMPT_DESCRIPTION_MAX_LENGTH, bn as PROMPT_NAME_MAX_LENGTH, De as PUBLIC_SKILL_BUCKET, xn as PromptFieldError, ae as PromptSource, Yr as RESERVED_MARKER_NAME, nr as RecipientsCountStatus, ue as SKILL_FILE_UPLOAD_MAX_BYTES, Oe as SKILL_LISTING_MAX_PAGES, ke as SKILL_LISTING_PAGE_SIZE, de as SKILL_MANIFEST_FILE, Ae as SKILL_MANIFEST_MAX_BYTES, fe as SKILL_TEXT_FIELD_MAX_LENGTHS, pe as SKILL_UPLOAD_MAX_FILES, me as SKILL_UPLOAD_MAX_TOTAL_BYTES, kn as ScheduledTaskTriggerDescriptionKind, Zn as SkillArchiveImportErrorKind, Qn as SkillArchiveImportStatus, $n as SkillArchiveSelectionRejectionReason, Wn as SkillEditorLoadState, Jn as SkillPreviewErrorKind, je as SkillSource, Kt as StreamInterruptedError, qt as StreamUpstreamError, lt as TOOLSET_REDIRECT_STATE_KEY, ut as ToolsetAuthStatus, dt as ToolsetAuthTypes, ft as ToolsetCredentialsLevel, Ot as ToolsetLoginOutcomeType, pt as ToolsetOAuthCallbackQuery, mt as ToolsetOAuthChannelControlType, ht as ToolsetOAuthFailureReason, gt as ToolsetOAuthInitiationResultType, _t as ToolsetOAuthResultType, Xr as UPLOAD_CONCURRENCY, Ta as USAGE_DATA_I18N_KEYS, Da as USAGE_MODEL_LIMITS_I18N_KEYS, On as UnsupportedTriggerReason, vt as WithLogin, Ji as annotationToDisplayAttachment, Ai as annotationToOoxmlCanvasContent, ji as annotationToPdfCanvasContent, jn as apSchedulerDayToJsDay, W as appendLocaleCode, Fr as applyChunkToMessages, Yi as attachmentDtoToDisplayAttachment, Xi as attachmentDtosToDisplayAttachments, xr as attachmentToDto, Sr as attachmentsToDtos, G as buildAdditionalLocaleOptions, It as buildAnnouncementSignature, He as buildApplicationMcpUrl, N as buildChatCompletionsUrl, Ue as buildConnectApi, P as buildDeploymentConnectApi, ga as buildExternalServiceScopeId, vi as buildFromCache, mn as buildPromptExportEnvelope, hn as buildPromptExportFileName, se as buildPromptOverview, Sn as buildPromptPath, F as buildResponsesUrl, ei as buildSharedItemVirtualPath, Ne as buildSkillContentTree, he as buildSkillFilesPayload, ge as buildSkillManifest, _e as buildSkillManifestForSubmit, ve as buildSkillManifestFromFrontmatter, Pe as buildSkillOverview, Ct as buildToolsetAuthorizeUrl, We as buildToolsetMcpUrl, er as classifySkillArchiveImportError, Mi as clearAttachmentCache, K as composeLocalePayload, Jt as createChatStreamApi, i as createCsrfMiddleware, en as createDeploymentChangedMessage, Di as createFilesApiClient, Ma as createMcpAppsApiClient, Cr as createMessagePair, j as createPublishApiClient, Rn as createScheduledTasksApiClient, a as createUnauthorizedMiddleware, Oi as createUploadFileWithProgress, V as decodeToolsetId, q as decomposeLocalizedFields, $r as deriveActionProfile, Ze as deriveAvailableTabIds, ir as deriveConversationRowActionState, Qe as deriveFavoriteItems, An as describeScheduledTaskTrigger, ti as dialCorePathToRelative, Zi as dialFileToAttachment, Qi as dialFilesToAttachments, $i as dialFolderPathToAttachment, m as downloadAttachment, yt as emitToolsetLoginSuccess, I as encodeDeploymentId, H as encodeToolsetId, yi as fetchByTab, bi as fetchForSearch, $e as filterCatalogItemsBySelector, et as filterHiddenOwnedItems, L as findDeploymentByIdOrReference, ni as findDialFileByPath, xi as findFirstSuccessfulCopyMoveItem, ri as findFolderByVirtualPath, Xt as formatAppVersion, X as formatCalendarDate, C as formatDateYM, w as formatDateYMD, ii as formatOperationFolderName, A as formatQuotedNameList, e as getApiErrorDetails, t as getApiErrorMessage, n as getApiErrorStatus, fa as getBrowserTimezone, jr as getConversationPath, cr as getConversationSource, _a as getExternalServiceFallbackName, tn as getLastDeploymentId, nn as getLastUserMessageToolConfiguration, Qt as getModelIdFromConversationId, pi as getParentFolderPath, Ke as getPublicCatalogEntityFolderPath, cn as getQuickAppConversationStarters, Cn as getRemainingCharacters, ye as getSkillFieldLengthViolations, Or as getStarterConversationText, kr as getStarterDisplayText, dn as getStarterPopulateText, Ar as getStarterSubmitText, fn as getStartersFromSchema, $t as getTimeOfDayGreeting, xt as getToolsetOAuthChannelName, wt as getToolsetRedirectUri, Gi as getUrlFileName, ai as getVirtualPathName, wr as hasActiveToolConfig, Lt as hasAnnouncementContent, Ni as hasAttachmentTextSource, oi as hasDialFileWritePermission, si as hasForbiddenNameSymbols, Rt as hasStructuredAnnouncement, o as includesIgnoreCase, Tt as initiateOAuthLogin, Tr as isAnswerIncomplete, Lr as isAwaitingGenerationResume, r as isConversationNotFoundError, ci as isCopyMoveDuplicateAllowed, ua as isCustomAppSchema, _ as isDialFileAcceptType, d as isDialFileId, h as isDownloadableAttachment, Ki as isExternalSourcePreviewable, Er as isMessageChanged, rn as isMessageStreaming, ce as isOrganisationPromptItem, qe as isPublicCatalogEntityId, U as isPublicToolsetId, da as isQuickAppSchema, li as isShareActionsAllowed, pa as isValidAbsoluteUrl, ma as isValidFeaturesData, be as isValidSkillRelativePath, Mn as jsDayToApSchedulerDay, Si as mapCorePermissions, Q as mapDeploymentDetailsDtoToEntityDetails, z as mapDeploymentLimitsDtoToCatalogLimits, B as mapDeploymentLimitsToInput, te as mapDeploymentToCatalogItem, ne as mapDeploymentToolsetCredentials, $ as mapEntityDetailsToCatalogDetails, Ci as mapFileMetadataToDialFile, Nn as mapFormValuesToCreateBody, Pn as mapFormValuesToUpdateBody, Oa as mapOverallCostLimitsToPeriodStatuses, le as mapPromptToCatalogItem, Je as mapPublishConversationResultDto, Ye as mapPublishHistoryEntryDto, Fn as mapScheduledTaskDtoToFormValues, wi as mapSearchItem, Fe as mapSkillToCatalogItem, ln as mapStages, ee as mapToolsetCredentials, re as mapToolsetToCatalogItem, Ea as mapUsageDataToDashboard, ka as mapUserUsageToModelLimits, Ti as mergeCreatedFolderIntoCache, Bn as mergeRunsById, Ir as mergeStages, an as messageHasStages, v as mimeTypesToAttachmentExtensionLabels, y as mimeTypesToDialFileAcceptTypes, b as mimeTypesToFileAccept, xe as nameFromPath, Et as navigateToolsetOAuthPopup, on as normalizeResponseFormat, Se as normalizeSkillName, ui as normalizeVirtualPath, ki as openAnnotationAttachment, Dt as openToolsetOAuthPopup, Z as padTwoDigits, va as parseExternalServiceUrl, ha as parseFeaturesData, di as parseNewFolderVirtualPath, oe as parsePromptResourceUrl, Ce as parseSkillManifest, at as parseSkillManifestDocument, Me as parseSkillResourceUrl, gi as prepareCopyItems, ta as prepareDownloadDestination, _i as prepareMoveRenameItems, In as prepareScheduledTaskCreateBody, Ln as prepareScheduledTaskUpdateBody, Ie as readSkillFileBytes, Le as readSkillFilePreviewBytes, Re as readSkillManifest, tt as reconcileFilterTopics, Pi as referenceAttachmentToPdfCanvasContent, rt as resolveCatalogPrimaryAction, Fi as resolveCodeCanvasContent, ie as resolveDeploymentFolder, mi as resolveDialFileApiPath, f as resolveDialFileBucketAndPath, qi as resolveExternalSourceContentType, Ii as resolveGroupedVisualizerCanvasContent, Li as resolveHtmlCanvasContent, Ri as resolveImageCanvasContent, zi as resolveJsonCanvasContent, J as resolveLocalizedText, Bi as resolveMarkdownCanvasContent, Ge as resolveMcpResourceKind, Vi as resolveOoxmlCanvasContent, fi as resolveOwnerCoords, Hi as resolvePdfCanvasContent, p as resolveRelativeDialFilePath, ze as resolveSkillFileDownloadPath, Be as resolveSkillManifestFileId, Ui as resolveTextCanvasContent, Wi as resolveVisualizerCanvasContent, s as safeDecodeURI, c as safeDecodeURIComponent, zt as sanitizeAnnouncementHtml, Bt as sanitizeAnnouncementMessageHtml, fr as sanitizeFileName, Zt as sanitizeFooterHtml, gn as serializePromptExport, Dr as shouldRerunGenerationOnEdit, Yt as shouldWatchForDisplayNameUpdate, we as skillFileBytesToBlob, Un as skillFileToAttachment, pr as splitFileNameExtension, Te as startsWithFrontmatterBlock, l as stripSurroundingSlashes, u as stripTrailingSlashes, bt as subscribeToolsetLoginSuccess, Y as toBaseLocale, sn as toOverlayMessages, Xe as toPublishEntityType, M as toPublishRuleDto, un as toStage, mr as trimFileNameToByteLimit, Ee as unpackSkillArchive, Ei as updateEntry, ar as useActiveConversationSync, jt as useApplicationCredentials, or as useAsyncConfirmDialog, g as useAttachmentAction, hr as useAttachmentUpload, S as useAttachmentValidation, it as useCatalogEditNavigation, st as useCatalogItemDetails, At as useCatalogToolsetCredentials, ya as useChatSettingsFormConfig, br as useConversationExport, Mr as useConversationHandlers, Nr as useConversationImport, sr as useConversationLookupMaps, lr as useConversationPanelItems, Pr as useConversationScroll, zr as useConversationSources, Rr as useConversationStream, na as useDialFileListing, sa as useDialFileManager, ca as useDialFileManagerTabConfig, ra as useDialFileMetadata, ia as useDialFileMutations, aa as useDialFileSharing, oa as useDialFileUploadBatch, Pt as useFavoriteEntitiesState, la as useFileAttachmentPicker, La as useGridEditingScroll, ur as useImportFilePicker, Fa as useMcpAppHostAdapter, Pa as useMcpAppHostContext, Na as useMcpAppTools, dr as useMessageSelectionReply, pn as useOAuthCallbackCompletion, Ia as useOpenMcpAppCanvas, ba as usePageFileDrag, Sa as usePanelMaxWidth, Dn as usePromptsState, Ft as usePublishFolders, Vn as useScheduledTaskRuns, zn as useScheduledTasks, Ca as useShareLink, rr as useShareRecipientsCount, tr as useSkillArchiveImport, Mt as useSkillDetailsPanelData, Gn as useSkillEditorLoad, Kn as useSkillEditorSubmit, qn as useSkillFileActions, Yn as useSkillFilePreview, ot as useSkillItemDetails, Xn as useSkillsState, wa as useToolsMenu, kt as useToolsetLogin, vr as useTranscribeAudio, Aa as useUsageData, xa as useViewportWidth, wn as validatePromptContent, Tn as validatePromptDescription, En as validatePromptName, Hn as validateSkillFileBatch, hi as virtualPathToApiPath, St as waitForToolsetOAuthResult };
|
|
55
|
+
import { getFormSchemaToolSyncKey as tn, getLastDeploymentId as nn, getLastUserMessageToolConfiguration as rn, getLatestToolConfiguration as an, getToolConfigurationFromFormSchema as on, isMessageStreaming as sn, messageHasStages as cn, normalizeResponseFormat as ln } from "./conversation/message-utils.js";
|
|
56
|
+
import { toOverlayMessages as un } from "./conversation/overlay-messages.js";
|
|
57
|
+
import { getQuickAppConversationStarters as dn } from "./conversation/quick-app-conversation-starters.js";
|
|
58
|
+
import { mapStages as fn, toStage as pn } from "./conversation/stage.js";
|
|
59
|
+
import { getStarterPopulateText as mn, getStartersFromSchema as hn } from "./conversation/starter-option.js";
|
|
60
|
+
import { useOAuthCallbackCompletion as gn } from "./oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js";
|
|
61
|
+
import { buildPromptExportEnvelope as _n, buildPromptExportFileName as vn, serializePromptExport as yn } from "./prompt/export-prompt.js";
|
|
62
|
+
import { PROMPT_CONTENT_MAX_LENGTH as bn, PROMPT_COUNTER_ANNOUNCE_THRESHOLD as xn, PROMPT_DESCRIPTION_MAX_LENGTH as Sn, PROMPT_NAME_MAX_LENGTH as Cn, PromptFieldError as wn, buildPromptPath as Tn, getRemainingCharacters as En, validatePromptContent as Dn, validatePromptDescription as On, validatePromptName as kn } from "./prompt/prompt.js";
|
|
63
|
+
import { usePromptsState as An } from "./prompt/usePromptsState/usePromptsState.js";
|
|
64
|
+
import { UnsupportedTriggerReason as jn } from "./scheduled-task/scheduled-task-mapping.js";
|
|
65
|
+
import { ScheduledTaskTriggerDescriptionKind as Mn, describeScheduledTaskTrigger as Nn } from "./scheduled-task/scheduled-task-description.js";
|
|
66
|
+
import { apSchedulerDayToJsDay as Pn, jsDayToApSchedulerDay as Fn } from "./shared/cron-weekday.js";
|
|
67
|
+
import { mapFormValuesToCreateBody as In, mapFormValuesToUpdateBody as Ln, mapScheduledTaskDtoToFormValues as Rn } from "./scheduled-task/scheduled-task-trigger.js";
|
|
68
|
+
import { prepareScheduledTaskCreateBody as zn, prepareScheduledTaskUpdateBody as Bn } from "./scheduled-task/scheduled-task-preparation.js";
|
|
69
|
+
import { createScheduledTasksApiClient as Vn } from "./scheduled-task/scheduled-tasks-api-client.js";
|
|
70
|
+
import { useScheduledTasks as Hn } from "./scheduled-task/use-scheduled-tasks.js";
|
|
71
|
+
import { mergeRunsById as Un, useScheduledTaskRuns as Wn } from "./scheduled-task/use-scheduled-task-runs.js";
|
|
72
|
+
import { validateSkillFileBatch as Gn } from "./skill/skill-file-batch-validation.js";
|
|
73
|
+
import { skillFileToAttachment as Kn } from "./skill/skill-file-preview.js";
|
|
74
|
+
import { SkillEditorLoadState as qn, useSkillEditorLoad as Jn } from "./skill/useSkillEditorLoad.js";
|
|
75
|
+
import { useSkillEditorSubmit as Yn } from "./skill/useSkillEditorSubmit.js";
|
|
76
|
+
import { useSkillFileActions as Xn } from "./skill/useSkillFileActions.js";
|
|
77
|
+
import { SkillPreviewErrorKind as Zn, useSkillFilePreview as Qn } from "./skill/useSkillFilePreview.js";
|
|
78
|
+
import { useSkillsState as $n } from "./skill/useSkillsState/useSkillsState.js";
|
|
79
|
+
import { SkillArchiveImportErrorKind as er, SkillArchiveImportStatus as tr, SkillArchiveSelectionRejectionReason as nr, classifySkillArchiveImportError as rr, useSkillArchiveImport as ir } from "./skill/useSkillArchiveImport/useSkillArchiveImport.js";
|
|
80
|
+
import { RecipientsCountStatus as ar, useShareRecipientsCount as or } from "./useShareRecipientsCount/useShareRecipientsCount.js";
|
|
81
|
+
import { deriveConversationRowActionState as sr } from "./conversation/deriveConversationRowActionState/deriveConversationRowActionState.js";
|
|
82
|
+
import { useActiveConversationSync as cr } from "./conversation/useActiveConversationSync/useActiveConversationSync.js";
|
|
83
|
+
import { useAsyncConfirmDialog as lr } from "./conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.js";
|
|
84
|
+
import { useConversationLookupMaps as ur } from "./conversation/useConversationLookupMaps/useConversationLookupMaps.js";
|
|
85
|
+
import { getConversationSource as dr, useConversationPanelItems as fr } from "./conversation/useConversationPanelItems/useConversationPanelItems.js";
|
|
86
|
+
import { useImportFilePicker as pr } from "./conversation/useImportFilePicker/useImportFilePicker.js";
|
|
87
|
+
import { useMessageSelectionReply as mr } from "./conversation/useMessageSelectionReply/useMessageSelectionReply.js";
|
|
88
|
+
import { sanitizeFileName as hr, splitFileNameExtension as gr, trimFileNameToByteLimit as _r } from "./files/file-name.js";
|
|
89
|
+
import { useAttachmentUpload as vr } from "./conversation/useAttachmentUpload/useAttachmentUpload.js";
|
|
90
|
+
import { AudioTranscriptionError as yr, AudioTranscriptionErrorReason as br } from "./conversation/useTranscribeAudio/audio-transcription-error.js";
|
|
91
|
+
import { useTranscribeAudio as xr } from "./conversation/useTranscribeAudio/useTranscribeAudio.js";
|
|
92
|
+
import { DEFAULT_MAX_ARCHIVE_BYTES as Sr, useConversationExport as Cr } from "./conversation/useConversationExport/useConversationExport.js";
|
|
93
|
+
import { attachmentToDto as wr, attachmentsToDtos as Tr } from "./conversation/useConversationHandlers/attachment-to-dto.js";
|
|
94
|
+
import { createMessagePair as Er } from "./conversation/useConversationHandlers/message-factory.js";
|
|
95
|
+
import { hasActiveToolConfig as Dr, isAnswerIncomplete as Or, isMessageChanged as kr, shouldRerunGenerationOnEdit as Ar } from "./conversation/useConversationHandlers/message-utils.js";
|
|
96
|
+
import { getStarterConversationText as jr, getStarterDisplayText as Mr, getStarterSubmitText as Nr } from "./conversation/useConversationHandlers/starter-option.js";
|
|
97
|
+
import { getConversationPath as Pr } from "./conversation/useConversationStream/conversation-path.js";
|
|
98
|
+
import { useConversationHandlers as Fr } from "./conversation/useConversationHandlers/useConversationHandlers.js";
|
|
99
|
+
import { useConversationImport as Ir } from "./conversation/useConversationImport/useConversationImport.js";
|
|
100
|
+
import { useConversationScroll as Lr } from "./conversation/useConversationScroll/useConversationScroll.js";
|
|
101
|
+
import { applyChunkToMessages as Rr, mergeStages as zr } from "./conversation/useConversationStream/apply-chunk.js";
|
|
102
|
+
import { isAwaitingGenerationResume as Br } from "./conversation/useConversationStream/generation-resume.js";
|
|
103
|
+
import { useConversationStream as Vr } from "./conversation/useConversationStream/useConversationStream.js";
|
|
104
|
+
import { useConversationSources as Hr } from "./conversation-sources/useConversationSources/useConversationSources.js";
|
|
105
|
+
import { DialFilesApiUploadMode as Ur } from "./files/dial-files-api.js";
|
|
106
|
+
import { FileManagerNotificationReason as Wr, FileNameValidationErrorReason as Gr, FileOperationKind as Kr } from "./files/dial-file-manager.types.js";
|
|
107
|
+
import { COLUMNS_WITHOUT_AUTHOR as qr, COLUMNS_WITH_AUTHOR as Jr, CORE_PERMISSION_MAP as Yr, DATE_OPTIONS as Xr, PATH_SEPARATOR_REGEXP as Zr, RESERVED_MARKER_NAME as Qr, UPLOAD_CONCURRENCY as $r } from "./files/dial-file-manager.model.js";
|
|
108
|
+
import { DialFileManagerActionProfile as ei, DialFileManagerVariant as ti, deriveActionProfile as ni } from "./files/file-manager-variant.js";
|
|
109
|
+
import { buildSharedItemVirtualPath as ri, dialCorePathToRelative as ii, findDialFileByPath as ai, findFolderByVirtualPath as oi, formatOperationFolderName as si, getVirtualPathName as ci, hasDialFileWritePermission as li, hasForbiddenNameSymbols as ui, isCopyMoveDuplicateAllowed as di, isShareActionsAllowed as fi, normalizeVirtualPath as pi, parseNewFolderVirtualPath as mi, resolveOwnerCoords as hi } from "./files/dial-file-manager-path.util.js";
|
|
110
|
+
import { getParentFolderPath as gi, resolveDialFileApiPath as _i, virtualPathToApiPath as vi } from "./files/resolve-dial-file-api-path.js";
|
|
111
|
+
import { prepareCopyItems as yi, prepareMoveRenameItems as bi } from "./files/dial-file-manager-copy-move.util.js";
|
|
112
|
+
import { buildFromCache as xi, fetchByTab as Si, fetchForSearch as Ci, findFirstSuccessfulCopyMoveItem as wi, mapCorePermissions as Ti, mapFileMetadataToDialFile as Ei, mapSearchItem as Di, mergeCreatedFolderIntoCache as Oi, updateEntry as ki } from "./files/dial-file-manager-mapping.util.js";
|
|
113
|
+
import { createFilesApiClient as Ai } from "./files/create-files-api.js";
|
|
114
|
+
import { createUploadFileWithProgress as ji } from "./files/create-upload-file-with-progress.js";
|
|
115
|
+
import { openAnnotationAttachment as Mi } from "./files/annotation.js";
|
|
116
|
+
import { annotationToOoxmlCanvasContent as Ni, annotationToPdfCanvasContent as Pi, clearAttachmentCache as Fi, hasAttachmentTextSource as Ii, referenceAttachmentToPdfCanvasContent as Li, resolveCodeCanvasContent as Ri, resolveGroupedVisualizerCanvasContent as zi, resolveHtmlCanvasContent as Bi, resolveImageCanvasContent as Vi, resolveJsonCanvasContent as Hi, resolveMarkdownCanvasContent as Ui, resolveOoxmlCanvasContent as Wi, resolvePdfCanvasContent as Gi, resolveTextCanvasContent as Ki, resolveVisualizerCanvasContent as qi } from "./files/attachment-canvas.js";
|
|
117
|
+
import { getUrlFileName as Ji, isExternalSourcePreviewable as Yi, resolveExternalSourceContentType as Xi } from "./files/source-content.js";
|
|
118
|
+
import { annotationToDisplayAttachment as Zi, attachmentDtoToDisplayAttachment as Qi, attachmentDtosToDisplayAttachments as $i } from "./files/attachment-dto-to-display.js";
|
|
119
|
+
import { dialFileToAttachment as ea, dialFilesToAttachments as ta, dialFolderPathToAttachment as na } from "./files/dial-file-to-attachment.js";
|
|
120
|
+
import { DownloadDestinationType as ra } from "./files/download-destination.js";
|
|
121
|
+
import { prepareDownloadDestination as ia } from "./files/prepare-download-destination.js";
|
|
122
|
+
import { useDialFileListing as aa } from "./files/useDialFileListing/useDialFileListing.js";
|
|
123
|
+
import { useDialFileMetadata as oa } from "./files/useDialFileMetadata/useDialFileMetadata.js";
|
|
124
|
+
import { useDialFileMutations as sa } from "./files/useDialFileMutations/useDialFileMutations.js";
|
|
125
|
+
import { useDialFileSharing as ca } from "./files/useDialFileSharing/useDialFileSharing.js";
|
|
126
|
+
import { useDialFileUploadBatch as la } from "./files/useDialFileUploadBatch/useDialFileUploadBatch.js";
|
|
127
|
+
import { useDialFileManager as ua } from "./files/useDialFileManager/useDialFileManager.js";
|
|
128
|
+
import { useDialFileManagerTabConfig as da } from "./files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js";
|
|
129
|
+
import { useFileAttachmentPicker as fa } from "./files/useFileAttachmentPicker/useFileAttachmentPicker.js";
|
|
130
|
+
import { isCustomAppSchema as pa, isQuickAppSchema as ma } from "./shared/application-schema.js";
|
|
131
|
+
import { getBrowserTimezone as ha } from "./shared/browser-timezone.js";
|
|
132
|
+
import { isValidAbsoluteUrl as ga, isValidFeaturesData as _a, parseFeaturesData as va } from "./shared/custom-apps.js";
|
|
133
|
+
import { buildExternalServiceScopeId as ya, getExternalServiceFallbackName as ba, parseExternalServiceUrl as xa } from "./shared/external-services.js";
|
|
134
|
+
import { useChatSettingsFormConfig as Sa } from "./useChatSettingsFormConfig/useChatSettingsFormConfig.js";
|
|
135
|
+
import { usePageFileDrag as Ca } from "./usePageFileDrag/usePageFileDrag.js";
|
|
136
|
+
import { useViewportWidth as wa } from "./useViewportWidth/useViewportWidth.js";
|
|
137
|
+
import { usePanelMaxWidth as Ta } from "./usePanelMaxWidth/usePanelMaxWidth.js";
|
|
138
|
+
import { useShareLink as Ea } from "./useShareLink/useShareLink.js";
|
|
139
|
+
import { useToolsMenu as Da } from "./useToolsMenu/useToolsMenu.js";
|
|
140
|
+
import { USAGE_DATA_I18N_KEYS as Oa, mapUsageDataToDashboard as ka } from "./usage/map-usage-data-to-dashboard.js";
|
|
141
|
+
import { USAGE_MODEL_LIMITS_I18N_KEYS as Aa, mapOverallCostLimitsToPeriodStatuses as ja, mapUserUsageToModelLimits as Ma } from "./usage/map-user-usage-to-model-limits.js";
|
|
142
|
+
import { useUsageData as Na } from "./usage/useUsageData/useUsageData.js";
|
|
143
|
+
import { McpAppResourceFetchError as Pa, createMcpAppsApiClient as Fa } from "./mcp-apps/mcp-apps-api-client.js";
|
|
144
|
+
import { useMcpAppTools as Ia } from "./mcp-apps/useMcpAppTools/useMcpAppTools.js";
|
|
145
|
+
import { useMcpAppHostContext as La } from "./mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js";
|
|
146
|
+
import { useMcpAppHostAdapter as Ra } from "./mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.js";
|
|
147
|
+
import { useOpenMcpAppCanvas as za } from "./mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.js";
|
|
148
|
+
import { useGridEditingScroll as Ba } from "@epam/ai-dial-chat-shared";
|
|
149
|
+
export { x as AttachmentValidationErrorReason, yr as AudioTranscriptionError, br as AudioTranscriptionErrorReason, R as AuthenticationType, qr as COLUMNS_WITHOUT_AUTHOR, Jr as COLUMNS_WITH_AUTHOR, Yr as CORE_PERMISSION_MAP, nt as CatalogPrimaryActionType, T as ConversationExportMode, E as ConversationTransferErrorCode, D as ConversationTransferWarningCode, Xr as DATE_OPTIONS, Vt as DEFAULT_GENERATION_CONFLICT_MESSAGE, Ht as DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE, Sr as DEFAULT_MAX_ARCHIVE_BYTES, Ut as DEFAULT_STREAM_IDLE_TIMEOUT_MS, ei as DialFileManagerActionProfile, ti as DialFileManagerVariant, Ur as DialFilesApiUploadMode, ra as DownloadDestinationType, k as EXPORT_APP_NAME, O as ExportFileNameKind, Nt as FavoriteEntityType, Wr as FileManagerNotificationReason, Gr as FileNameValidationErrorReason, Kr as FileOperationKind, Wt as GenerationConflictError, Gt as GenerationPersistenceError, Pa as McpAppResourceFetchError, Ve as McpResourceKind, ct as OAuthResourceKind, Zr as PATH_SEPARATOR_REGEXP, bn as PROMPT_CONTENT_MAX_LENGTH, xn as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, Sn as PROMPT_DESCRIPTION_MAX_LENGTH, Cn as PROMPT_NAME_MAX_LENGTH, De as PUBLIC_SKILL_BUCKET, wn as PromptFieldError, ae as PromptSource, Qr as RESERVED_MARKER_NAME, ar as RecipientsCountStatus, ue as SKILL_FILE_UPLOAD_MAX_BYTES, Oe as SKILL_LISTING_MAX_PAGES, ke as SKILL_LISTING_PAGE_SIZE, de as SKILL_MANIFEST_FILE, Ae as SKILL_MANIFEST_MAX_BYTES, fe as SKILL_TEXT_FIELD_MAX_LENGTHS, pe as SKILL_UPLOAD_MAX_FILES, me as SKILL_UPLOAD_MAX_TOTAL_BYTES, Mn as ScheduledTaskTriggerDescriptionKind, er as SkillArchiveImportErrorKind, tr as SkillArchiveImportStatus, nr as SkillArchiveSelectionRejectionReason, qn as SkillEditorLoadState, Zn as SkillPreviewErrorKind, je as SkillSource, Kt as StreamInterruptedError, qt as StreamUpstreamError, lt as TOOLSET_REDIRECT_STATE_KEY, ut as ToolsetAuthStatus, dt as ToolsetAuthTypes, ft as ToolsetCredentialsLevel, Ot as ToolsetLoginOutcomeType, pt as ToolsetOAuthCallbackQuery, mt as ToolsetOAuthChannelControlType, ht as ToolsetOAuthFailureReason, gt as ToolsetOAuthInitiationResultType, _t as ToolsetOAuthResultType, $r as UPLOAD_CONCURRENCY, Oa as USAGE_DATA_I18N_KEYS, Aa as USAGE_MODEL_LIMITS_I18N_KEYS, jn as UnsupportedTriggerReason, vt as WithLogin, Zi as annotationToDisplayAttachment, Ni as annotationToOoxmlCanvasContent, Pi as annotationToPdfCanvasContent, Pn as apSchedulerDayToJsDay, W as appendLocaleCode, Rr as applyChunkToMessages, Qi as attachmentDtoToDisplayAttachment, $i as attachmentDtosToDisplayAttachments, wr as attachmentToDto, Tr as attachmentsToDtos, G as buildAdditionalLocaleOptions, It as buildAnnouncementSignature, He as buildApplicationMcpUrl, N as buildChatCompletionsUrl, Ue as buildConnectApi, P as buildDeploymentConnectApi, ya as buildExternalServiceScopeId, xi as buildFromCache, _n as buildPromptExportEnvelope, vn as buildPromptExportFileName, se as buildPromptOverview, Tn as buildPromptPath, F as buildResponsesUrl, ri as buildSharedItemVirtualPath, Ne as buildSkillContentTree, he as buildSkillFilesPayload, ge as buildSkillManifest, _e as buildSkillManifestForSubmit, ve as buildSkillManifestFromFrontmatter, Pe as buildSkillOverview, Ct as buildToolsetAuthorizeUrl, We as buildToolsetMcpUrl, rr as classifySkillArchiveImportError, Fi as clearAttachmentCache, K as composeLocalePayload, Jt as createChatStreamApi, i as createCsrfMiddleware, en as createDeploymentChangedMessage, Ai as createFilesApiClient, Fa as createMcpAppsApiClient, Er as createMessagePair, j as createPublishApiClient, Vn as createScheduledTasksApiClient, a as createUnauthorizedMiddleware, ji as createUploadFileWithProgress, V as decodeToolsetId, q as decomposeLocalizedFields, ni as deriveActionProfile, Ze as deriveAvailableTabIds, sr as deriveConversationRowActionState, Qe as deriveFavoriteItems, Nn as describeScheduledTaskTrigger, ii as dialCorePathToRelative, ea as dialFileToAttachment, ta as dialFilesToAttachments, na as dialFolderPathToAttachment, m as downloadAttachment, yt as emitToolsetLoginSuccess, I as encodeDeploymentId, H as encodeToolsetId, Si as fetchByTab, Ci as fetchForSearch, $e as filterCatalogItemsBySelector, et as filterHiddenOwnedItems, L as findDeploymentByIdOrReference, ai as findDialFileByPath, wi as findFirstSuccessfulCopyMoveItem, oi as findFolderByVirtualPath, Xt as formatAppVersion, X as formatCalendarDate, C as formatDateYM, w as formatDateYMD, si as formatOperationFolderName, A as formatQuotedNameList, e as getApiErrorDetails, t as getApiErrorMessage, n as getApiErrorStatus, ha as getBrowserTimezone, Pr as getConversationPath, dr as getConversationSource, ba as getExternalServiceFallbackName, tn as getFormSchemaToolSyncKey, nn as getLastDeploymentId, rn as getLastUserMessageToolConfiguration, an as getLatestToolConfiguration, Qt as getModelIdFromConversationId, gi as getParentFolderPath, Ke as getPublicCatalogEntityFolderPath, dn as getQuickAppConversationStarters, En as getRemainingCharacters, ye as getSkillFieldLengthViolations, jr as getStarterConversationText, Mr as getStarterDisplayText, mn as getStarterPopulateText, Nr as getStarterSubmitText, hn as getStartersFromSchema, $t as getTimeOfDayGreeting, on as getToolConfigurationFromFormSchema, xt as getToolsetOAuthChannelName, wt as getToolsetRedirectUri, Ji as getUrlFileName, ci as getVirtualPathName, Dr as hasActiveToolConfig, Lt as hasAnnouncementContent, Ii as hasAttachmentTextSource, li as hasDialFileWritePermission, ui as hasForbiddenNameSymbols, Rt as hasStructuredAnnouncement, o as includesIgnoreCase, Tt as initiateOAuthLogin, Or as isAnswerIncomplete, Br as isAwaitingGenerationResume, r as isConversationNotFoundError, di as isCopyMoveDuplicateAllowed, pa as isCustomAppSchema, _ as isDialFileAcceptType, d as isDialFileId, h as isDownloadableAttachment, Yi as isExternalSourcePreviewable, kr as isMessageChanged, sn as isMessageStreaming, ce as isOrganisationPromptItem, qe as isPublicCatalogEntityId, U as isPublicToolsetId, ma as isQuickAppSchema, fi as isShareActionsAllowed, ga as isValidAbsoluteUrl, _a as isValidFeaturesData, be as isValidSkillRelativePath, Fn as jsDayToApSchedulerDay, Ti as mapCorePermissions, Q as mapDeploymentDetailsDtoToEntityDetails, z as mapDeploymentLimitsDtoToCatalogLimits, B as mapDeploymentLimitsToInput, te as mapDeploymentToCatalogItem, ne as mapDeploymentToolsetCredentials, $ as mapEntityDetailsToCatalogDetails, Ei as mapFileMetadataToDialFile, In as mapFormValuesToCreateBody, Ln as mapFormValuesToUpdateBody, ja as mapOverallCostLimitsToPeriodStatuses, le as mapPromptToCatalogItem, Je as mapPublishConversationResultDto, Ye as mapPublishHistoryEntryDto, Rn as mapScheduledTaskDtoToFormValues, Di as mapSearchItem, Fe as mapSkillToCatalogItem, fn as mapStages, ee as mapToolsetCredentials, re as mapToolsetToCatalogItem, ka as mapUsageDataToDashboard, Ma as mapUserUsageToModelLimits, Oi as mergeCreatedFolderIntoCache, Un as mergeRunsById, zr as mergeStages, cn as messageHasStages, v as mimeTypesToAttachmentExtensionLabels, y as mimeTypesToDialFileAcceptTypes, b as mimeTypesToFileAccept, xe as nameFromPath, Et as navigateToolsetOAuthPopup, ln as normalizeResponseFormat, Se as normalizeSkillName, pi as normalizeVirtualPath, Mi as openAnnotationAttachment, Dt as openToolsetOAuthPopup, Z as padTwoDigits, xa as parseExternalServiceUrl, va as parseFeaturesData, mi as parseNewFolderVirtualPath, oe as parsePromptResourceUrl, Ce as parseSkillManifest, at as parseSkillManifestDocument, Me as parseSkillResourceUrl, yi as prepareCopyItems, ia as prepareDownloadDestination, bi as prepareMoveRenameItems, zn as prepareScheduledTaskCreateBody, Bn as prepareScheduledTaskUpdateBody, Ie as readSkillFileBytes, Le as readSkillFilePreviewBytes, Re as readSkillManifest, tt as reconcileFilterTopics, Li as referenceAttachmentToPdfCanvasContent, rt as resolveCatalogPrimaryAction, Ri as resolveCodeCanvasContent, ie as resolveDeploymentFolder, _i as resolveDialFileApiPath, f as resolveDialFileBucketAndPath, Xi as resolveExternalSourceContentType, zi as resolveGroupedVisualizerCanvasContent, Bi as resolveHtmlCanvasContent, Vi as resolveImageCanvasContent, Hi as resolveJsonCanvasContent, J as resolveLocalizedText, Ui as resolveMarkdownCanvasContent, Ge as resolveMcpResourceKind, Wi as resolveOoxmlCanvasContent, hi as resolveOwnerCoords, Gi as resolvePdfCanvasContent, p as resolveRelativeDialFilePath, ze as resolveSkillFileDownloadPath, Be as resolveSkillManifestFileId, Ki as resolveTextCanvasContent, qi as resolveVisualizerCanvasContent, s as safeDecodeURI, c as safeDecodeURIComponent, zt as sanitizeAnnouncementHtml, Bt as sanitizeAnnouncementMessageHtml, hr as sanitizeFileName, Zt as sanitizeFooterHtml, yn as serializePromptExport, Ar as shouldRerunGenerationOnEdit, Yt as shouldWatchForDisplayNameUpdate, we as skillFileBytesToBlob, Kn as skillFileToAttachment, gr as splitFileNameExtension, Te as startsWithFrontmatterBlock, l as stripSurroundingSlashes, u as stripTrailingSlashes, bt as subscribeToolsetLoginSuccess, Y as toBaseLocale, un as toOverlayMessages, Xe as toPublishEntityType, M as toPublishRuleDto, pn as toStage, _r as trimFileNameToByteLimit, Ee as unpackSkillArchive, ki as updateEntry, cr as useActiveConversationSync, jt as useApplicationCredentials, lr as useAsyncConfirmDialog, g as useAttachmentAction, vr as useAttachmentUpload, S as useAttachmentValidation, it as useCatalogEditNavigation, st as useCatalogItemDetails, At as useCatalogToolsetCredentials, Sa as useChatSettingsFormConfig, Cr as useConversationExport, Fr as useConversationHandlers, Ir as useConversationImport, ur as useConversationLookupMaps, fr as useConversationPanelItems, Lr as useConversationScroll, Hr as useConversationSources, Vr as useConversationStream, aa as useDialFileListing, ua as useDialFileManager, da as useDialFileManagerTabConfig, oa as useDialFileMetadata, sa as useDialFileMutations, ca as useDialFileSharing, la as useDialFileUploadBatch, Pt as useFavoriteEntitiesState, fa as useFileAttachmentPicker, Ba as useGridEditingScroll, pr as useImportFilePicker, Ra as useMcpAppHostAdapter, La as useMcpAppHostContext, Ia as useMcpAppTools, mr as useMessageSelectionReply, gn as useOAuthCallbackCompletion, za as useOpenMcpAppCanvas, Ca as usePageFileDrag, Ta as usePanelMaxWidth, An as usePromptsState, Ft as usePublishFolders, Wn as useScheduledTaskRuns, Hn as useScheduledTasks, Ea as useShareLink, or as useShareRecipientsCount, ir as useSkillArchiveImport, Mt as useSkillDetailsPanelData, Jn as useSkillEditorLoad, Yn as useSkillEditorSubmit, Xn as useSkillFileActions, Qn as useSkillFilePreview, ot as useSkillItemDetails, $n as useSkillsState, Da as useToolsMenu, kt as useToolsetLogin, xr as useTranscribeAudio, Na as useUsageData, wa as useViewportWidth, Dn as validatePromptContent, On as validatePromptDescription, kn as validatePromptName, Gn as validateSkillFileBatch, vi as virtualPathToApiPath, St as waitForToolsetOAuthResult };
|
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.174",
|
|
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.174",
|
|
115
115
|
"dompurify": "3.4.15",
|
|
116
116
|
"fflate": "^0.8.3",
|
|
117
117
|
"lru-cache": "^10.4.3",
|
|
@@ -120,22 +120,22 @@
|
|
|
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-builder-form": "1.2.0-dev.
|
|
126
|
-
"@epam/ai-dial-catalog": "1.2.0-dev.
|
|
127
|
-
"@epam/ai-dial-chat-overlay": "1.2.0-dev.
|
|
128
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
129
|
-
"@epam/ai-dial-mcp-apps": "1.2.0-dev.
|
|
130
|
-
"@epam/ai-dial-publish-panel": "1.2.0-dev.
|
|
131
|
-
"@epam/ai-dial-quotations": "1.2.0-dev.
|
|
123
|
+
"@epam/ai-dial-attachment-canvas": "1.2.0-dev.174",
|
|
124
|
+
"@epam/ai-dial-attachment-input": "1.2.0-dev.174",
|
|
125
|
+
"@epam/ai-dial-builder-form": "1.2.0-dev.174",
|
|
126
|
+
"@epam/ai-dial-catalog": "1.2.0-dev.174",
|
|
127
|
+
"@epam/ai-dial-chat-overlay": "1.2.0-dev.174",
|
|
128
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.174",
|
|
129
|
+
"@epam/ai-dial-mcp-apps": "1.2.0-dev.174",
|
|
130
|
+
"@epam/ai-dial-publish-panel": "1.2.0-dev.174",
|
|
131
|
+
"@epam/ai-dial-quotations": "1.2.0-dev.174",
|
|
132
132
|
"@epam/ai-dial-react-file-manager": "^0.3.0-dev.13",
|
|
133
|
-
"@epam/ai-dial-scheduled-tasks": "1.2.0-dev.
|
|
134
|
-
"@epam/ai-dial-share": "1.2.0-dev.
|
|
135
|
-
"@epam/ai-dial-skill-editor": "1.2.0-dev.
|
|
136
|
-
"@epam/ai-dial-source-panel": "1.2.0-dev.
|
|
133
|
+
"@epam/ai-dial-scheduled-tasks": "1.2.0-dev.174",
|
|
134
|
+
"@epam/ai-dial-share": "1.2.0-dev.174",
|
|
135
|
+
"@epam/ai-dial-skill-editor": "1.2.0-dev.174",
|
|
136
|
+
"@epam/ai-dial-source-panel": "1.2.0-dev.174",
|
|
137
137
|
"@epam/ai-dial-ui-kit": "^0.15.0-dev.21",
|
|
138
|
-
"@epam/ai-dial-usage-dashboard": "1.2.0-dev.
|
|
138
|
+
"@epam/ai-dial-usage-dashboard": "1.2.0-dev.174",
|
|
139
139
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
140
140
|
"@epam/pdf-highlighter-kit": "^0.0.19",
|
|
141
141
|
"@mcp-ui/client": "^7.1.1"
|