@epam/ai-dial-chat-hooks 1.2.0-dev.48 → 1.2.0-dev.58
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/conversation-transfer/queue.js +8 -5
- package/conversation/stage.js +23 -0
- package/conversation/useConversationImport/useConversationImport.js +1 -1
- package/conversation/useConversationStream/apply-chunk.js +1 -1
- package/conversation.d.ts +107 -0
- package/conversation.js +23 -21
- package/index.d.ts +107 -0
- package/index.js +82 -80
- package/package.json +16 -16
|
@@ -27,13 +27,14 @@ var o = () => {
|
|
|
27
27
|
progress: { percent: 100 },
|
|
28
28
|
errorCode: void 0
|
|
29
29
|
});
|
|
30
|
-
}, [u]), m = n((t, n) => {
|
|
31
|
-
s((
|
|
32
|
-
...
|
|
30
|
+
}, [u]), m = n((t, n, r) => {
|
|
31
|
+
s((i) => i.map((i) => i.id !== t || i.status !== e.InProgress ? i : {
|
|
32
|
+
...i,
|
|
33
33
|
status: e.Warning,
|
|
34
34
|
progress: { percent: 100 },
|
|
35
35
|
errorCode: void 0,
|
|
36
|
-
warningCode: n
|
|
36
|
+
warningCode: n,
|
|
37
|
+
warningNames: r
|
|
37
38
|
}));
|
|
38
39
|
}, []), h = n((t, n) => {
|
|
39
40
|
u(t, {
|
|
@@ -57,7 +58,9 @@ var o = () => {
|
|
|
57
58
|
return l.current.set(t, () => (u(t, {
|
|
58
59
|
status: e.InProgress,
|
|
59
60
|
progress: { percent: 0 },
|
|
60
|
-
errorCode: void 0
|
|
61
|
+
errorCode: void 0,
|
|
62
|
+
warningCode: void 0,
|
|
63
|
+
warningNames: void 0
|
|
61
64
|
}), r())), r();
|
|
62
65
|
}, [u]);
|
|
63
66
|
return r(() => {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StageStatus as e } from "@epam/ai-dial-chat-shared";
|
|
2
|
+
//#region src/conversation/stage.ts
|
|
3
|
+
var t = (t) => t === e.Completed ? e.Completed : t === e.Failed ? e.Failed : null, n = (e) => ({
|
|
4
|
+
title: e.title ?? "",
|
|
5
|
+
...e.index != null && { index: e.index },
|
|
6
|
+
...e.type != null && { type: e.type },
|
|
7
|
+
...e.data != null && { data: e.data },
|
|
8
|
+
...e.url != null && { url: e.url },
|
|
9
|
+
...e.reference_type != null && { reference_type: e.reference_type },
|
|
10
|
+
...e.reference_url != null && { reference_url: e.reference_url }
|
|
11
|
+
}), r = (e) => ({
|
|
12
|
+
index: e.index ?? 0,
|
|
13
|
+
name: e.name ?? "",
|
|
14
|
+
status: t(e.status),
|
|
15
|
+
...e.content != null && { content: e.content },
|
|
16
|
+
...e.tag != null && { tag: e.tag },
|
|
17
|
+
...e.attachments?.length && { attachments: e.attachments.map(n) }
|
|
18
|
+
}), i = (e) => {
|
|
19
|
+
let t = Array.isArray(e) ? e : e?.custom_content?.stages ?? e?.customContent?.stages;
|
|
20
|
+
if (t?.length) return t.map(r);
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { i as mapStages, r as toStage };
|
|
@@ -191,7 +191,7 @@ var b = 5, x = 5, S = (e) => /\.(dial|zip)$/i.test(e.name), C = (e) => new Promi
|
|
|
191
191
|
jobId: n,
|
|
192
192
|
code: t.AttachmentSkipped,
|
|
193
193
|
names: [...j]
|
|
194
|
-
}), A.length > 0 ? D.failJob(n, h.Unknown) : j.size > 0 ? D.warnJob(n, t.AttachmentSkipped) : D.succeedJob(n);
|
|
194
|
+
}), A.length > 0 ? D.failJob(n, h.Unknown) : j.size > 0 ? D.warnJob(n, t.AttachmentSkipped, [...j]) : D.succeedJob(n);
|
|
195
195
|
}
|
|
196
196
|
}, [
|
|
197
197
|
l,
|
package/conversation.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import { RequestSkill } from '@epam/ai-dial-chat-shared';
|
|
|
23
23
|
import { ResponseFormat } from '@epam/ai-dial-chat-shared';
|
|
24
24
|
import { SendCompletionDtoModeEnum } from '@epam/ai-dial-chat-api-client';
|
|
25
25
|
import { SetStateAction } from 'react';
|
|
26
|
+
import { Stage } from '@epam/ai-dial-chat-shared';
|
|
26
27
|
import { StarterOption } from '@epam/ai-dial-chat-shared';
|
|
27
28
|
import { StatusMessage } from '@epam/ai-dial-chat-shared';
|
|
28
29
|
import { StreamChunk } from '@epam/ai-dial-chat-shared';
|
|
@@ -57,6 +58,25 @@ export declare interface AnnouncementListItemLink {
|
|
|
57
58
|
href: string;
|
|
58
59
|
}
|
|
59
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Applies a single SSE stream chunk to the message list.
|
|
63
|
+
*
|
|
64
|
+
*
|
|
65
|
+
* Attachments are accumulated: each chunk's attachments are appended to the
|
|
66
|
+
* existing array rather than replacing it.
|
|
67
|
+
*
|
|
68
|
+
* Annotations are merged by `index`: partial `body.title` and `body.quote`
|
|
69
|
+
* strings are concatenated across chunks, matching the same delta-merge
|
|
70
|
+
* semantics used for stages.
|
|
71
|
+
*
|
|
72
|
+
* `state` is overwritten (not merged) by each chunk that carries one,
|
|
73
|
+
* matching the DIAL stateful-app contract.
|
|
74
|
+
*
|
|
75
|
+
* @returns Updated message array, or `null` when the chunk carries no
|
|
76
|
+
* actionable data (empty content, no form_schema, and no attachments).
|
|
77
|
+
*/
|
|
78
|
+
export declare const applyChunkToMessages: (messages: Message[], messageIndex: number, chunk: StreamChunk) => Message[] | null;
|
|
79
|
+
|
|
60
80
|
/** State and controls returned by `useAsyncConfirmDialog`. */
|
|
61
81
|
export declare interface AsyncConfirmDialogControls<T> {
|
|
62
82
|
/**
|
|
@@ -572,6 +592,29 @@ declare interface LocalModeValues {
|
|
|
572
592
|
temperature: number;
|
|
573
593
|
}
|
|
574
594
|
|
|
595
|
+
/**
|
|
596
|
+
* Returns the normalized stages of a raw stage array or a message-like
|
|
597
|
+
* payload (reading `custom_content.stages`, falling back to
|
|
598
|
+
* `customContent.stages`), or `undefined` when there are none.
|
|
599
|
+
*/
|
|
600
|
+
export declare const mapStages: (source: RawStage[] | RawStageSource | null | undefined) => Stage[] | undefined;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Merges incoming stage deltas into an existing stage list, keyed by `index`.
|
|
604
|
+
*
|
|
605
|
+
* Partial `name` and `content` strings are concatenated across chunks;
|
|
606
|
+
* attachments are merged by their own `index` (concatenating partial `title`
|
|
607
|
+
* and `data`); every other field on the incoming delta overwrites the
|
|
608
|
+
* accumulated one. A brand-new stage whose first chunk carries `name: null`
|
|
609
|
+
* is normalized to `''`.
|
|
610
|
+
*
|
|
611
|
+
* Exported for hosts that keep a flattened `Stage[]` on the message instead
|
|
612
|
+
* of `Message.custom_content.stages` and therefore cannot reuse
|
|
613
|
+
* {@link applyChunkToMessages}. Prefer `useConversationStream` when the host
|
|
614
|
+
* can delegate the whole stream loop.
|
|
615
|
+
*/
|
|
616
|
+
export declare const mergeStages: (existing: Stage[], incoming: Stage[]) => Stage[];
|
|
617
|
+
|
|
575
618
|
/** True when `message` is an assistant message carrying at least one stage. */
|
|
576
619
|
export declare const messageHasStages: (message: Message) => boolean;
|
|
577
620
|
|
|
@@ -605,6 +648,63 @@ export declare interface QuickAppConversationStartersSettings {
|
|
|
605
648
|
isChatMessageInputDisabled: boolean;
|
|
606
649
|
}
|
|
607
650
|
|
|
651
|
+
/**
|
|
652
|
+
* One stage as it arrives from the REST API or the SSE stream, before
|
|
653
|
+
* normalization. Structurally satisfied by the generated `StageDto` and by a
|
|
654
|
+
* raw stream delta, both of which omit `index`/`name`/`status` on the chunk
|
|
655
|
+
* that opens a stage.
|
|
656
|
+
*/
|
|
657
|
+
export declare interface RawStage {
|
|
658
|
+
/** Ordering key. Defaults to `0` when absent. */
|
|
659
|
+
index?: number | null;
|
|
660
|
+
/** Stage title. `null` on the chunk that opens the stage. */
|
|
661
|
+
name?: string | null;
|
|
662
|
+
/** Terminal state as a raw wire string; anything other than `'completed'`/`'failed'` means still running. */
|
|
663
|
+
status?: string | null;
|
|
664
|
+
/** Additional stage text. */
|
|
665
|
+
content?: string | null;
|
|
666
|
+
/** Short source/category label shown beside the stage name. */
|
|
667
|
+
tag?: string | null;
|
|
668
|
+
/** Files produced or referenced by this stage. */
|
|
669
|
+
attachments?: RawStageAttachment[] | null;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* One stage attachment as it arrives from the REST API or the SSE stream,
|
|
674
|
+
* before normalization: every field is optional and may be `null`.
|
|
675
|
+
*/
|
|
676
|
+
export declare interface RawStageAttachment {
|
|
677
|
+
/** Zero-based position in the attachment list. */
|
|
678
|
+
index?: number | null;
|
|
679
|
+
/** MIME type of the attachment content. */
|
|
680
|
+
type?: string | null;
|
|
681
|
+
/** Display name shown in the UI. */
|
|
682
|
+
title?: string | null;
|
|
683
|
+
/** Inline base-64 encoded content. */
|
|
684
|
+
data?: string | null;
|
|
685
|
+
/** Remote URL pointing to the attachment content. */
|
|
686
|
+
url?: string | null;
|
|
687
|
+
/** MIME type of the referenced resource. */
|
|
688
|
+
reference_type?: string | null;
|
|
689
|
+
/** URL of an alternate reference resource. */
|
|
690
|
+
reference_url?: string | null;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Message-like payload carrying stages under either the wire's snake_case
|
|
695
|
+
* `custom_content` or a host's camelCased `customContent`.
|
|
696
|
+
*/
|
|
697
|
+
export declare interface RawStageSource {
|
|
698
|
+
/** Custom content as the DIAL wire format spells it. */
|
|
699
|
+
custom_content?: {
|
|
700
|
+
stages?: RawStage[] | null;
|
|
701
|
+
} | null;
|
|
702
|
+
/** Custom content as a camelCasing host spells it. */
|
|
703
|
+
customContent?: {
|
|
704
|
+
stages?: RawStage[] | null;
|
|
705
|
+
} | null;
|
|
706
|
+
}
|
|
707
|
+
|
|
608
708
|
/** State of one resource's recipient-count lookup. */
|
|
609
709
|
declare interface RecipientsCountEntry {
|
|
610
710
|
/** Where the lookup for this resource currently stands. */
|
|
@@ -661,6 +761,13 @@ export declare interface StreamCompletionOptions {
|
|
|
661
761
|
signal: AbortSignal;
|
|
662
762
|
}
|
|
663
763
|
|
|
764
|
+
/**
|
|
765
|
+
* Returns a renderable `Stage` for one raw payload: `index` defaults to `0`,
|
|
766
|
+
* `name` to `''`, an unrecognized `status` to `null` (still running), and
|
|
767
|
+
* `content`/`tag`/`attachments` are passed through when present.
|
|
768
|
+
*/
|
|
769
|
+
export declare const toStage: (stage: RawStage) => Stage;
|
|
770
|
+
|
|
664
771
|
/** Request shape the host's selected-deployment recognition call accepts. */
|
|
665
772
|
export declare interface TranscribeWithDeploymentParams {
|
|
666
773
|
audioUrl: string;
|
package/conversation.js
CHANGED
|
@@ -7,24 +7,26 @@ import { getTimeOfDayGreeting as f } from "./conversation/greeting.js";
|
|
|
7
7
|
import { createDeploymentChangedMessage as p } from "./conversation/message-factory.js";
|
|
8
8
|
import { getLastDeploymentId as m, getLastUserMessageToolConfiguration as h, isMessageStreaming as g, messageHasStages as _, normalizeResponseFormat as v } from "./conversation/message-utils.js";
|
|
9
9
|
import { getQuickAppConversationStarters as y } from "./conversation/quick-app-conversation-starters.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
|
|
10
|
+
import { mapStages as b, toStage as x } from "./conversation/stage.js";
|
|
11
|
+
import { getStarterPopulateText as S, getStartersFromSchema as C } from "./conversation/starter-option.js";
|
|
12
|
+
import { deriveConversationRowActionState as w } from "./conversation/deriveConversationRowActionState/deriveConversationRowActionState.js";
|
|
13
|
+
import { useActiveConversationSync as T } from "./conversation/useActiveConversationSync/useActiveConversationSync.js";
|
|
14
|
+
import { useAsyncConfirmDialog as E } from "./conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.js";
|
|
15
|
+
import { useConversationLookupMaps as D } from "./conversation/useConversationLookupMaps/useConversationLookupMaps.js";
|
|
16
|
+
import { getConversationSource as O, useConversationPanelItems as k } from "./conversation/useConversationPanelItems/useConversationPanelItems.js";
|
|
17
|
+
import { useImportFilePicker as A } from "./conversation/useImportFilePicker/useImportFilePicker.js";
|
|
18
|
+
import { useAttachmentUpload as j } from "./conversation/useAttachmentUpload/useAttachmentUpload.js";
|
|
19
|
+
import { AudioTranscriptionError as M, AudioTranscriptionErrorReason as N } from "./conversation/useTranscribeAudio/audio-transcription-error.js";
|
|
20
|
+
import { useTranscribeAudio as P } from "./conversation/useTranscribeAudio/useTranscribeAudio.js";
|
|
21
|
+
import { attachmentToDto as F, attachmentsToDtos as I } from "./conversation/useConversationHandlers/attachment-to-dto.js";
|
|
22
|
+
import { createMessagePair as L } from "./conversation/useConversationHandlers/message-factory.js";
|
|
23
|
+
import { hasActiveToolConfig as R, isAnswerIncomplete as z, isMessageChanged as B, shouldRerunGenerationOnEdit as V } from "./conversation/useConversationHandlers/message-utils.js";
|
|
24
|
+
import { getStarterConversationText as H, getStarterDisplayText as U, getStarterSubmitText as W } from "./conversation/useConversationHandlers/starter-option.js";
|
|
25
|
+
import { getConversationPath as G } from "./conversation/useConversationStream/conversation-path.js";
|
|
26
|
+
import { useConversationHandlers as K } from "./conversation/useConversationHandlers/useConversationHandlers.js";
|
|
27
|
+
import { applyChunkToMessages as q, mergeStages as J } from "./conversation/useConversationStream/apply-chunk.js";
|
|
28
|
+
import { isAwaitingGenerationResume as Y } from "./conversation/useConversationStream/generation-resume.js";
|
|
29
|
+
import { useConversationStream as X } from "./conversation/useConversationStream/useConversationStream.js";
|
|
30
|
+
import { useChatSettingsFormConfig as Z } from "./useChatSettingsFormConfig/useChatSettingsFormConfig.js";
|
|
31
|
+
import { useToolsMenu as Q } from "./useToolsMenu/useToolsMenu.js";
|
|
32
|
+
export { M as AudioTranscriptionError, N as AudioTranscriptionErrorReason, a as DEFAULT_GENERATION_CONFLICT_MESSAGE, o as GenerationConflictError, q as applyChunkToMessages, F as attachmentToDto, I as attachmentsToDtos, e as buildAnnouncementSignature, s as createChatStreamApi, p as createDeploymentChangedMessage, L as createMessagePair, w as deriveConversationRowActionState, l as formatAppVersion, G as getConversationPath, O as getConversationSource, m as getLastDeploymentId, h as getLastUserMessageToolConfiguration, d as getModelIdFromConversationId, y as getQuickAppConversationStarters, H as getStarterConversationText, U as getStarterDisplayText, S as getStarterPopulateText, W as getStarterSubmitText, C as getStartersFromSchema, f as getTimeOfDayGreeting, R as hasActiveToolConfig, t as hasAnnouncementContent, n as hasStructuredAnnouncement, z as isAnswerIncomplete, Y as isAwaitingGenerationResume, B as isMessageChanged, g as isMessageStreaming, b as mapStages, J as mergeStages, _ as messageHasStages, v as normalizeResponseFormat, r as sanitizeAnnouncementHtml, i as sanitizeAnnouncementMessageHtml, u as sanitizeFooterHtml, V as shouldRerunGenerationOnEdit, c as shouldWatchForDisplayNameUpdate, x as toStage, T as useActiveConversationSync, E as useAsyncConfirmDialog, j as useAttachmentUpload, Z as useChatSettingsFormConfig, K as useConversationHandlers, D as useConversationLookupMaps, k as useConversationPanelItems, X as useConversationStream, A as useImportFilePicker, Q as useToolsMenu, P as useTranscribeAudio };
|
package/index.d.ts
CHANGED
|
@@ -129,6 +129,7 @@ import { SkillFileUploadCandidate } from '@epam/ai-dial-skill-editor';
|
|
|
129
129
|
import { SkillFileValidationResult } from '@epam/ai-dial-skill-editor';
|
|
130
130
|
import { SkillMetadataItemDto } from '@epam/ai-dial-chat-api-client';
|
|
131
131
|
import { SkillUploadResponseDto } from '@epam/ai-dial-chat-api-client';
|
|
132
|
+
import { Stage } from '@epam/ai-dial-chat-shared';
|
|
132
133
|
import { StarterOption } from '@epam/ai-dial-chat-shared';
|
|
133
134
|
import { StatusMessage } from '@epam/ai-dial-chat-shared';
|
|
134
135
|
import { StreamChunk } from '@epam/ai-dial-chat-shared';
|
|
@@ -249,6 +250,25 @@ export declare interface ApiErrorDetails {
|
|
|
249
250
|
/** Appends a locale's uppercased code to a field label, e.g. `'Name [EN]'`. */
|
|
250
251
|
export declare const appendLocaleCode: (label: string, locale: string) => string;
|
|
251
252
|
|
|
253
|
+
/**
|
|
254
|
+
* Applies a single SSE stream chunk to the message list.
|
|
255
|
+
*
|
|
256
|
+
*
|
|
257
|
+
* Attachments are accumulated: each chunk's attachments are appended to the
|
|
258
|
+
* existing array rather than replacing it.
|
|
259
|
+
*
|
|
260
|
+
* Annotations are merged by `index`: partial `body.title` and `body.quote`
|
|
261
|
+
* strings are concatenated across chunks, matching the same delta-merge
|
|
262
|
+
* semantics used for stages.
|
|
263
|
+
*
|
|
264
|
+
* `state` is overwritten (not merged) by each chunk that carries one,
|
|
265
|
+
* matching the DIAL stateful-app contract.
|
|
266
|
+
*
|
|
267
|
+
* @returns Updated message array, or `null` when the chunk carries no
|
|
268
|
+
* actionable data (empty content, no form_schema, and no attachments).
|
|
269
|
+
*/
|
|
270
|
+
export declare const applyChunkToMessages: (messages: Message[], messageIndex: number, chunk: StreamChunk) => Message[] | null;
|
|
271
|
+
|
|
252
272
|
/** Converts an APScheduler weekday (Monday=0..Sunday=6) to a JS `Date` weekday (Sunday=0..Saturday=6). */
|
|
253
273
|
export declare const apSchedulerDayToJsDay: (apSchedulerDay: number) => number;
|
|
254
274
|
|
|
@@ -2208,6 +2228,13 @@ export declare interface MapSkillToCatalogItemOptions {
|
|
|
2208
2228
|
favoriteIds: ReadonlySet<string>;
|
|
2209
2229
|
}
|
|
2210
2230
|
|
|
2231
|
+
/**
|
|
2232
|
+
* Returns the normalized stages of a raw stage array or a message-like
|
|
2233
|
+
* payload (reading `custom_content.stages`, falling back to
|
|
2234
|
+
* `customContent.stages`), or `undefined` when there are none.
|
|
2235
|
+
*/
|
|
2236
|
+
export declare const mapStages: (source: RawStage[] | RawStageSource | null | undefined) => Stage[] | undefined;
|
|
2237
|
+
|
|
2211
2238
|
/**
|
|
2212
2239
|
* Maps a toolset's specification into the lib's credential-status shape,
|
|
2213
2240
|
* for refreshing the details panel after login/logout. Includes both
|
|
@@ -2390,6 +2417,22 @@ export declare enum McpResourceKind {
|
|
|
2390
2417
|
|
|
2391
2418
|
export declare const mergeCreatedFolderIntoCache: (cache: Map<string, ListFilesItemDto[]>, parentApiPath: string, created: CreateFolderResponseDto, inheritedPermissions?: string[]) => Map<string, ListFilesItemDto[]>;
|
|
2392
2419
|
|
|
2420
|
+
/**
|
|
2421
|
+
* Merges incoming stage deltas into an existing stage list, keyed by `index`.
|
|
2422
|
+
*
|
|
2423
|
+
* Partial `name` and `content` strings are concatenated across chunks;
|
|
2424
|
+
* attachments are merged by their own `index` (concatenating partial `title`
|
|
2425
|
+
* and `data`); every other field on the incoming delta overwrites the
|
|
2426
|
+
* accumulated one. A brand-new stage whose first chunk carries `name: null`
|
|
2427
|
+
* is normalized to `''`.
|
|
2428
|
+
*
|
|
2429
|
+
* Exported for hosts that keep a flattened `Stage[]` on the message instead
|
|
2430
|
+
* of `Message.custom_content.stages` and therefore cannot reuse
|
|
2431
|
+
* {@link applyChunkToMessages}. Prefer `useConversationStream` when the host
|
|
2432
|
+
* can delegate the whole stream loop.
|
|
2433
|
+
*/
|
|
2434
|
+
export declare const mergeStages: (existing: Stage[], incoming: Stage[]) => Stage[];
|
|
2435
|
+
|
|
2393
2436
|
/** True when `message` is an assistant message carrying at least one stage. */
|
|
2394
2437
|
export declare const messageHasStages: (message: Message) => boolean;
|
|
2395
2438
|
|
|
@@ -2908,6 +2951,63 @@ export declare interface QuickAppSchemaLike {
|
|
|
2908
2951
|
displayName?: string;
|
|
2909
2952
|
}
|
|
2910
2953
|
|
|
2954
|
+
/**
|
|
2955
|
+
* One stage as it arrives from the REST API or the SSE stream, before
|
|
2956
|
+
* normalization. Structurally satisfied by the generated `StageDto` and by a
|
|
2957
|
+
* raw stream delta, both of which omit `index`/`name`/`status` on the chunk
|
|
2958
|
+
* that opens a stage.
|
|
2959
|
+
*/
|
|
2960
|
+
export declare interface RawStage {
|
|
2961
|
+
/** Ordering key. Defaults to `0` when absent. */
|
|
2962
|
+
index?: number | null;
|
|
2963
|
+
/** Stage title. `null` on the chunk that opens the stage. */
|
|
2964
|
+
name?: string | null;
|
|
2965
|
+
/** Terminal state as a raw wire string; anything other than `'completed'`/`'failed'` means still running. */
|
|
2966
|
+
status?: string | null;
|
|
2967
|
+
/** Additional stage text. */
|
|
2968
|
+
content?: string | null;
|
|
2969
|
+
/** Short source/category label shown beside the stage name. */
|
|
2970
|
+
tag?: string | null;
|
|
2971
|
+
/** Files produced or referenced by this stage. */
|
|
2972
|
+
attachments?: RawStageAttachment[] | null;
|
|
2973
|
+
}
|
|
2974
|
+
|
|
2975
|
+
/**
|
|
2976
|
+
* One stage attachment as it arrives from the REST API or the SSE stream,
|
|
2977
|
+
* before normalization: every field is optional and may be `null`.
|
|
2978
|
+
*/
|
|
2979
|
+
export declare interface RawStageAttachment {
|
|
2980
|
+
/** Zero-based position in the attachment list. */
|
|
2981
|
+
index?: number | null;
|
|
2982
|
+
/** MIME type of the attachment content. */
|
|
2983
|
+
type?: string | null;
|
|
2984
|
+
/** Display name shown in the UI. */
|
|
2985
|
+
title?: string | null;
|
|
2986
|
+
/** Inline base-64 encoded content. */
|
|
2987
|
+
data?: string | null;
|
|
2988
|
+
/** Remote URL pointing to the attachment content. */
|
|
2989
|
+
url?: string | null;
|
|
2990
|
+
/** MIME type of the referenced resource. */
|
|
2991
|
+
reference_type?: string | null;
|
|
2992
|
+
/** URL of an alternate reference resource. */
|
|
2993
|
+
reference_url?: string | null;
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
/**
|
|
2997
|
+
* Message-like payload carrying stages under either the wire's snake_case
|
|
2998
|
+
* `custom_content` or a host's camelCased `customContent`.
|
|
2999
|
+
*/
|
|
3000
|
+
export declare interface RawStageSource {
|
|
3001
|
+
/** Custom content as the DIAL wire format spells it. */
|
|
3002
|
+
custom_content?: {
|
|
3003
|
+
stages?: RawStage[] | null;
|
|
3004
|
+
} | null;
|
|
3005
|
+
/** Custom content as a camelCasing host spells it. */
|
|
3006
|
+
customContent?: {
|
|
3007
|
+
stages?: RawStage[] | null;
|
|
3008
|
+
} | null;
|
|
3009
|
+
}
|
|
3010
|
+
|
|
2911
3011
|
/**
|
|
2912
3012
|
* Reads a skill file response as raw bytes, or `null` when the body is
|
|
2913
3013
|
* larger than `SKILL_MANIFEST_MAX_BYTES`. The declared `content-length` is
|
|
@@ -3849,6 +3949,13 @@ export declare const toPublishEntityType: (type: CatalogEntityType) => CatalogPu
|
|
|
3849
3949
|
*/
|
|
3850
3950
|
export declare const toPublishRuleDto: (rule: PublicationRule) => PublishRuleDto;
|
|
3851
3951
|
|
|
3952
|
+
/**
|
|
3953
|
+
* Returns a renderable `Stage` for one raw payload: `index` defaults to `0`,
|
|
3954
|
+
* `name` to `''`, an unrecognized `status` to `null` (still running), and
|
|
3955
|
+
* `content`/`tag`/`attachments` are passed through when present.
|
|
3956
|
+
*/
|
|
3957
|
+
export declare const toStage: (stage: RawStage) => Stage;
|
|
3958
|
+
|
|
3852
3959
|
/** Request shape the host's selected-deployment recognition call accepts. */
|
|
3853
3960
|
export declare interface TranscribeWithDeploymentParams {
|
|
3854
3961
|
audioUrl: string;
|
package/index.js
CHANGED
|
@@ -54,83 +54,85 @@ import { createDeploymentChangedMessage as Gt } from "./conversation/message-fac
|
|
|
54
54
|
import { getLastDeploymentId as Kt, getLastUserMessageToolConfiguration as qt, isMessageStreaming as Jt, messageHasStages as Yt, normalizeResponseFormat as Xt } from "./conversation/message-utils.js";
|
|
55
55
|
import { toOverlayMessages as Zt } from "./conversation/overlay-messages.js";
|
|
56
56
|
import { getQuickAppConversationStarters as Qt } from "./conversation/quick-app-conversation-starters.js";
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
|
|
57
|
+
import { mapStages as $t, toStage as en } from "./conversation/stage.js";
|
|
58
|
+
import { getStarterPopulateText as tn, getStartersFromSchema as nn } from "./conversation/starter-option.js";
|
|
59
|
+
import { useOAuthCallbackCompletion as rn } from "./oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js";
|
|
60
|
+
import { buildPromptExportEnvelope as an, buildPromptExportFileName as on, serializePromptExport as sn } from "./prompt/export-prompt.js";
|
|
61
|
+
import { PROMPT_CONTENT_MAX_LENGTH as cn, PROMPT_COUNTER_ANNOUNCE_THRESHOLD as ln, PROMPT_DESCRIPTION_MAX_LENGTH as un, PROMPT_NAME_MAX_LENGTH as dn, PromptFieldError as fn, buildPromptPath as pn, getRemainingCharacters as mn, validatePromptContent as hn, validatePromptDescription as gn, validatePromptName as _n } from "./prompt/prompt.js";
|
|
62
|
+
import { usePromptsState as vn } from "./prompt/usePromptsState/usePromptsState.js";
|
|
63
|
+
import { UnsupportedTriggerReason as yn } from "./scheduled-task/scheduled-task-mapping.js";
|
|
64
|
+
import { apSchedulerDayToJsDay as bn, jsDayToApSchedulerDay as xn } from "./shared/cron-weekday.js";
|
|
65
|
+
import { mapFormValuesToCreateBody as Sn, mapFormValuesToUpdateBody as Cn, mapScheduledTaskDtoToFormValues as wn } from "./scheduled-task/scheduled-task-trigger.js";
|
|
66
|
+
import { validateSkillFileBatch as Tn } from "./skill/skill-file-batch-validation.js";
|
|
67
|
+
import { skillFileToAttachment as En } from "./skill/skill-file-preview.js";
|
|
68
|
+
import { SkillEditorLoadState as Dn, useSkillEditorLoad as On } from "./skill/useSkillEditorLoad.js";
|
|
69
|
+
import { useSkillEditorSubmit as kn } from "./skill/useSkillEditorSubmit.js";
|
|
70
|
+
import { useSkillFileActions as An } from "./skill/useSkillFileActions.js";
|
|
71
|
+
import { SkillPreviewErrorKind as jn, useSkillFilePreview as Mn } from "./skill/useSkillFilePreview.js";
|
|
72
|
+
import { useSkillsState as Nn } from "./skill/useSkillsState/useSkillsState.js";
|
|
73
|
+
import { RecipientsCountStatus as Pn, useShareRecipientsCount as Fn } from "./useShareRecipientsCount/useShareRecipientsCount.js";
|
|
74
|
+
import { deriveConversationRowActionState as In } from "./conversation/deriveConversationRowActionState/deriveConversationRowActionState.js";
|
|
75
|
+
import { useActiveConversationSync as Ln } from "./conversation/useActiveConversationSync/useActiveConversationSync.js";
|
|
76
|
+
import { useAsyncConfirmDialog as Rn } from "./conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.js";
|
|
77
|
+
import { useConversationLookupMaps as zn } from "./conversation/useConversationLookupMaps/useConversationLookupMaps.js";
|
|
78
|
+
import { getConversationSource as Bn, useConversationPanelItems as Vn } from "./conversation/useConversationPanelItems/useConversationPanelItems.js";
|
|
79
|
+
import { useImportFilePicker as Hn } from "./conversation/useImportFilePicker/useImportFilePicker.js";
|
|
80
|
+
import { sanitizeFileName as Un, splitFileNameExtension as Wn, trimFileNameToByteLimit as Gn } from "./files/file-name.js";
|
|
81
|
+
import { useAttachmentUpload as Kn } from "./conversation/useAttachmentUpload/useAttachmentUpload.js";
|
|
82
|
+
import { AudioTranscriptionError as qn, AudioTranscriptionErrorReason as Jn } from "./conversation/useTranscribeAudio/audio-transcription-error.js";
|
|
83
|
+
import { useTranscribeAudio as Yn } from "./conversation/useTranscribeAudio/useTranscribeAudio.js";
|
|
84
|
+
import { DEFAULT_MAX_ARCHIVE_BYTES as Xn, useConversationExport as Zn } from "./conversation/useConversationExport/useConversationExport.js";
|
|
85
|
+
import { attachmentToDto as Qn, attachmentsToDtos as $n } from "./conversation/useConversationHandlers/attachment-to-dto.js";
|
|
86
|
+
import { createMessagePair as er } from "./conversation/useConversationHandlers/message-factory.js";
|
|
87
|
+
import { hasActiveToolConfig as tr, isAnswerIncomplete as nr, isMessageChanged as rr, shouldRerunGenerationOnEdit as ir } from "./conversation/useConversationHandlers/message-utils.js";
|
|
88
|
+
import { getStarterConversationText as ar, getStarterDisplayText as or, getStarterSubmitText as sr } from "./conversation/useConversationHandlers/starter-option.js";
|
|
89
|
+
import { getConversationPath as cr } from "./conversation/useConversationStream/conversation-path.js";
|
|
90
|
+
import { useConversationHandlers as lr } from "./conversation/useConversationHandlers/useConversationHandlers.js";
|
|
91
|
+
import { useConversationImport as ur } from "./conversation/useConversationImport/useConversationImport.js";
|
|
92
|
+
import { useConversationScroll as dr } from "./conversation/useConversationScroll/useConversationScroll.js";
|
|
93
|
+
import { applyChunkToMessages as fr, mergeStages as pr } from "./conversation/useConversationStream/apply-chunk.js";
|
|
94
|
+
import { isAwaitingGenerationResume as mr } from "./conversation/useConversationStream/generation-resume.js";
|
|
95
|
+
import { useConversationStream as hr } from "./conversation/useConversationStream/useConversationStream.js";
|
|
96
|
+
import { useConversationSources as gr } from "./conversation-sources/useConversationSources/useConversationSources.js";
|
|
97
|
+
import { DialFilesApiUploadMode as _r } from "./files/dial-files-api.js";
|
|
98
|
+
import { FileManagerNotificationReason as vr, FileNameValidationErrorReason as yr, FileOperationKind as br } from "./files/dial-file-manager.types.js";
|
|
99
|
+
import { COLUMNS_WITHOUT_AUTHOR as xr, COLUMNS_WITH_AUTHOR as Sr, CORE_PERMISSION_MAP as Cr, DATE_OPTIONS as wr, PATH_SEPARATOR_REGEXP as Tr, RESERVED_MARKER_NAME as Er, UPLOAD_CONCURRENCY as Dr } from "./files/dial-file-manager.model.js";
|
|
100
|
+
import { DialFileManagerActionProfile as Or, DialFileManagerVariant as kr, deriveActionProfile as Ar } from "./files/file-manager-variant.js";
|
|
101
|
+
import { buildSharedItemVirtualPath as jr, dialCorePathToRelative as Mr, findDialFileByPath as Nr, findFolderByVirtualPath as Pr, formatOperationFolderName as Fr, getVirtualPathName as Ir, hasDialFileWritePermission as Lr, hasForbiddenNameSymbols as Rr, isCopyMoveDuplicateAllowed as zr, isShareActionsAllowed as Br, normalizeVirtualPath as Vr, parseNewFolderVirtualPath as Hr, resolveOwnerCoords as Ur } from "./files/dial-file-manager-path.util.js";
|
|
102
|
+
import { getParentFolderPath as Wr, resolveDialFileApiPath as Gr, virtualPathToApiPath as Kr } from "./files/resolve-dial-file-api-path.js";
|
|
103
|
+
import { prepareCopyItems as qr, prepareMoveRenameItems as Jr } from "./files/dial-file-manager-copy-move.util.js";
|
|
104
|
+
import { buildFromCache as Yr, fetchByTab as Xr, fetchForSearch as Zr, findFirstSuccessfulCopyMoveItem as Qr, mapCorePermissions as $r, mapFileMetadataToDialFile as ei, mapSearchItem as ti, mergeCreatedFolderIntoCache as ni, updateEntry as ri } from "./files/dial-file-manager-mapping.util.js";
|
|
105
|
+
import { createFilesApiClient as ii } from "./files/create-files-api.js";
|
|
106
|
+
import { createUploadFileWithProgress as ai } from "./files/create-upload-file-with-progress.js";
|
|
107
|
+
import { openAnnotationAttachment as oi } from "./files/annotation.js";
|
|
108
|
+
import { annotationToOoxmlCanvasContent as si, annotationToPdfCanvasContent as ci, clearAttachmentCache as li, hasAttachmentTextSource as ui, referenceAttachmentToPdfCanvasContent as di, resolveCodeCanvasContent as fi, resolveGroupedVisualizerCanvasContent as pi, resolveHtmlCanvasContent as mi, resolveImageCanvasContent as hi, resolveJsonCanvasContent as gi, resolveMarkdownCanvasContent as _i, resolveOoxmlCanvasContent as vi, resolvePdfCanvasContent as yi, resolveTextCanvasContent as bi, resolveVisualizerCanvasContent as xi } from "./files/attachment-canvas.js";
|
|
109
|
+
import { getUrlFileName as Si, isExternalSourcePreviewable as Ci, resolveExternalSourceContentType as wi } from "./files/source-content.js";
|
|
110
|
+
import { annotationToDisplayAttachment as Ti, attachmentDtoToDisplayAttachment as Ei, attachmentDtosToDisplayAttachments as Di } from "./files/attachment-dto-to-display.js";
|
|
111
|
+
import { dialFileToAttachment as Oi, dialFilesToAttachments as ki, dialFolderPathToAttachment as Ai } from "./files/dial-file-to-attachment.js";
|
|
112
|
+
import { DownloadDestinationType as ji } from "./files/download-destination.js";
|
|
113
|
+
import { prepareDownloadDestination as Mi } from "./files/prepare-download-destination.js";
|
|
114
|
+
import { useDialFileListing as Ni } from "./files/useDialFileListing/useDialFileListing.js";
|
|
115
|
+
import { useDialFileMetadata as Pi } from "./files/useDialFileMetadata/useDialFileMetadata.js";
|
|
116
|
+
import { useDialFileMutations as Fi } from "./files/useDialFileMutations/useDialFileMutations.js";
|
|
117
|
+
import { useDialFileSharing as Ii } from "./files/useDialFileSharing/useDialFileSharing.js";
|
|
118
|
+
import { useDialFileUploadBatch as Li } from "./files/useDialFileUploadBatch/useDialFileUploadBatch.js";
|
|
119
|
+
import { useDialFileManager as Ri } from "./files/useDialFileManager/useDialFileManager.js";
|
|
120
|
+
import { useDialFileManagerTabConfig as zi } from "./files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js";
|
|
121
|
+
import { isCustomAppSchema as Bi, isQuickAppSchema as Vi } from "./shared/application-schema.js";
|
|
122
|
+
import { getBrowserTimezone as Hi } from "./shared/browser-timezone.js";
|
|
123
|
+
import { isValidAbsoluteUrl as Ui, isValidFeaturesData as Wi, parseFeaturesData as Gi } from "./shared/custom-apps.js";
|
|
124
|
+
import { buildExternalServiceScopeId as Ki, getExternalServiceFallbackName as qi, parseExternalServiceUrl as Ji } from "./shared/external-services.js";
|
|
125
|
+
import { useChatSettingsFormConfig as Yi } from "./useChatSettingsFormConfig/useChatSettingsFormConfig.js";
|
|
126
|
+
import { usePageFileDrag as Xi } from "./usePageFileDrag/usePageFileDrag.js";
|
|
127
|
+
import { useViewportWidth as Zi } from "./useViewportWidth/useViewportWidth.js";
|
|
128
|
+
import { usePanelMaxWidth as Qi } from "./usePanelMaxWidth/usePanelMaxWidth.js";
|
|
129
|
+
import { useShareLink as $i } from "./useShareLink/useShareLink.js";
|
|
130
|
+
import { useToolsMenu as ea } from "./useToolsMenu/useToolsMenu.js";
|
|
131
|
+
import { useUsageData as ta } from "./usage/useUsageData/useUsageData.js";
|
|
132
|
+
import { McpAppResourceFetchError as na, createMcpAppsApiClient as ra } from "./mcp-apps/mcp-apps-api-client.js";
|
|
133
|
+
import { useMcpAppTools as ia } from "./mcp-apps/useMcpAppTools/useMcpAppTools.js";
|
|
134
|
+
import { useMcpAppHostContext as aa } from "./mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js";
|
|
135
|
+
import { useMcpAppHostAdapter as oa } from "./mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.js";
|
|
136
|
+
import { useOpenMcpAppCanvas as sa } from "./mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.js";
|
|
137
|
+
import { useGridEditingScroll as ca } from "@epam/ai-dial-chat-shared";
|
|
138
|
+
export { x as AttachmentValidationErrorReason, qn as AudioTranscriptionError, Jn as AudioTranscriptionErrorReason, R as AuthenticationType, xr as COLUMNS_WITHOUT_AUTHOR, Sr as COLUMNS_WITH_AUTHOR, Cr as CORE_PERMISSION_MAP, $e as CatalogPrimaryActionType, T as ConversationExportMode, E as ConversationTransferErrorCode, D as ConversationTransferWarningCode, wr as DATE_OPTIONS, Lt as DEFAULT_GENERATION_CONFLICT_MESSAGE, Xn as DEFAULT_MAX_ARCHIVE_BYTES, Or as DialFileManagerActionProfile, kr as DialFileManagerVariant, _r as DialFilesApiUploadMode, ji as DownloadDestinationType, k as EXPORT_APP_NAME, O as ExportFileNameKind, kt as FavoriteEntityType, vr as FileManagerNotificationReason, yr as FileNameValidationErrorReason, br as FileOperationKind, Rt as GenerationConflictError, na as McpAppResourceFetchError, Re as McpResourceKind, at as OAuthResourceKind, Tr as PATH_SEPARATOR_REGEXP, cn as PROMPT_CONTENT_MAX_LENGTH, ln as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, un as PROMPT_DESCRIPTION_MAX_LENGTH, dn as PROMPT_NAME_MAX_LENGTH, we as PUBLIC_SKILL_BUCKET, fn as PromptFieldError, ae as PromptSource, Er as RESERVED_MARKER_NAME, Pn as RecipientsCountStatus, ue as SKILL_FILE_UPLOAD_MAX_BYTES, Te as SKILL_LISTING_MAX_PAGES, Ee as SKILL_LISTING_PAGE_SIZE, de as SKILL_MANIFEST_FILE, De as SKILL_MANIFEST_MAX_BYTES, fe as SKILL_UPLOAD_MAX_FILES, pe as SKILL_UPLOAD_MAX_TOTAL_BYTES, Dn as SkillEditorLoadState, jn as SkillPreviewErrorKind, Oe as SkillSource, ot as TOOLSET_REDIRECT_STATE_KEY, st as ToolsetAuthStatus, ct as ToolsetAuthTypes, lt as ToolsetCredentialsLevel, Tt as ToolsetLoginOutcomeType, ut as ToolsetOAuthCallbackQuery, dt as ToolsetOAuthChannelControlType, ft as ToolsetOAuthFailureReason, pt as ToolsetOAuthInitiationResultType, mt as ToolsetOAuthResultType, Dr as UPLOAD_CONCURRENCY, yn as UnsupportedTriggerReason, ht as WithLogin, Ti as annotationToDisplayAttachment, si as annotationToOoxmlCanvasContent, ci as annotationToPdfCanvasContent, bn as apSchedulerDayToJsDay, W as appendLocaleCode, fr as applyChunkToMessages, Ei as attachmentDtoToDisplayAttachment, Di as attachmentDtosToDisplayAttachments, Qn as attachmentToDto, $n as attachmentsToDtos, G as buildAdditionalLocaleOptions, Mt as buildAnnouncementSignature, ze as buildApplicationMcpUrl, N as buildChatCompletionsUrl, Be as buildConnectApi, P as buildDeploymentConnectApi, Ki as buildExternalServiceScopeId, Yr as buildFromCache, an as buildPromptExportEnvelope, on as buildPromptExportFileName, se as buildPromptOverview, pn as buildPromptPath, F as buildResponsesUrl, jr as buildSharedItemVirtualPath, Ae as buildSkillContentTree, me as buildSkillFilesPayload, he as buildSkillManifest, ge as buildSkillManifestForSubmit, _e as buildSkillManifestFromFrontmatter, je as buildSkillOverview, bt as buildToolsetAuthorizeUrl, Ve as buildToolsetMcpUrl, li as clearAttachmentCache, K as composeLocalePayload, zt as createChatStreamApi, i as createCsrfMiddleware, Gt as createDeploymentChangedMessage, ii as createFilesApiClient, ra as createMcpAppsApiClient, er as createMessagePair, j as createPublishApiClient, a as createUnauthorizedMiddleware, ai as createUploadFileWithProgress, V as decodeToolsetId, q as decomposeLocalizedFields, Ar as deriveActionProfile, Je as deriveAvailableTabIds, In as deriveConversationRowActionState, Ye as deriveFavoriteItems, Mr as dialCorePathToRelative, Oi as dialFileToAttachment, ki as dialFilesToAttachments, Ai as dialFolderPathToAttachment, m as downloadAttachment, gt as emitToolsetLoginSuccess, I as encodeDeploymentId, H as encodeToolsetId, Xr as fetchByTab, Zr as fetchForSearch, Xe as filterCatalogItemsBySelector, Ze as filterHiddenOwnedItems, L as findDeploymentByIdOrReference, Nr as findDialFileByPath, Qr as findFirstSuccessfulCopyMoveItem, Pr as findFolderByVirtualPath, Vt as formatAppVersion, X as formatCalendarDate, C as formatDateYM, w as formatDateYMD, Fr as formatOperationFolderName, A as formatQuotedNameList, e as getApiErrorDetails, t as getApiErrorMessage, n as getApiErrorStatus, Hi as getBrowserTimezone, cr as getConversationPath, Bn as getConversationSource, qi as getExternalServiceFallbackName, Kt as getLastDeploymentId, qt as getLastUserMessageToolConfiguration, Ut as getModelIdFromConversationId, Wr as getParentFolderPath, Ue as getPublicCatalogEntityFolderPath, Qt as getQuickAppConversationStarters, mn as getRemainingCharacters, ar as getStarterConversationText, or as getStarterDisplayText, tn as getStarterPopulateText, sr as getStarterSubmitText, nn as getStartersFromSchema, Wt as getTimeOfDayGreeting, vt as getToolsetOAuthChannelName, xt as getToolsetRedirectUri, Si as getUrlFileName, Ir as getVirtualPathName, tr as hasActiveToolConfig, Nt as hasAnnouncementContent, ui as hasAttachmentTextSource, Lr as hasDialFileWritePermission, Rr as hasForbiddenNameSymbols, Pt as hasStructuredAnnouncement, o as includesIgnoreCase, St as initiateOAuthLogin, nr as isAnswerIncomplete, mr as isAwaitingGenerationResume, r as isConversationNotFoundError, zr as isCopyMoveDuplicateAllowed, Bi as isCustomAppSchema, _ as isDialFileAcceptType, d as isDialFileId, h as isDownloadableAttachment, Ci as isExternalSourcePreviewable, rr as isMessageChanged, Jt as isMessageStreaming, ce as isOrganisationPromptItem, We as isPublicCatalogEntityId, U as isPublicToolsetId, Vi as isQuickAppSchema, Br as isShareActionsAllowed, Ui as isValidAbsoluteUrl, Wi as isValidFeaturesData, ve as isValidSkillRelativePath, xn as jsDayToApSchedulerDay, $r as mapCorePermissions, Q as mapDeploymentDetailsDtoToEntityDetails, z as mapDeploymentLimitsDtoToCatalogLimits, B as mapDeploymentLimitsToInput, te as mapDeploymentToCatalogItem, ne as mapDeploymentToolsetCredentials, $ as mapEntityDetailsToCatalogDetails, ei as mapFileMetadataToDialFile, Sn as mapFormValuesToCreateBody, Cn as mapFormValuesToUpdateBody, le as mapPromptToCatalogItem, Ge as mapPublishConversationResultDto, Ke as mapPublishHistoryEntryDto, wn as mapScheduledTaskDtoToFormValues, ti as mapSearchItem, Me as mapSkillToCatalogItem, $t as mapStages, ee as mapToolsetCredentials, re as mapToolsetToCatalogItem, ni as mergeCreatedFolderIntoCache, pr as mergeStages, Yt as messageHasStages, v as mimeTypesToAttachmentExtensionLabels, y as mimeTypesToDialFileAcceptTypes, b as mimeTypesToFileAccept, ye as nameFromPath, Ct as navigateToolsetOAuthPopup, Xt as normalizeResponseFormat, be as normalizeSkillName, Vr as normalizeVirtualPath, oi as openAnnotationAttachment, wt as openToolsetOAuthPopup, Z as padTwoDigits, Ji as parseExternalServiceUrl, Gi as parseFeaturesData, Hr as parseNewFolderVirtualPath, oe as parsePromptResourceUrl, xe as parseSkillManifest, nt as parseSkillManifestDocument, ke as parseSkillResourceUrl, qr as prepareCopyItems, Mi as prepareDownloadDestination, Jr as prepareMoveRenameItems, Ne as readSkillFileBytes, Pe as readSkillFilePreviewBytes, Fe as readSkillManifest, Qe as reconcileFilterTopics, di as referenceAttachmentToPdfCanvasContent, et as resolveCatalogPrimaryAction, fi as resolveCodeCanvasContent, ie as resolveDeploymentFolder, Gr as resolveDialFileApiPath, f as resolveDialFileBucketAndPath, wi as resolveExternalSourceContentType, pi as resolveGroupedVisualizerCanvasContent, mi as resolveHtmlCanvasContent, hi as resolveImageCanvasContent, gi as resolveJsonCanvasContent, J as resolveLocalizedText, _i as resolveMarkdownCanvasContent, He as resolveMcpResourceKind, vi as resolveOoxmlCanvasContent, Ur as resolveOwnerCoords, yi as resolvePdfCanvasContent, p as resolveRelativeDialFilePath, Ie as resolveSkillFileDownloadPath, Le as resolveSkillManifestFileId, bi as resolveTextCanvasContent, xi as resolveVisualizerCanvasContent, s as safeDecodeURI, c as safeDecodeURIComponent, Ft as sanitizeAnnouncementHtml, It as sanitizeAnnouncementMessageHtml, Un as sanitizeFileName, Ht as sanitizeFooterHtml, sn as serializePromptExport, ir as shouldRerunGenerationOnEdit, Bt as shouldWatchForDisplayNameUpdate, Se as skillFileBytesToBlob, En as skillFileToAttachment, Wn as splitFileNameExtension, l as stripSurroundingSlashes, u as stripTrailingSlashes, _t as subscribeToolsetLoginSuccess, Y as toBaseLocale, Zt as toOverlayMessages, qe as toPublishEntityType, M as toPublishRuleDto, en as toStage, Gn as trimFileNameToByteLimit, Ce as unpackSkillArchive, ri as updateEntry, Ln as useActiveConversationSync, Rn as useAsyncConfirmDialog, g as useAttachmentAction, Kn as useAttachmentUpload, S as useAttachmentValidation, tt as useCatalogEditNavigation, it as useCatalogItemDetails, Dt as useCatalogToolsetCredentials, Yi as useChatSettingsFormConfig, Zn as useConversationExport, lr as useConversationHandlers, ur as useConversationImport, zn as useConversationLookupMaps, Vn as useConversationPanelItems, dr as useConversationScroll, gr as useConversationSources, hr as useConversationStream, Ni as useDialFileListing, Ri as useDialFileManager, zi as useDialFileManagerTabConfig, Pi as useDialFileMetadata, Fi as useDialFileMutations, Ii as useDialFileSharing, Li as useDialFileUploadBatch, At as useFavoriteEntitiesState, ca as useGridEditingScroll, Hn as useImportFilePicker, oa as useMcpAppHostAdapter, aa as useMcpAppHostContext, ia as useMcpAppTools, rn as useOAuthCallbackCompletion, sa as useOpenMcpAppCanvas, Xi as usePageFileDrag, Qi as usePanelMaxWidth, vn as usePromptsState, jt as usePublishFolders, $i as useShareLink, Fn as useShareRecipientsCount, Ot as useSkillDetailsPanelData, On as useSkillEditorLoad, kn as useSkillEditorSubmit, An as useSkillFileActions, Mn as useSkillFilePreview, rt as useSkillItemDetails, Nn as useSkillsState, ea as useToolsMenu, Et as useToolsetLogin, Yn as useTranscribeAudio, ta as useUsageData, Zi as useViewportWidth, hn as validatePromptContent, gn as validatePromptDescription, _n as validatePromptName, Tn as validateSkillFileBatch, Kr as virtualPathToApiPath, yt 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.58",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"dependencies": {
|
|
109
|
-
"@epam/ai-dial-chat-api-client": "1.2.0-dev.
|
|
109
|
+
"@epam/ai-dial-chat-api-client": "1.2.0-dev.58",
|
|
110
110
|
"dompurify": "3.4.15",
|
|
111
111
|
"fflate": "^0.8.3",
|
|
112
112
|
"lru-cache": "^10.4.3",
|
|
@@ -115,21 +115,21 @@
|
|
|
115
115
|
},
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"react": "^19.2.8",
|
|
118
|
-
"@epam/ai-dial-attachment-canvas": "1.2.0-dev.
|
|
119
|
-
"@epam/ai-dial-attachment-input": "1.2.0-dev.
|
|
120
|
-
"@epam/ai-dial-builder-form": "1.2.0-dev.
|
|
121
|
-
"@epam/ai-dial-catalog": "1.2.0-dev.
|
|
122
|
-
"@epam/ai-dial-chat-overlay": "1.2.0-dev.
|
|
123
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
124
|
-
"@epam/ai-dial-mcp-apps": "1.2.0-dev.
|
|
125
|
-
"@epam/ai-dial-publish-panel": "1.2.0-dev.
|
|
126
|
-
"@epam/ai-dial-quotations": "1.2.0-dev.
|
|
118
|
+
"@epam/ai-dial-attachment-canvas": "1.2.0-dev.58",
|
|
119
|
+
"@epam/ai-dial-attachment-input": "1.2.0-dev.58",
|
|
120
|
+
"@epam/ai-dial-builder-form": "1.2.0-dev.58",
|
|
121
|
+
"@epam/ai-dial-catalog": "1.2.0-dev.58",
|
|
122
|
+
"@epam/ai-dial-chat-overlay": "1.2.0-dev.58",
|
|
123
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.58",
|
|
124
|
+
"@epam/ai-dial-mcp-apps": "1.2.0-dev.58",
|
|
125
|
+
"@epam/ai-dial-publish-panel": "1.2.0-dev.58",
|
|
126
|
+
"@epam/ai-dial-quotations": "1.2.0-dev.58",
|
|
127
127
|
"@epam/ai-dial-react-file-manager": "^0.3.0-dev.2",
|
|
128
|
-
"@epam/ai-dial-scheduled-tasks": "1.2.0-dev.
|
|
129
|
-
"@epam/ai-dial-share": "1.2.0-dev.
|
|
130
|
-
"@epam/ai-dial-skill-editor": "1.2.0-dev.
|
|
131
|
-
"@epam/ai-dial-source-panel": "1.2.0-dev.
|
|
132
|
-
"@epam/ai-dial-ui-kit": "^0.15.0-dev.
|
|
128
|
+
"@epam/ai-dial-scheduled-tasks": "1.2.0-dev.58",
|
|
129
|
+
"@epam/ai-dial-share": "1.2.0-dev.58",
|
|
130
|
+
"@epam/ai-dial-skill-editor": "1.2.0-dev.58",
|
|
131
|
+
"@epam/ai-dial-source-panel": "1.2.0-dev.58",
|
|
132
|
+
"@epam/ai-dial-ui-kit": "^0.15.0-dev.9",
|
|
133
133
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
134
134
|
"@epam/pdf-highlighter-kit": "^0.0.19",
|
|
135
135
|
"@mcp-ui/client": "^7.1.1"
|