@epam/ai-dial-chat-hooks 1.2.0-dev.15 → 1.2.0-dev.152
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/api-error/api-error.js +5 -4
- package/attachment/useAttachmentValidation/useAttachmentValidation.js +26 -19
- package/attachments.d.ts +10 -4
- package/catalog/map-deployment-limits-to-input.js +81 -9
- package/catalog/map-deployment-to-catalog-item.js +2 -2
- package/catalog/map-skill-to-catalog-item.js +30 -27
- package/catalog/publish.js +2 -1
- package/catalog/useApplicationCredentials/useApplicationCredentials.js +39 -0
- package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.js +39 -39
- package/catalog/useSkillItemDetails.js +17 -13
- package/catalog.d.ts +86 -19
- package/catalog.js +6 -5
- package/conversation/conversation-transfer/queue.js +8 -5
- package/conversation/create-chat-stream-api.js +30 -21
- package/conversation/stage.js +23 -0
- package/conversation/useAttachmentUpload/useAttachmentUpload.js +12 -5
- package/conversation/useConversationImport/useConversationImport.js +1 -1
- package/conversation/useConversationPanelItems/useConversationPanelItems.js +2 -3
- package/conversation/useConversationScroll/useConversationScroll.js +68 -64
- package/conversation/useConversationStream/apply-chunk.js +1 -1
- package/conversation/useConversationStream/generation-resume.js +75 -63
- package/conversation/useConversationStream/useConversationStream.js +145 -102
- package/conversation-overlay.d.ts +7 -0
- package/conversation-overlay.js +2 -0
- package/conversation-sources/useConversationSources/useConversationSources.js +31 -24
- package/conversation-sources.d.ts +1 -1
- package/conversation.d.ts +147 -15
- package/conversation.js +31 -30
- package/file-manager-canvas.d.ts +398 -0
- package/file-manager-canvas.js +2 -0
- package/file-manager.d.ts +71 -330
- package/file-manager.js +15 -15
- package/files/attachment-canvas.js +51 -13
- package/files/attachment-types.js +14 -13
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +1 -5
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.js +43 -0
- package/index.d.ts +784 -57
- package/index.js +123 -111
- package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.js +7 -5
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js +1 -1
- package/mcp-apps/useMcpAppTools/useMcpAppTools.js +1 -1
- package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.js +25 -23
- package/mcp-apps.d.ts +8 -6
- package/package.json +37 -18
- package/scheduled-task/scheduled-task-description.js +77 -0
- package/scheduled-task/scheduled-task-preparation.js +24 -0
- package/scheduled-task/scheduled-task-trigger.js +7 -2
- package/scheduled-task/scheduled-tasks-api-client.js +19 -0
- package/scheduled-task/use-scheduled-task-runs.js +82 -0
- package/scheduled-task/use-scheduled-tasks.js +93 -0
- package/scheduled-tasks.d.ts +180 -3
- package/scheduled-tasks.js +7 -2
- package/skill/skill.js +10 -7
- package/skill/useSkillArchiveImport/useSkillArchiveImport.js +75 -0
- package/skill/useSkillEditorLoad.js +29 -28
- package/skill/useSkillEditorSubmit.js +93 -75
- package/skill-editor.d.ts +110 -1
- package/skill-editor.js +9 -8
- package/usage/map-usage-data-to-dashboard.js +66 -0
- package/usage/map-user-usage-to-model-limits.js +160 -0
- package/usage.d.ts +120 -0
- package/usage.js +3 -0
- package/utils.d.ts +3 -1
package/conversation.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ import { Message } from '@epam/ai-dial-chat-shared';
|
|
|
15
15
|
import { MessageCustomContent } from '@epam/ai-dial-chat-shared';
|
|
16
16
|
import { MessageRating } from '@epam/ai-dial-chat-shared';
|
|
17
17
|
import { MutableRefObject } from 'react';
|
|
18
|
-
import { OverlayChatMessage } from '@epam/ai-dial-chat-overlay';
|
|
19
18
|
import { PublishHistoryEntry } from '@epam/ai-dial-publish-panel';
|
|
20
19
|
import { RateApi } from '@epam/ai-dial-chat-api-client';
|
|
21
20
|
import { ReactNode } from 'react';
|
|
@@ -24,6 +23,7 @@ import { RequestSkill } from '@epam/ai-dial-chat-shared';
|
|
|
24
23
|
import { ResponseFormat } from '@epam/ai-dial-chat-shared';
|
|
25
24
|
import { SendCompletionDtoModeEnum } from '@epam/ai-dial-chat-api-client';
|
|
26
25
|
import { SetStateAction } from 'react';
|
|
26
|
+
import { Stage } from '@epam/ai-dial-chat-shared';
|
|
27
27
|
import { StarterOption } from '@epam/ai-dial-chat-shared';
|
|
28
28
|
import { StatusMessage } from '@epam/ai-dial-chat-shared';
|
|
29
29
|
import { StreamChunk } from '@epam/ai-dial-chat-shared';
|
|
@@ -58,6 +58,25 @@ export declare interface AnnouncementListItemLink {
|
|
|
58
58
|
href: string;
|
|
59
59
|
}
|
|
60
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
|
+
|
|
61
80
|
/** State and controls returned by `useAsyncConfirmDialog`. */
|
|
62
81
|
export declare interface AsyncConfirmDialogControls<T> {
|
|
63
82
|
/**
|
|
@@ -342,6 +361,9 @@ export declare const createMessagePair: (content: string, customContent?: Messag
|
|
|
342
361
|
/** Fallback text of a {@link GenerationConflictError} when no message is supplied. */
|
|
343
362
|
export declare const DEFAULT_GENERATION_CONFLICT_MESSAGE = "A response is already being generated in this conversation. Wait for it to finish or stop it before sending another message.";
|
|
344
363
|
|
|
364
|
+
/** Safe fallback for hosts that do not supply a translated persistence warning. */
|
|
365
|
+
export declare const DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE = "The response could not be saved. It is still shown here, but may be lost if you reload or leave this page. Copy it before continuing.";
|
|
366
|
+
|
|
345
367
|
/**
|
|
346
368
|
* Derives the row-action visibility state for a single conversation item.
|
|
347
369
|
*
|
|
@@ -376,6 +398,12 @@ export declare class GenerationConflictError extends Error {
|
|
|
376
398
|
constructor(message?: string);
|
|
377
399
|
}
|
|
378
400
|
|
|
401
|
+
/** Identifies a failed terminal save independently of the model's generation outcome. */
|
|
402
|
+
export declare class GenerationPersistenceError extends Error {
|
|
403
|
+
static readonly type = "conversation_save_failed";
|
|
404
|
+
constructor();
|
|
405
|
+
}
|
|
406
|
+
|
|
379
407
|
/**
|
|
380
408
|
* Strips the leading bucket segment from a conversation id and decodes any
|
|
381
409
|
* already-percent-encoded remainder back to raw, so callers that re-encode
|
|
@@ -530,8 +558,8 @@ export declare const isAnswerIncomplete: (answer: Message | undefined) => boolea
|
|
|
530
558
|
* True when the conversation's last message is an unresolved assistant
|
|
531
559
|
* placeholder: the backend only persists a conversation at generation start
|
|
532
560
|
* (empty placeholder) and at generation end (final content, or a partial
|
|
533
|
-
* flagged `streamErrorMessage`/`wasStoppedByUser`)
|
|
534
|
-
*
|
|
561
|
+
* flagged `streamErrorMessage`/`wasStoppedByUser`). This can mean generation
|
|
562
|
+
* is still active elsewhere, or that its terminal save failed.
|
|
535
563
|
*/
|
|
536
564
|
export declare const isAwaitingGenerationResume: (conversation: Conversation) => boolean;
|
|
537
565
|
|
|
@@ -573,6 +601,29 @@ declare interface LocalModeValues {
|
|
|
573
601
|
temperature: number;
|
|
574
602
|
}
|
|
575
603
|
|
|
604
|
+
/**
|
|
605
|
+
* Returns the normalized stages of a raw stage array or a message-like
|
|
606
|
+
* payload (reading `custom_content.stages`, falling back to
|
|
607
|
+
* `customContent.stages`), or `undefined` when there are none.
|
|
608
|
+
*/
|
|
609
|
+
export declare const mapStages: (source: RawStage[] | RawStageSource | null | undefined) => Stage[] | undefined;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Merges incoming stage deltas into an existing stage list, keyed by `index`.
|
|
613
|
+
*
|
|
614
|
+
* Partial `name` and `content` strings are concatenated across chunks;
|
|
615
|
+
* attachments are merged by their own `index` (concatenating partial `title`
|
|
616
|
+
* and `data`); every other field on the incoming delta overwrites the
|
|
617
|
+
* accumulated one. A brand-new stage whose first chunk carries `name: null`
|
|
618
|
+
* is normalized to `''`.
|
|
619
|
+
*
|
|
620
|
+
* Exported for hosts that keep a flattened `Stage[]` on the message instead
|
|
621
|
+
* of `Message.custom_content.stages` and therefore cannot reuse
|
|
622
|
+
* {@link applyChunkToMessages}. Prefer `useConversationStream` when the host
|
|
623
|
+
* can delegate the whole stream loop.
|
|
624
|
+
*/
|
|
625
|
+
export declare const mergeStages: (existing: Stage[], incoming: Stage[]) => Stage[];
|
|
626
|
+
|
|
576
627
|
/** True when `message` is an assistant message carrying at least one stage. */
|
|
577
628
|
export declare const messageHasStages: (message: Message) => boolean;
|
|
578
629
|
|
|
@@ -606,6 +657,63 @@ export declare interface QuickAppConversationStartersSettings {
|
|
|
606
657
|
isChatMessageInputDisabled: boolean;
|
|
607
658
|
}
|
|
608
659
|
|
|
660
|
+
/**
|
|
661
|
+
* One stage as it arrives from the REST API or the SSE stream, before
|
|
662
|
+
* normalization. Structurally satisfied by the generated `StageDto` and by a
|
|
663
|
+
* raw stream delta, both of which omit `index`/`name`/`status` on the chunk
|
|
664
|
+
* that opens a stage.
|
|
665
|
+
*/
|
|
666
|
+
export declare interface RawStage {
|
|
667
|
+
/** Ordering key. Defaults to `0` when absent. */
|
|
668
|
+
index?: number | null;
|
|
669
|
+
/** Stage title. `null` on the chunk that opens the stage. */
|
|
670
|
+
name?: string | null;
|
|
671
|
+
/** Terminal state as a raw wire string; anything other than `'completed'`/`'failed'` means still running. */
|
|
672
|
+
status?: string | null;
|
|
673
|
+
/** Additional stage text. */
|
|
674
|
+
content?: string | null;
|
|
675
|
+
/** Short source/category label shown beside the stage name. */
|
|
676
|
+
tag?: string | null;
|
|
677
|
+
/** Files produced or referenced by this stage. */
|
|
678
|
+
attachments?: RawStageAttachment[] | null;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* One stage attachment as it arrives from the REST API or the SSE stream,
|
|
683
|
+
* before normalization: every field is optional and may be `null`.
|
|
684
|
+
*/
|
|
685
|
+
export declare interface RawStageAttachment {
|
|
686
|
+
/** Zero-based position in the attachment list. */
|
|
687
|
+
index?: number | null;
|
|
688
|
+
/** MIME type of the attachment content. */
|
|
689
|
+
type?: string | null;
|
|
690
|
+
/** Display name shown in the UI. */
|
|
691
|
+
title?: string | null;
|
|
692
|
+
/** Inline base-64 encoded content. */
|
|
693
|
+
data?: string | null;
|
|
694
|
+
/** Remote URL pointing to the attachment content. */
|
|
695
|
+
url?: string | null;
|
|
696
|
+
/** MIME type of the referenced resource. */
|
|
697
|
+
reference_type?: string | null;
|
|
698
|
+
/** URL of an alternate reference resource. */
|
|
699
|
+
reference_url?: string | null;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Message-like payload carrying stages under either the wire's snake_case
|
|
704
|
+
* `custom_content` or a host's camelCased `customContent`.
|
|
705
|
+
*/
|
|
706
|
+
export declare interface RawStageSource {
|
|
707
|
+
/** Custom content as the DIAL wire format spells it. */
|
|
708
|
+
custom_content?: {
|
|
709
|
+
stages?: RawStage[] | null;
|
|
710
|
+
} | null;
|
|
711
|
+
/** Custom content as a camelCasing host spells it. */
|
|
712
|
+
customContent?: {
|
|
713
|
+
stages?: RawStage[] | null;
|
|
714
|
+
} | null;
|
|
715
|
+
}
|
|
716
|
+
|
|
609
717
|
/** State of one resource's recipient-count lookup. */
|
|
610
718
|
declare interface RecipientsCountEntry {
|
|
611
719
|
/** Where the lookup for this resource currently stands. */
|
|
@@ -662,8 +770,23 @@ export declare interface StreamCompletionOptions {
|
|
|
662
770
|
signal: AbortSignal;
|
|
663
771
|
}
|
|
664
772
|
|
|
665
|
-
/**
|
|
666
|
-
|
|
773
|
+
/**
|
|
774
|
+
* Reported through `onError` when DIAL Core itself signals a failure with an
|
|
775
|
+
* in-band `{ error: { message } }` SSE chunk. Its `message` is upstream text
|
|
776
|
+
* intended for the user, unlike a transport failure (failed `fetch`, non-OK
|
|
777
|
+
* status, broken stream), whose message is technical detail. A custom
|
|
778
|
+
* transport raises this for any user-facing upstream error text.
|
|
779
|
+
*/
|
|
780
|
+
export declare class StreamUpstreamError extends Error {
|
|
781
|
+
constructor(message: string);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Returns a renderable `Stage` for one raw payload: `index` defaults to `0`,
|
|
786
|
+
* `name` to `''`, an unrecognized `status` to `null` (still running), and
|
|
787
|
+
* `content`/`tag`/`attachments` are passed through when present.
|
|
788
|
+
*/
|
|
789
|
+
export declare const toStage: (stage: RawStage) => Stage;
|
|
667
790
|
|
|
668
791
|
/** Request shape the host's selected-deployment recognition call accepts. */
|
|
669
792
|
export declare interface TranscribeWithDeploymentParams {
|
|
@@ -728,8 +851,8 @@ export declare const useAttachmentUpload: ({ filesApi, bucket, onNetworkError, d
|
|
|
728
851
|
|
|
729
852
|
/** Parameters for {@link useAttachmentUpload}. */
|
|
730
853
|
export declare interface UseAttachmentUploadParams {
|
|
731
|
-
/** Already-configured
|
|
732
|
-
filesApi: Pick<FilesApi, 'uploadFile'
|
|
854
|
+
/** Already-configured client; optional listing skips stored names after a conflict. */
|
|
855
|
+
filesApi: Pick<FilesApi, 'uploadFile'> & Partial<Pick<FilesApi, 'listFiles'>>;
|
|
733
856
|
/** DIAL Core bucket the file is uploaded into. */
|
|
734
857
|
bucket: string | undefined;
|
|
735
858
|
/** Called with batched filenames after a burst of network-error upload failures. */
|
|
@@ -883,9 +1006,8 @@ export declare interface UseConversationLookupMapsParams {
|
|
|
883
1006
|
* panel's item contract. All app-specific concerns (icon URL resolution,
|
|
884
1007
|
* route generation, id normalisation) are injected via resolver callbacks.
|
|
885
1008
|
*/
|
|
886
|
-
export declare const useConversationPanelItems: ({ items, deployments, isDeploymentsLoading, toPanelConversationId, resolveIconUrl, resolveIconTooltip, resolveHref,
|
|
887
|
-
|
|
888
|
-
taskBadgeLabel?: string | undefined;
|
|
1009
|
+
export declare const useConversationPanelItems: ({ items, deployments, isDeploymentsLoading, toPanelConversationId, resolveIconUrl, resolveIconTooltip, resolveHref, resolveTaskPresentation, }: UseConversationPanelItemsParams) => {
|
|
1010
|
+
leadingIcon?: ReactNode;
|
|
889
1011
|
isUnread?: boolean | undefined;
|
|
890
1012
|
id: string;
|
|
891
1013
|
title: string;
|
|
@@ -921,11 +1043,12 @@ export declare interface UseConversationPanelItemsResolvers {
|
|
|
921
1043
|
/** Resolves the href to navigate to when the conversation row is clicked. */
|
|
922
1044
|
resolveHref: (panelConversationId: string) => string;
|
|
923
1045
|
/**
|
|
924
|
-
* Returns
|
|
925
|
-
*
|
|
1046
|
+
* Returns the row presentation for a scheduled-task conversation — a
|
|
1047
|
+
* host-rendered leading icon that replaces the deployment avatar, and the
|
|
1048
|
+
* unread flag — or `undefined` for an ordinary conversation.
|
|
926
1049
|
*/
|
|
927
|
-
|
|
928
|
-
|
|
1050
|
+
resolveTaskPresentation?: (item: ConversationListItemDto) => {
|
|
1051
|
+
leadingIcon?: ReactNode;
|
|
929
1052
|
isUnread: boolean;
|
|
930
1053
|
} | undefined;
|
|
931
1054
|
}
|
|
@@ -938,7 +1061,7 @@ export declare interface UseConversationPanelItemsResolvers {
|
|
|
938
1061
|
* `transport`/`generation`/`channel`/`overlay` capabilities rather than any
|
|
939
1062
|
* app context or `server-api` import.
|
|
940
1063
|
*/
|
|
941
|
-
export declare const useConversationStream: ({ conversationId, state: { setConversation, conversationRef }, transport, generation: { startGeneration, completeGeneration }, channel, overlay, onStopError, generationConflictMessage, }: UseConversationStreamParams) => UseConversationStreamResult;
|
|
1064
|
+
export declare const useConversationStream: ({ conversationId, state: { setConversation, conversationRef }, transport, generation: { startGeneration, completeGeneration }, channel, overlay, onStopError, generationConflictMessage, generationPersistenceErrorMessage, onStreamError, }: UseConversationStreamParams) => UseConversationStreamResult;
|
|
942
1065
|
|
|
943
1066
|
/** Parameters for {@link useConversationStream}. */
|
|
944
1067
|
export declare interface UseConversationStreamParams {
|
|
@@ -956,6 +1079,15 @@ export declare interface UseConversationStreamParams {
|
|
|
956
1079
|
* {@link DEFAULT_GENERATION_CONFLICT_MESSAGE}.
|
|
957
1080
|
*/
|
|
958
1081
|
generationConflictMessage?: string;
|
|
1082
|
+
/** Host-translated warning shown when the received answer could not be saved. */
|
|
1083
|
+
generationPersistenceErrorMessage?: string;
|
|
1084
|
+
/**
|
|
1085
|
+
* Receives the original error of every failed stream. The hook shows only
|
|
1086
|
+
* host-supplied or upstream-supplied text on the message bubble and hides
|
|
1087
|
+
* transport detail (e.g. `Failed to fetch`), so this is where the host can
|
|
1088
|
+
* still log or report the raw error.
|
|
1089
|
+
*/
|
|
1090
|
+
onStreamError?: (error: Error) => void;
|
|
959
1091
|
}
|
|
960
1092
|
|
|
961
1093
|
/** Return value of {@link useConversationStream}. */
|
package/conversation.js
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { buildAnnouncementSignature as e, hasAnnouncementContent as t, hasStructuredAnnouncement as n, sanitizeAnnouncementHtml as r, sanitizeAnnouncementMessageHtml as i } from "./conversation/announcement-message.js";
|
|
2
|
-
import { DEFAULT_GENERATION_CONFLICT_MESSAGE as a,
|
|
3
|
-
import { shouldWatchForDisplayNameUpdate as
|
|
4
|
-
import { formatAppVersion as
|
|
5
|
-
import { getModelIdFromConversationId as
|
|
6
|
-
import { getTimeOfDayGreeting as
|
|
7
|
-
import { createDeploymentChangedMessage as
|
|
8
|
-
import { getLastDeploymentId as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
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 { useAttachmentUpload as
|
|
19
|
-
import { AudioTranscriptionError as
|
|
20
|
-
import { useTranscribeAudio as
|
|
21
|
-
import { attachmentToDto as
|
|
22
|
-
import { createMessagePair as
|
|
23
|
-
import { hasActiveToolConfig as
|
|
24
|
-
import { getStarterConversationText as
|
|
25
|
-
import { getConversationPath as
|
|
26
|
-
import { useConversationHandlers as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
|
|
2
|
+
import { DEFAULT_GENERATION_CONFLICT_MESSAGE as a, DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE as o, GenerationConflictError as s, GenerationPersistenceError as c, StreamUpstreamError as l, createChatStreamApi as u } from "./conversation/create-chat-stream-api.js";
|
|
3
|
+
import { shouldWatchForDisplayNameUpdate as d } from "./conversation/display-name-watch.js";
|
|
4
|
+
import { formatAppVersion as f, sanitizeFooterHtml as p } from "./conversation/footer-message.js";
|
|
5
|
+
import { getModelIdFromConversationId as m } from "./conversation/get-model-id-from-conversation-id.js";
|
|
6
|
+
import { getTimeOfDayGreeting as h } from "./conversation/greeting.js";
|
|
7
|
+
import { createDeploymentChangedMessage as g } from "./conversation/message-factory.js";
|
|
8
|
+
import { getLastDeploymentId as _, getLastUserMessageToolConfiguration as v, isMessageStreaming as y, messageHasStages as b, normalizeResponseFormat as x } from "./conversation/message-utils.js";
|
|
9
|
+
import { getQuickAppConversationStarters as S } from "./conversation/quick-app-conversation-starters.js";
|
|
10
|
+
import { mapStages as C, toStage as w } from "./conversation/stage.js";
|
|
11
|
+
import { getStarterPopulateText as T, getStartersFromSchema as E } from "./conversation/starter-option.js";
|
|
12
|
+
import { deriveConversationRowActionState as D } from "./conversation/deriveConversationRowActionState/deriveConversationRowActionState.js";
|
|
13
|
+
import { useActiveConversationSync as O } from "./conversation/useActiveConversationSync/useActiveConversationSync.js";
|
|
14
|
+
import { useAsyncConfirmDialog as k } from "./conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.js";
|
|
15
|
+
import { useConversationLookupMaps as A } from "./conversation/useConversationLookupMaps/useConversationLookupMaps.js";
|
|
16
|
+
import { getConversationSource as j, useConversationPanelItems as M } from "./conversation/useConversationPanelItems/useConversationPanelItems.js";
|
|
17
|
+
import { useImportFilePicker as N } from "./conversation/useImportFilePicker/useImportFilePicker.js";
|
|
18
|
+
import { useAttachmentUpload as P } from "./conversation/useAttachmentUpload/useAttachmentUpload.js";
|
|
19
|
+
import { AudioTranscriptionError as F, AudioTranscriptionErrorReason as I } from "./conversation/useTranscribeAudio/audio-transcription-error.js";
|
|
20
|
+
import { useTranscribeAudio as L } from "./conversation/useTranscribeAudio/useTranscribeAudio.js";
|
|
21
|
+
import { attachmentToDto as R, attachmentsToDtos as z } from "./conversation/useConversationHandlers/attachment-to-dto.js";
|
|
22
|
+
import { createMessagePair as B } from "./conversation/useConversationHandlers/message-factory.js";
|
|
23
|
+
import { hasActiveToolConfig as V, isAnswerIncomplete as H, isMessageChanged as U, shouldRerunGenerationOnEdit as W } from "./conversation/useConversationHandlers/message-utils.js";
|
|
24
|
+
import { getStarterConversationText as G, getStarterDisplayText as K, getStarterSubmitText as q } from "./conversation/useConversationHandlers/starter-option.js";
|
|
25
|
+
import { getConversationPath as J } from "./conversation/useConversationStream/conversation-path.js";
|
|
26
|
+
import { useConversationHandlers as Y } from "./conversation/useConversationHandlers/useConversationHandlers.js";
|
|
27
|
+
import { applyChunkToMessages as X, mergeStages as Z } from "./conversation/useConversationStream/apply-chunk.js";
|
|
28
|
+
import { isAwaitingGenerationResume as Q } from "./conversation/useConversationStream/generation-resume.js";
|
|
29
|
+
import { useConversationStream as $ } from "./conversation/useConversationStream/useConversationStream.js";
|
|
30
|
+
import { useChatSettingsFormConfig as ee } from "./useChatSettingsFormConfig/useChatSettingsFormConfig.js";
|
|
31
|
+
import { useToolsMenu as te } from "./useToolsMenu/useToolsMenu.js";
|
|
32
|
+
export { F as AudioTranscriptionError, I as AudioTranscriptionErrorReason, a as DEFAULT_GENERATION_CONFLICT_MESSAGE, o as DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE, s as GenerationConflictError, c as GenerationPersistenceError, l as StreamUpstreamError, X as applyChunkToMessages, R as attachmentToDto, z as attachmentsToDtos, e as buildAnnouncementSignature, u as createChatStreamApi, g as createDeploymentChangedMessage, B as createMessagePair, D as deriveConversationRowActionState, f as formatAppVersion, J as getConversationPath, j as getConversationSource, _ as getLastDeploymentId, v as getLastUserMessageToolConfiguration, m as getModelIdFromConversationId, S as getQuickAppConversationStarters, G as getStarterConversationText, K as getStarterDisplayText, T as getStarterPopulateText, q as getStarterSubmitText, E as getStartersFromSchema, h as getTimeOfDayGreeting, V as hasActiveToolConfig, t as hasAnnouncementContent, n as hasStructuredAnnouncement, H as isAnswerIncomplete, Q as isAwaitingGenerationResume, U as isMessageChanged, y as isMessageStreaming, C as mapStages, Z as mergeStages, b as messageHasStages, x as normalizeResponseFormat, r as sanitizeAnnouncementHtml, i as sanitizeAnnouncementMessageHtml, p as sanitizeFooterHtml, W as shouldRerunGenerationOnEdit, d as shouldWatchForDisplayNameUpdate, w as toStage, O as useActiveConversationSync, k as useAsyncConfirmDialog, P as useAttachmentUpload, ee as useChatSettingsFormConfig, Y as useConversationHandlers, A as useConversationLookupMaps, M as useConversationPanelItems, $ as useConversationStream, N as useImportFilePicker, te as useToolsMenu, L as useTranscribeAudio };
|