@epam/ai-dial-chat-hooks 1.3.0-dev.245 → 1.3.0-dev.248
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/scheduled-task-grouping.d.ts +48 -0
- package/conversation/scheduled-task-grouping.d.ts.map +1 -0
- package/conversation/scheduled-task-grouping.js +40 -0
- package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts +22 -0
- package/conversation/useConversationDiscovery/useConversationDiscovery.d.ts.map +1 -0
- package/conversation/useConversationDiscovery/useConversationDiscovery.js +60 -0
- package/conversation/useEntityPreselection/useEntityPreselection.d.ts +108 -0
- package/conversation/useEntityPreselection/useEntityPreselection.d.ts.map +1 -0
- package/conversation/useEntityPreselection/useEntityPreselection.js +78 -0
- package/conversation.js +4 -1
- package/entry-points/conversation.d.ts +3 -0
- package/entry-points/conversation.d.ts.map +1 -1
- package/entry-points/file-manager-canvas.d.ts +1 -0
- package/entry-points/file-manager-canvas.d.ts.map +1 -1
- package/entry-points/file-manager.d.ts +1 -0
- package/entry-points/file-manager.d.ts.map +1 -1
- package/entry-points/scheduled-tasks.d.ts +1 -0
- package/entry-points/scheduled-tasks.d.ts.map +1 -1
- package/entry-points/skill-editor.d.ts +1 -0
- package/entry-points/skill-editor.d.ts.map +1 -1
- package/entry-points/utils.d.ts +2 -0
- package/entry-points/utils.d.ts.map +1 -1
- package/entry-points/viewport-layout.d.ts +1 -0
- package/entry-points/viewport-layout.d.ts.map +1 -1
- package/file-manager-canvas.js +3 -1
- package/file-manager.js +3 -2
- package/files/browser-download.d.ts +9 -0
- package/files/browser-download.d.ts.map +1 -0
- package/files/browser-download.js +23 -0
- package/files/useDialFilePreview/useDialFilePreview.d.ts +33 -0
- package/files/useDialFilePreview/useDialFilePreview.d.ts.map +1 -0
- package/files/useDialFilePreview/useDialFilePreview.js +45 -0
- package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts +25 -0
- package/files/useFileAttachmentModalState/useFileAttachmentModalState.d.ts.map +1 -0
- package/files/useFileAttachmentModalState/useFileAttachmentModalState.js +19 -0
- package/index.d.ts +10 -0
- package/index.d.ts.map +1 -1
- package/index.js +13 -3
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts +3 -2
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.d.ts.map +1 -1
- package/package.json +18 -22
- package/scheduled-task/scheduled-task-preparation.d.ts +1 -1
- package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts +17 -0
- package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts.map +1 -0
- package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.js +29 -0
- package/scheduled-tasks.js +2 -1
- package/shared/usePersistedState/usePersistedState.d.ts +28 -0
- package/shared/usePersistedState/usePersistedState.d.ts.map +1 -0
- package/shared/usePersistedState/usePersistedState.js +24 -0
- package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts +23 -0
- package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.d.ts.map +1 -0
- package/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.js +43 -0
- package/skill-editor.js +2 -1
- package/utils.js +3 -1
- package/viewport-layout/canvas-width.d.ts +39 -0
- package/viewport-layout/canvas-width.d.ts.map +1 -0
- package/viewport-layout/canvas-width.js +23 -0
- package/viewport-layout.js +2 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { findDialFileByPath as e } from "../dial-file-manager-path.util.js";
|
|
2
|
+
import { dialFileToAttachment as t } from "../dial-file-to-attachment.js";
|
|
3
|
+
import { useCallback as n, useEffect as r, useRef as i } from "react";
|
|
4
|
+
import { DialFileNodeType as a } from "@epam/ai-dial-ui-kit";
|
|
5
|
+
//#region src/files/useDialFilePreview/useDialFilePreview.ts
|
|
6
|
+
var o = ({ items: o, searchResults: s = null, bucket: c, previewExtensions: l, startRequest: u, openAttachment: d, openUnsupported: f, resolveUrl: p }) => {
|
|
7
|
+
let m = i({
|
|
8
|
+
items: o,
|
|
9
|
+
searchResults: s
|
|
10
|
+
}), h = i(void 0);
|
|
11
|
+
r(() => {
|
|
12
|
+
m.current = {
|
|
13
|
+
items: o,
|
|
14
|
+
searchResults: s
|
|
15
|
+
};
|
|
16
|
+
}, [o, s]), r(() => (h.current = {}, () => {
|
|
17
|
+
h.current = void 0;
|
|
18
|
+
}), []);
|
|
19
|
+
let g = n((n) => {
|
|
20
|
+
if (n == null) return;
|
|
21
|
+
let r = e(m.current.items, n) ?? e(m.current.searchResults ?? [], n);
|
|
22
|
+
if (r?.nodeType !== a.ITEM) return;
|
|
23
|
+
let i = h.current, o = u(), s = () => i !== void 0 && h.current === i && o(), l = t(r, c);
|
|
24
|
+
l ? (async () => {
|
|
25
|
+
let e = !1;
|
|
26
|
+
try {
|
|
27
|
+
e = await d(l, s);
|
|
28
|
+
} catch {}
|
|
29
|
+
!e && s() && f(l.name, l.id, p(l));
|
|
30
|
+
})() : s() && f(r.name, r.path);
|
|
31
|
+
}, [
|
|
32
|
+
c,
|
|
33
|
+
u,
|
|
34
|
+
d,
|
|
35
|
+
f,
|
|
36
|
+
p
|
|
37
|
+
]);
|
|
38
|
+
return {
|
|
39
|
+
onPreview: g,
|
|
40
|
+
onFileClick: n((e) => g(e.path), [g]),
|
|
41
|
+
previewExtensions: l
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { o as useDialFilePreview };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AttachResult, Attachment } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
import { DialFileToAttachmentOptions } from '../dial-file-to-attachment';
|
|
3
|
+
/** Host inputs for pending attachment results. */
|
|
4
|
+
export interface UseFileAttachmentModalStateOptions extends DialFileToAttachmentOptions {
|
|
5
|
+
/** Default bucket for selected files. */
|
|
6
|
+
bucket: string;
|
|
7
|
+
}
|
|
8
|
+
/** Modal visibility and pending composer attachments. */
|
|
9
|
+
export interface UseFileAttachmentModalStateResult {
|
|
10
|
+
/** Whether the modal is open. */
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
/** Opens the modal without restoring consumed results. */
|
|
13
|
+
openModal: () => void;
|
|
14
|
+
/** Closes the modal. */
|
|
15
|
+
closeModal: () => void;
|
|
16
|
+
/** Selected results waiting for the composer. */
|
|
17
|
+
pendingAttachments: Attachment[];
|
|
18
|
+
/** Consumes the pending results. */
|
|
19
|
+
clearPendingAttachments: () => void;
|
|
20
|
+
/** Maps selected files and folders, then closes the modal. */
|
|
21
|
+
handleAttach: (result: AttachResult) => void;
|
|
22
|
+
}
|
|
23
|
+
/** Keeps pending attachment results separate from browsing and selection state. */
|
|
24
|
+
export declare const useFileAttachmentModalState: ({ bucket, resolvePreviewUrl, }: UseFileAttachmentModalStateOptions) => UseFileAttachmentModalStateResult;
|
|
25
|
+
//# sourceMappingURL=useFileAttachmentModalState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFileAttachmentModalState.d.ts","sourceRoot":"","sources":["../../../src/files/useFileAttachmentModalState/useFileAttachmentModalState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,4BAA4B,CAAC;AAEpC,kDAAkD;AAClD,MAAM,WAAW,kCAAmC,SAAQ,2BAA2B;IACrF,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;CAChB;AACD,yDAAyD;AACzD,MAAM,WAAW,iCAAiC;IAChD,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,0DAA0D;IAC1D,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,wBAAwB;IACxB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,iDAAiD;IACjD,kBAAkB,EAAE,UAAU,EAAE,CAAC;IACjC,oCAAoC;IACpC,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,8DAA8D;IAC9D,YAAY,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;CAC9C;AAED,mFAAmF;AACnF,eAAO,MAAM,2BAA2B,GAAI,gCAGzC,kCAAkC,KAAG,iCAmCvC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { dialFilesToAttachments as e, dialFolderPathToAttachment as t } from "../dial-file-to-attachment.js";
|
|
2
|
+
import { useCallback as n, useState as r } from "react";
|
|
3
|
+
//#region src/files/useFileAttachmentModalState/useFileAttachmentModalState.ts
|
|
4
|
+
var i = ({ bucket: i, resolvePreviewUrl: a }) => {
|
|
5
|
+
let [o, s] = r(!1), [c, l] = r([]);
|
|
6
|
+
return {
|
|
7
|
+
isOpen: o,
|
|
8
|
+
openModal: n(() => s(!0), []),
|
|
9
|
+
closeModal: n(() => s(!1), []),
|
|
10
|
+
pendingAttachments: c,
|
|
11
|
+
clearPendingAttachments: n(() => l([]), []),
|
|
12
|
+
handleAttach: n((n) => {
|
|
13
|
+
let r = e(n.files, i, { resolvePreviewUrl: a }), o = n.folderPaths.map(t);
|
|
14
|
+
l([...r, ...o]), s(!1);
|
|
15
|
+
}, [i, a])
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { i as useFileAttachmentModalState };
|
package/index.d.ts
CHANGED
|
@@ -165,4 +165,14 @@ export { useMcpAppHostAdapter } from './mcp-apps/useMcpAppHostAdapter/useMcpAppH
|
|
|
165
165
|
export { useOpenMcpAppCanvas, type UseOpenMcpAppCanvasLabels, } from './mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas';
|
|
166
166
|
export type { UseGridEditingScrollOptions, UseGridEditingScrollResult, } from '@epam/ai-dial-chat-shared';
|
|
167
167
|
export { useGridEditingScroll } from '@epam/ai-dial-chat-shared';
|
|
168
|
+
export * from './files/browser-download';
|
|
169
|
+
export * from './conversation/scheduled-task-grouping';
|
|
170
|
+
export * from './conversation/useConversationDiscovery/useConversationDiscovery';
|
|
171
|
+
export * from './scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames';
|
|
172
|
+
export * from './skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker';
|
|
173
|
+
export * from './files/useFileAttachmentModalState/useFileAttachmentModalState';
|
|
174
|
+
export * from './files/useDialFilePreview/useDialFilePreview';
|
|
175
|
+
export * from './conversation/useEntityPreselection/useEntityPreselection';
|
|
176
|
+
export * from './viewport-layout/canvas-width';
|
|
177
|
+
export * from './shared/usePersistedState/usePersistedState';
|
|
168
178
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wCAAwC,CAAC;AACvD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sDAAsD,CAAC;AACrE,cAAc,8DAA8D,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAC3F,OAAO,EACL,YAAY,EACZ,aAAa,GACd,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAChG,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc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,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC;AACvD,cAAc,kEAAkE,CAAC;AACjF,cAAc,sFAAsF,CAAC;AACrG,cAAc,kEAAkE,CAAC;AACjF,cAAc,iEAAiE,CAAC;AAChF,cAAc,+CAA+C,CAAC;AAC9D,cAAc,4DAA4D,CAAC;AAC3E,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8CAA8C,CAAC"}
|
package/index.js
CHANGED
|
@@ -160,6 +160,16 @@ import { useMcpAppTools as jo } from "./mcp-apps/useMcpAppTools/useMcpAppTools.j
|
|
|
160
160
|
import { useMcpAppHostContext as Mo } from "./mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js";
|
|
161
161
|
import { useMcpAppHostAdapter as No } from "./mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.js";
|
|
162
162
|
import { useOpenMcpAppCanvas as Po } from "./mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.js";
|
|
163
|
-
import {
|
|
164
|
-
import {
|
|
165
|
-
export { S as AttachmentValidationErrorReason, Yr as AudioTranscriptionError, Xr as AudioTranscriptionErrorReason, V as AuthenticationType, Ci as COLUMNS_MY_FILES, wi as COLUMNS_ORGANIZATION, Ti as COLUMNS_SHARED, Ei as CORE_PERMISSION_MAP, Tt as CatalogPrimaryActionType, E as ConversationExportMode, D as ConversationTransferErrorCode, O as ConversationTransferWarningCode, Di as DATE_OPTIONS, ge as DEFAULT_ENTITY_DETAILS_LABELS, an as DEFAULT_GENERATION_CONFLICT_MESSAGE, on as DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE, Qr as DEFAULT_MAX_ARCHIVE_BYTES, sn as DEFAULT_STREAM_IDLE_TIMEOUT_MS, Oi as DIAL_FILE_MANAGER_SECTION_TABS, yi as DialFilesApiUploadMode, za as DownloadDestinationType, A as EXPORT_APP_NAME, k as ExportFileNameKind, Jt as FavoriteEntityType, bi as FileManagerNotificationReason, xi as FileNameValidationErrorReason, Si as FileOperationKind, cn as GenerationConflictError, ln as GenerationPersistenceError, ko as McpAppResourceFetchError, ut as McpResourceKind, G as OAuthResourceKind, pr as OfflineCredentialsGateStatus, hr as OfflineCredentialsLoginOutcomeType, _r as OfflineCredentialsLogoutOutcomeType, ki as PATH_SEPARATOR_REGEXP, Bn as PROMPT_CONTENT_MAX_LENGTH, Vn as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, Hn as PROMPT_DESCRIPTION_MAX_LENGTH, Un as PROMPT_NAME_MAX_LENGTH, Xe as PUBLIC_SKILL_BUCKET, Wn as PromptFieldError, Te as PromptSource, Ai as RESERVED_MARKER_NAME, Pr as RecipientsCountStatus, Ae as SKILL_FILE_UPLOAD_MAX_BYTES, je as SKILL_FOLDER_MARKER, Ze as SKILL_LISTING_MAX_PAGES, Qe as SKILL_LISTING_PAGE_SIZE, Me as SKILL_MANIFEST_FILE, $e as SKILL_MANIFEST_MAX_BYTES, Ne as SKILL_TEXT_FIELD_MAX_LENGTHS, Pe as SKILL_UPLOAD_MAX_FILES, Fe as SKILL_UPLOAD_MAX_TOTAL_BYTES, Qn as ScheduledTaskTriggerDescriptionKind, Io as SchedulerServiceConsentStatus, kr as SkillArchiveImportErrorKind, Ar as SkillArchiveImportStatus, jr as SkillArchiveSelectionRejectionReason, Sr as SkillEditorLoadState, Er as SkillPreviewErrorKind, et as SkillSource, un as StopCompletionError, dn as StreamInterruptedError, fn as StreamUpstreamError, K as TOOLSET_REDIRECT_STATE_KEY, q as ToolsetAuthStatus, J as ToolsetAuthTypes, Y as ToolsetCredentialsLevel, Ut as ToolsetLoginOutcomeType, X as ToolsetOAuthCallbackQuery, Z as ToolsetOAuthChannelControlType, Q as ToolsetOAuthFailureReason, $ as ToolsetOAuthInitiationResultType, ee as ToolsetOAuthResultType, ji as UPLOAD_CONCURRENCY, Eo as USAGE_BANNER_I18N_KEYS, uo as USAGE_DATA_I18N_KEYS, po as USAGE_MODEL_LIMITS_I18N_KEYS, yo as USAGE_RESET_I18N_KEYS, Zn as UnsupportedTriggerReason, $i as UploadNetworkError, go as UsagePeriod, te as WithLogin, Na as annotationToDisplayAttachment, ha as annotationToOoxmlCanvasContent, ga as annotationToPdfCanvasContent, er as apSchedulerDayToJsDay, ce as appendLocaleCode, mi as applyChunkToMessages, Pa as attachmentDtoToDisplayAttachment, Fa as attachmentDtosToDisplayAttachments, ei as attachmentToDto, ti as attachmentsToDtos, le as buildAdditionalLocaleOptions, Zt as buildAnnouncementSignature, dt as buildApplicationMcpUrl, P as buildChatCompletionsUrl, ft as buildConnectApi, F as buildDeploymentConnectApi, to as buildExternalServiceScopeId, ta as buildFromCache, Ln as buildPromptExportEnvelope, Rn as buildPromptExportFileName, De as buildPromptOverview, Gn as buildPromptPath, H as buildResetFields, I as buildResponsesUrl, Mi as buildSharedItemVirtualPath, na as buildSharedSearchScope, nt as buildSkillContentTree, Ie as buildSkillFilesPayload, Le as buildSkillManifest, Re as buildSkillManifestForSubmit, ze as buildSkillManifestFromFrontmatter, rt as buildSkillOverview, Rt as buildToolsetAuthorizeUrl, pt as buildToolsetMcpUrl, yr as checkScheduledTaskAuthSessionError, Mr as classifySkillArchiveImportError, _a as clearAttachmentCache, ue as composeLocalePayload, pn as createChatStreamApi, i as createCsrfMiddleware, xn as createDeploymentChangedMessage, pa as createFilesApiClient, Ao as createMcpAppsApiClient, nn as createMemoryConversationDraftStore, ni as createMessagePair, M as createPublishApiClient, sr as createScheduledTasksApiClient, a as createUnauthorizedMiddleware, ea as createUploadFileWithProgress, rn as createWebStorageConversationDraftStore, L as decodeDeploymentId, ne as decodeToolsetId, de as decomposeLocalizedFields, Va as deriveActionProfile, bt as deriveAvailableTabIds, Ir as deriveConversationRowActionState, xt as deriveFavoriteItems, $n as describeScheduledTaskTrigger, Ni as dialCorePathToRelative, Ia as dialFileToAttachment, La as dialFilesToAttachments, Ra as dialFolderPathToAttachment, h as downloadAttachment, Pt as emitToolsetLoginSuccess, R as encodeDeploymentId, re as encodeToolsetId, ra as fetchByTab, ia as fetchForSearch, St as filterCatalogItemsBySelector, Ct as filterHiddenOwnedItems, z as findDeploymentByIdOrReference, _n as findDeploymentForConversationId, Pi as findDialFileByPath, aa as findFirstSuccessfulCopyMoveItem, Fi as findFolderByVirtualPath, hn as formatAppVersion, me as formatCalendarDate, w as formatDateYM, T as formatDateYMD, Ii as formatOperationFolderName, j as formatQuotedNameList, bo as formatUsageResetShort, xo as formatUsageResetTime, e as getApiErrorDetails, t as getApiErrorMessage, n as getApiErrorStatus, Za as getBrowserTimezone, ui as getConversationPath, Vr as getConversationSource, no as getExternalServiceFallbackName, Sn as getFormSchemaToolSyncKey, Cn as getLastDeploymentId, wn as getLastUserMessageToolConfiguration, Tn as getLatestToolConfiguration, vn as getModelIdCandidatesFromConversationId, yn as getModelIdFromConversationId, ht as getPublicCatalogEntityFolderPath, jn as getQuickAppConversationStarters, Kn as getRemainingCharacters, Dt as getRunnerSchemas, Be as getSkillFieldLengthViolations, si as getStarterConversationText, ci as getStarterDisplayText, Pn as getStarterPopulateText, li as getStarterSubmitText, Fn as getStartersFromSchema, bn as getTimeOfDayGreeting, En as getToolConfigurationFromFormSchema, It as getToolsetOAuthChannelName, zt as getToolsetRedirectUri, Aa as getUrlFileName, Li as getVirtualPathName, ri as hasActiveToolConfig, Qt as hasAnnouncementContent, va as hasAttachmentTextSource, Ri as hasDialFileWritePermission, zi as hasForbiddenNameSymbols, Bi as hasSamePaths, $t as hasStructuredAnnouncement, o as includesIgnoreCase, Bt as initiateOAuthLogin, ii as isAnswerIncomplete, gi as isAwaitingGenerationResume, _o as isCappedStat, r as isConversationNotFoundError, Vi as isCopyMoveDuplicateAllowed, Ot as isCustomAppSchema, v as isDialFileAcceptType, d as isDialFileId, f as isDialFolderId, g as isDownloadableAttachment, ja as isExternalSourcePreviewable, ai as isMessageChanged, Dn as isMessageStreaming, Oe as isOrganisationPromptItem, gt as isPublicCatalogEntityId, ie as isPublicToolsetId, kt as isQuickAppSchema, Hi as isShareActionsAllowed, Ve as isSkillFolderMarkerPath, Qa as isValidAbsoluteUrl, $a as isValidFeaturesData, He as isValidSkillRelativePath, tr as jsDayToApSchedulerDay, oa as mapCorePermissions, _e as mapDeploymentDetailsDtoToEntityDetails, W as mapDeploymentLimitsDtoToCatalogLimits, U as mapDeploymentLimitsToInput, be as mapDeploymentToCatalogItem, xe as mapDeploymentToolsetCredentials, ve as mapEntityDetailsToCatalogDetails, sa as mapFileMetadataToDialFile, nr as mapFormValuesToCreateBody, rr as mapFormValuesToUpdateBody, dr as mapOfflineCredentialsResponse, mo as mapOverallCostLimitsToPeriodStatuses, ke as mapPromptToCatalogItem, _t as mapPublishConversationResultDto, vt as mapPublishHistoryEntryDto, ir as mapScheduledTaskDtoToFormValues, ca as mapSearchItem, it as mapSkillToCatalogItem, Mn as mapStages, ye as mapToolsetCredentials, Se as mapToolsetToCatalogItem, fo as mapUsageDataToDashboard, ho as mapUserUsageToModelLimits, la as mergeCreatedFolderIntoCache, lr as mergeRunsById, hi as mergeStages, On as messageHasStages, y as mimeTypesToAttachmentExtensionLabels, b as mimeTypesToDialFileAcceptTypes, x as mimeTypesToFileAccept, Ue as nameFromPath, Vt as navigateToolsetOAuthPopup, B as normalizeDeploymentId, fr as normalizeOfflineCredentialsConnectSettings, kn as normalizeResponseFormat, We as normalizeSkillName, ae as normalizeToolsetId, Ui as normalizeVirtualPath, ma as openAnnotationAttachment, Ht as openToolsetOAuthPopup, he as padTwoDigits, ro as parseExternalServiceUrl, eo as parseFeaturesData, Wi as parseNewFolderVirtualPath, Ee as parsePromptResourceUrl, Ge as parseSkillManifest, jt as parseSkillManifestDocument, tt as parseSkillResourceUrl, Zi as prepareCopyItems, Ba as prepareDownloadDestination, Qi as prepareMoveRenameItems, ar as prepareScheduledTaskCreateBody, or as prepareScheduledTaskUpdateBody, at as readSkillFileBytes, ot as readSkillFilePreviewBytes, st as readSkillManifest, wt as reconcileFilterTopics, ya as referenceAttachmentToPdfCanvasContent, wo as resetUsageLimitBannerDismissals, Et as resolveCatalogPrimaryAction, ba as resolveCodeCanvasContent, Ce as resolveDeploymentFolder, Yi as resolveDialFileApiPath, p as resolveDialFileBucketAndPath, Ma as resolveExternalSourceContentType, xa as resolveGroupedVisualizerCanvasContent, Sa as resolveHtmlCanvasContent, Ca as resolveImageCanvasContent, wa as resolveJsonCanvasContent, fe as resolveLocalizedText, Ta as resolveMarkdownCanvasContent, mt as resolveMcpResourceKind, Ea as resolveOoxmlCanvasContent, Gi as resolveOwnerCoords, Da as resolvePdfCanvasContent, m as resolveRelativeDialFilePath, Ki as resolveSectionByPath, ct as resolveSkillFileDownloadPath, lt as resolveSkillManifestFileId, Oa as resolveTextCanvasContent, oe as resolveToolsetCredentialsLevel, ua as resolveTransferFailureReason, da as resolveUploadFailureReason, ka as resolveVisualizerCanvasContent, s as safeDecodeURI, c as safeDecodeURIComponent, en as sanitizeAnnouncementHtml, tn as sanitizeAnnouncementMessageHtml, Gr as sanitizeFileName, gn as sanitizeFooterHtml, se as selectToolsetAuthStatus, vo as selectUsageBannerSource, zn as serializePromptExport, oi as shouldRerunGenerationOnEdit, mn as shouldWatchForDisplayNameUpdate, Ke as skillFileBytesToBlob, xr as skillFileToAttachment, qe as skillFolderMarkerParent, Kr as splitFileNameExtension, Je as startsWithFrontmatterBlock, l as stripSurroundingSlashes, u as stripTrailingSlashes, Ft as subscribeToolsetLoginSuccess, we as supportsChatInterface, pe as toBaseLocale, An as toOverlayMessages, yt as toPublishEntityType, N as toPublishRuleDto, Nn as toStage, qr as trimFileNameToByteLimit, qi as unionPathSets, Ye as unpackSkillArchive, fa as updateEntry, Lr as useActiveConversationSync, Kt as useApplicationCredentials, Rr as useAsyncConfirmDialog, _ as useAttachmentAction, Jr as useAttachmentUpload, C as useAttachmentValidation, At as useCatalogEditNavigation, Nt as useCatalogItemDetails, Gt as useCatalogToolsetCredentials, io as useChatSettingsFormConfig, zr as useConversationComposerDraft, $r as useConversationExport, di as useConversationHandlers, fi as useConversationImport, Br as useConversationLookupMaps, Hr as useConversationPanelItems, pi as useConversationScroll, vi as useConversationSources, _i as useConversationStream, So as useDeploymentUsageLimits, Ha as useDialFileListing, qa as useDialFileManager, Ja as useDialFileManagerSections, Ya as useDialFileManagerTabConfig, Ua as useDialFileMetadata, Wa as useDialFileMutations, Ga as useDialFileSharing, Ka as useDialFileUploadBatch, Yt as useFavoriteEntitiesState, Xa as useFileAttachmentPicker, Fo as useGridEditingScroll, Ur as useImportFilePicker, No as useMcpAppHostAdapter, Mo as useMcpAppHostContext, jo as useMcpAppTools, Wr as useMessageSelectionReply, In as useOAuthCallbackCompletion, vr as useOfflineCredentialsAuth, mr as useOfflineCredentialsGate, gr as useOfflineCredentialsLogin, Po as useOpenMcpAppCanvas, ao as usePageFileDrag, so as usePanelMaxWidth, Xn as usePromptsState, Xt as usePublishFolders, Co as useRefreshUsageAfterGeneration, ur as useScheduledTaskRuns, cr as useScheduledTasks, co as useShareLink, Fr as useShareRecipientsCount, Nr as useSkillArchiveImport, qt as useSkillDetailsPanelData, Cr as useSkillEditorLoad, wr as useSkillEditorSubmit, Tr as useSkillFileActions, Dr as useSkillFilePreview, Mt as useSkillItemDetails, Or as useSkillsState, lo as useToolsMenu, Wt as useToolsetLogin, Zr as useTranscribeAudio, Oo as useUsageData, Do as useUsageLimitBanner, To as useUsageLimitBannerDismissal, oo as useViewportWidth, qn as validatePromptContent, Jn as validatePromptDescription, Yn as validatePromptName, br as validateSkillFileBatch, Xi as virtualPathToApiPath, Lt as waitForToolsetOAuthResult, Ji as withRoutableRootLabels };
|
|
163
|
+
import { triggerBrowserDownload as Fo } from "./files/browser-download.js";
|
|
164
|
+
import { applyActiveScheduledTaskRun as Io, collapseScheduledTaskConversations as Lo, groupScheduledTaskConversations as Ro } from "./conversation/scheduled-task-grouping.js";
|
|
165
|
+
import { useConversationDiscovery as zo } from "./conversation/useConversationDiscovery/useConversationDiscovery.js";
|
|
166
|
+
import { useScheduledTaskSkillDisplayNames as Bo } from "./scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.js";
|
|
167
|
+
import { useSkillFileSystemPicker as Vo } from "./skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.js";
|
|
168
|
+
import { useFileAttachmentModalState as Ho } from "./files/useFileAttachmentModalState/useFileAttachmentModalState.js";
|
|
169
|
+
import { useDialFilePreview as Uo } from "./files/useDialFilePreview/useDialFilePreview.js";
|
|
170
|
+
import { EntityPreselectionOutcome as Wo, EntityPreselectionSource as Go, useEntityPreselection as Ko } from "./conversation/useEntityPreselection/useEntityPreselection.js";
|
|
171
|
+
import { CanvasWidthMode as qo, resolveCanvasWidth as Jo } from "./viewport-layout/canvas-width.js";
|
|
172
|
+
import { usePersistedState as Yo } from "./shared/usePersistedState/usePersistedState.js";
|
|
173
|
+
import { useGridEditingScroll as Xo } from "@epam/ai-dial-chat-shared";
|
|
174
|
+
import { SchedulerServiceConsentStatus as Zo } from "@epam/ai-dial-chat-api-client";
|
|
175
|
+
export { S as AttachmentValidationErrorReason, Yr as AudioTranscriptionError, Xr as AudioTranscriptionErrorReason, V as AuthenticationType, Ci as COLUMNS_MY_FILES, wi as COLUMNS_ORGANIZATION, Ti as COLUMNS_SHARED, Ei as CORE_PERMISSION_MAP, qo as CanvasWidthMode, Tt as CatalogPrimaryActionType, E as ConversationExportMode, D as ConversationTransferErrorCode, O as ConversationTransferWarningCode, Di as DATE_OPTIONS, ge as DEFAULT_ENTITY_DETAILS_LABELS, an as DEFAULT_GENERATION_CONFLICT_MESSAGE, on as DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE, Qr as DEFAULT_MAX_ARCHIVE_BYTES, sn as DEFAULT_STREAM_IDLE_TIMEOUT_MS, Oi as DIAL_FILE_MANAGER_SECTION_TABS, yi as DialFilesApiUploadMode, za as DownloadDestinationType, A as EXPORT_APP_NAME, Wo as EntityPreselectionOutcome, Go as EntityPreselectionSource, k as ExportFileNameKind, Jt as FavoriteEntityType, bi as FileManagerNotificationReason, xi as FileNameValidationErrorReason, Si as FileOperationKind, cn as GenerationConflictError, ln as GenerationPersistenceError, ko as McpAppResourceFetchError, ut as McpResourceKind, G as OAuthResourceKind, pr as OfflineCredentialsGateStatus, hr as OfflineCredentialsLoginOutcomeType, _r as OfflineCredentialsLogoutOutcomeType, ki as PATH_SEPARATOR_REGEXP, Bn as PROMPT_CONTENT_MAX_LENGTH, Vn as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, Hn as PROMPT_DESCRIPTION_MAX_LENGTH, Un as PROMPT_NAME_MAX_LENGTH, Xe as PUBLIC_SKILL_BUCKET, Wn as PromptFieldError, Te as PromptSource, Ai as RESERVED_MARKER_NAME, Pr as RecipientsCountStatus, Ae as SKILL_FILE_UPLOAD_MAX_BYTES, je as SKILL_FOLDER_MARKER, Ze as SKILL_LISTING_MAX_PAGES, Qe as SKILL_LISTING_PAGE_SIZE, Me as SKILL_MANIFEST_FILE, $e as SKILL_MANIFEST_MAX_BYTES, Ne as SKILL_TEXT_FIELD_MAX_LENGTHS, Pe as SKILL_UPLOAD_MAX_FILES, Fe as SKILL_UPLOAD_MAX_TOTAL_BYTES, Qn as ScheduledTaskTriggerDescriptionKind, Zo as SchedulerServiceConsentStatus, kr as SkillArchiveImportErrorKind, Ar as SkillArchiveImportStatus, jr as SkillArchiveSelectionRejectionReason, Sr as SkillEditorLoadState, Er as SkillPreviewErrorKind, et as SkillSource, un as StopCompletionError, dn as StreamInterruptedError, fn as StreamUpstreamError, K as TOOLSET_REDIRECT_STATE_KEY, q as ToolsetAuthStatus, J as ToolsetAuthTypes, Y as ToolsetCredentialsLevel, Ut as ToolsetLoginOutcomeType, X as ToolsetOAuthCallbackQuery, Z as ToolsetOAuthChannelControlType, Q as ToolsetOAuthFailureReason, $ as ToolsetOAuthInitiationResultType, ee as ToolsetOAuthResultType, ji as UPLOAD_CONCURRENCY, Eo as USAGE_BANNER_I18N_KEYS, uo as USAGE_DATA_I18N_KEYS, po as USAGE_MODEL_LIMITS_I18N_KEYS, yo as USAGE_RESET_I18N_KEYS, Zn as UnsupportedTriggerReason, $i as UploadNetworkError, go as UsagePeriod, te as WithLogin, Na as annotationToDisplayAttachment, ha as annotationToOoxmlCanvasContent, ga as annotationToPdfCanvasContent, er as apSchedulerDayToJsDay, ce as appendLocaleCode, Io as applyActiveScheduledTaskRun, mi as applyChunkToMessages, Pa as attachmentDtoToDisplayAttachment, Fa as attachmentDtosToDisplayAttachments, ei as attachmentToDto, ti as attachmentsToDtos, le as buildAdditionalLocaleOptions, Zt as buildAnnouncementSignature, dt as buildApplicationMcpUrl, P as buildChatCompletionsUrl, ft as buildConnectApi, F as buildDeploymentConnectApi, to as buildExternalServiceScopeId, ta as buildFromCache, Ln as buildPromptExportEnvelope, Rn as buildPromptExportFileName, De as buildPromptOverview, Gn as buildPromptPath, H as buildResetFields, I as buildResponsesUrl, Mi as buildSharedItemVirtualPath, na as buildSharedSearchScope, nt as buildSkillContentTree, Ie as buildSkillFilesPayload, Le as buildSkillManifest, Re as buildSkillManifestForSubmit, ze as buildSkillManifestFromFrontmatter, rt as buildSkillOverview, Rt as buildToolsetAuthorizeUrl, pt as buildToolsetMcpUrl, yr as checkScheduledTaskAuthSessionError, Mr as classifySkillArchiveImportError, _a as clearAttachmentCache, Lo as collapseScheduledTaskConversations, ue as composeLocalePayload, pn as createChatStreamApi, i as createCsrfMiddleware, xn as createDeploymentChangedMessage, pa as createFilesApiClient, Ao as createMcpAppsApiClient, nn as createMemoryConversationDraftStore, ni as createMessagePair, M as createPublishApiClient, sr as createScheduledTasksApiClient, a as createUnauthorizedMiddleware, ea as createUploadFileWithProgress, rn as createWebStorageConversationDraftStore, L as decodeDeploymentId, ne as decodeToolsetId, de as decomposeLocalizedFields, Va as deriveActionProfile, bt as deriveAvailableTabIds, Ir as deriveConversationRowActionState, xt as deriveFavoriteItems, $n as describeScheduledTaskTrigger, Ni as dialCorePathToRelative, Ia as dialFileToAttachment, La as dialFilesToAttachments, Ra as dialFolderPathToAttachment, h as downloadAttachment, Pt as emitToolsetLoginSuccess, R as encodeDeploymentId, re as encodeToolsetId, ra as fetchByTab, ia as fetchForSearch, St as filterCatalogItemsBySelector, Ct as filterHiddenOwnedItems, z as findDeploymentByIdOrReference, _n as findDeploymentForConversationId, Pi as findDialFileByPath, aa as findFirstSuccessfulCopyMoveItem, Fi as findFolderByVirtualPath, hn as formatAppVersion, me as formatCalendarDate, w as formatDateYM, T as formatDateYMD, Ii as formatOperationFolderName, j as formatQuotedNameList, bo as formatUsageResetShort, xo as formatUsageResetTime, e as getApiErrorDetails, t as getApiErrorMessage, n as getApiErrorStatus, Za as getBrowserTimezone, ui as getConversationPath, Vr as getConversationSource, no as getExternalServiceFallbackName, Sn as getFormSchemaToolSyncKey, Cn as getLastDeploymentId, wn as getLastUserMessageToolConfiguration, Tn as getLatestToolConfiguration, vn as getModelIdCandidatesFromConversationId, yn as getModelIdFromConversationId, ht as getPublicCatalogEntityFolderPath, jn as getQuickAppConversationStarters, Kn as getRemainingCharacters, Dt as getRunnerSchemas, Be as getSkillFieldLengthViolations, si as getStarterConversationText, ci as getStarterDisplayText, Pn as getStarterPopulateText, li as getStarterSubmitText, Fn as getStartersFromSchema, bn as getTimeOfDayGreeting, En as getToolConfigurationFromFormSchema, It as getToolsetOAuthChannelName, zt as getToolsetRedirectUri, Aa as getUrlFileName, Li as getVirtualPathName, Ro as groupScheduledTaskConversations, ri as hasActiveToolConfig, Qt as hasAnnouncementContent, va as hasAttachmentTextSource, Ri as hasDialFileWritePermission, zi as hasForbiddenNameSymbols, Bi as hasSamePaths, $t as hasStructuredAnnouncement, o as includesIgnoreCase, Bt as initiateOAuthLogin, ii as isAnswerIncomplete, gi as isAwaitingGenerationResume, _o as isCappedStat, r as isConversationNotFoundError, Vi as isCopyMoveDuplicateAllowed, Ot as isCustomAppSchema, v as isDialFileAcceptType, d as isDialFileId, f as isDialFolderId, g as isDownloadableAttachment, ja as isExternalSourcePreviewable, ai as isMessageChanged, Dn as isMessageStreaming, Oe as isOrganisationPromptItem, gt as isPublicCatalogEntityId, ie as isPublicToolsetId, kt as isQuickAppSchema, Hi as isShareActionsAllowed, Ve as isSkillFolderMarkerPath, Qa as isValidAbsoluteUrl, $a as isValidFeaturesData, He as isValidSkillRelativePath, tr as jsDayToApSchedulerDay, oa as mapCorePermissions, _e as mapDeploymentDetailsDtoToEntityDetails, W as mapDeploymentLimitsDtoToCatalogLimits, U as mapDeploymentLimitsToInput, be as mapDeploymentToCatalogItem, xe as mapDeploymentToolsetCredentials, ve as mapEntityDetailsToCatalogDetails, sa as mapFileMetadataToDialFile, nr as mapFormValuesToCreateBody, rr as mapFormValuesToUpdateBody, dr as mapOfflineCredentialsResponse, mo as mapOverallCostLimitsToPeriodStatuses, ke as mapPromptToCatalogItem, _t as mapPublishConversationResultDto, vt as mapPublishHistoryEntryDto, ir as mapScheduledTaskDtoToFormValues, ca as mapSearchItem, it as mapSkillToCatalogItem, Mn as mapStages, ye as mapToolsetCredentials, Se as mapToolsetToCatalogItem, fo as mapUsageDataToDashboard, ho as mapUserUsageToModelLimits, la as mergeCreatedFolderIntoCache, lr as mergeRunsById, hi as mergeStages, On as messageHasStages, y as mimeTypesToAttachmentExtensionLabels, b as mimeTypesToDialFileAcceptTypes, x as mimeTypesToFileAccept, Ue as nameFromPath, Vt as navigateToolsetOAuthPopup, B as normalizeDeploymentId, fr as normalizeOfflineCredentialsConnectSettings, kn as normalizeResponseFormat, We as normalizeSkillName, ae as normalizeToolsetId, Ui as normalizeVirtualPath, ma as openAnnotationAttachment, Ht as openToolsetOAuthPopup, he as padTwoDigits, ro as parseExternalServiceUrl, eo as parseFeaturesData, Wi as parseNewFolderVirtualPath, Ee as parsePromptResourceUrl, Ge as parseSkillManifest, jt as parseSkillManifestDocument, tt as parseSkillResourceUrl, Zi as prepareCopyItems, Ba as prepareDownloadDestination, Qi as prepareMoveRenameItems, ar as prepareScheduledTaskCreateBody, or as prepareScheduledTaskUpdateBody, at as readSkillFileBytes, ot as readSkillFilePreviewBytes, st as readSkillManifest, wt as reconcileFilterTopics, ya as referenceAttachmentToPdfCanvasContent, wo as resetUsageLimitBannerDismissals, Jo as resolveCanvasWidth, Et as resolveCatalogPrimaryAction, ba as resolveCodeCanvasContent, Ce as resolveDeploymentFolder, Yi as resolveDialFileApiPath, p as resolveDialFileBucketAndPath, Ma as resolveExternalSourceContentType, xa as resolveGroupedVisualizerCanvasContent, Sa as resolveHtmlCanvasContent, Ca as resolveImageCanvasContent, wa as resolveJsonCanvasContent, fe as resolveLocalizedText, Ta as resolveMarkdownCanvasContent, mt as resolveMcpResourceKind, Ea as resolveOoxmlCanvasContent, Gi as resolveOwnerCoords, Da as resolvePdfCanvasContent, m as resolveRelativeDialFilePath, Ki as resolveSectionByPath, ct as resolveSkillFileDownloadPath, lt as resolveSkillManifestFileId, Oa as resolveTextCanvasContent, oe as resolveToolsetCredentialsLevel, ua as resolveTransferFailureReason, da as resolveUploadFailureReason, ka as resolveVisualizerCanvasContent, s as safeDecodeURI, c as safeDecodeURIComponent, en as sanitizeAnnouncementHtml, tn as sanitizeAnnouncementMessageHtml, Gr as sanitizeFileName, gn as sanitizeFooterHtml, se as selectToolsetAuthStatus, vo as selectUsageBannerSource, zn as serializePromptExport, oi as shouldRerunGenerationOnEdit, mn as shouldWatchForDisplayNameUpdate, Ke as skillFileBytesToBlob, xr as skillFileToAttachment, qe as skillFolderMarkerParent, Kr as splitFileNameExtension, Je as startsWithFrontmatterBlock, l as stripSurroundingSlashes, u as stripTrailingSlashes, Ft as subscribeToolsetLoginSuccess, we as supportsChatInterface, pe as toBaseLocale, An as toOverlayMessages, yt as toPublishEntityType, N as toPublishRuleDto, Nn as toStage, Fo as triggerBrowserDownload, qr as trimFileNameToByteLimit, qi as unionPathSets, Ye as unpackSkillArchive, fa as updateEntry, Lr as useActiveConversationSync, Kt as useApplicationCredentials, Rr as useAsyncConfirmDialog, _ as useAttachmentAction, Jr as useAttachmentUpload, C as useAttachmentValidation, At as useCatalogEditNavigation, Nt as useCatalogItemDetails, Gt as useCatalogToolsetCredentials, io as useChatSettingsFormConfig, zr as useConversationComposerDraft, zo as useConversationDiscovery, $r as useConversationExport, di as useConversationHandlers, fi as useConversationImport, Br as useConversationLookupMaps, Hr as useConversationPanelItems, pi as useConversationScroll, vi as useConversationSources, _i as useConversationStream, So as useDeploymentUsageLimits, Ha as useDialFileListing, qa as useDialFileManager, Ja as useDialFileManagerSections, Ya as useDialFileManagerTabConfig, Ua as useDialFileMetadata, Wa as useDialFileMutations, Uo as useDialFilePreview, Ga as useDialFileSharing, Ka as useDialFileUploadBatch, Ko as useEntityPreselection, Yt as useFavoriteEntitiesState, Ho as useFileAttachmentModalState, Xa as useFileAttachmentPicker, Xo as useGridEditingScroll, Ur as useImportFilePicker, No as useMcpAppHostAdapter, Mo as useMcpAppHostContext, jo as useMcpAppTools, Wr as useMessageSelectionReply, In as useOAuthCallbackCompletion, vr as useOfflineCredentialsAuth, mr as useOfflineCredentialsGate, gr as useOfflineCredentialsLogin, Po as useOpenMcpAppCanvas, ao as usePageFileDrag, so as usePanelMaxWidth, Yo as usePersistedState, Xn as usePromptsState, Xt as usePublishFolders, Co as useRefreshUsageAfterGeneration, ur as useScheduledTaskRuns, Bo as useScheduledTaskSkillDisplayNames, cr as useScheduledTasks, co as useShareLink, Fr as useShareRecipientsCount, Nr as useSkillArchiveImport, qt as useSkillDetailsPanelData, Cr as useSkillEditorLoad, wr as useSkillEditorSubmit, Tr as useSkillFileActions, Dr as useSkillFilePreview, Vo as useSkillFileSystemPicker, Mt as useSkillItemDetails, Or as useSkillsState, lo as useToolsMenu, Wt as useToolsetLogin, Zr as useTranscribeAudio, Oo as useUsageData, Do as useUsageLimitBanner, To as useUsageLimitBannerDismissal, oo as useViewportWidth, qn as validatePromptContent, Jn as validatePromptDescription, Yn as validatePromptName, br as validateSkillFileBatch, Xi as virtualPathToApiPath, Lt as waitForToolsetOAuthResult, Ji as withRoutableRootLabels };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { McpAppDisplayMode } from '@epam/ai-dial-attachment-canvas';
|
|
2
|
-
|
|
1
|
+
import { McpAppCanvasContent, McpAppDisplayMode } from '@epam/ai-dial-attachment-canvas';
|
|
2
|
+
type McpUiHostContext = NonNullable<McpAppCanvasContent['hostContext']>;
|
|
3
3
|
/** Host values `useMcpAppHostContext` needs but cannot read itself — a lib must not import the app's theme/i18n/config context. */
|
|
4
4
|
export interface McpAppHostContextParams {
|
|
5
5
|
/** Host's current theme id (e.g. `'light'`/`'dark'`), used when `mcpAppTheme` is unset. */
|
|
@@ -26,4 +26,5 @@ export interface McpAppHostContextParams {
|
|
|
26
26
|
* `availableDisplayModes`) which surfaces it may ask the host to switch to.
|
|
27
27
|
*/
|
|
28
28
|
export declare const useMcpAppHostContext: (displayMode: "inline" | "fullscreen", { theme, mcpAppTheme, locale, mcpAppUserAgent, availableDisplayModes, }: McpAppHostContextParams) => McpUiHostContext;
|
|
29
|
+
export {};
|
|
29
30
|
//# sourceMappingURL=useMcpAppHostContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMcpAppHostContext.d.ts","sourceRoot":"","sources":["../../../src/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useMcpAppHostContext.d.ts","sourceRoot":"","sources":["../../../src/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,iCAAiC,CAAC;AAGzC,KAAK,gBAAgB,GAAG,WAAW,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC,CAAC;AAiIxE,mIAAmI;AACnI,MAAM,WAAW,uBAAuB;IACtC,2FAA2F;IAC3F,KAAK,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,4GAA4G;IAC5G,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC7C;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAC/B,aAAa,QAAQ,GAAG,YAAY,EACpC,yEAMG,uBAAuB,KACzB,gBAqBA,CAAC"}
|
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.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.248",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
"dependencies": {
|
|
124
|
-
"@epam/ai-dial-chat-api-client": "1.3.0-dev.
|
|
124
|
+
"@epam/ai-dial-chat-api-client": "1.3.0-dev.248",
|
|
125
125
|
"dompurify": "3.4.17",
|
|
126
126
|
"fflate": "^0.8.3",
|
|
127
127
|
"lru-cache": "^10.4.3",
|
|
@@ -130,25 +130,24 @@
|
|
|
130
130
|
},
|
|
131
131
|
"peerDependencies": {
|
|
132
132
|
"react": "^19.2.8",
|
|
133
|
-
"@epam/ai-dial-attachment-canvas": "1.3.0-dev.
|
|
134
|
-
"@epam/ai-dial-attachment-input": "1.3.0-dev.
|
|
135
|
-
"@epam/ai-dial-catalog": "1.3.0-dev.
|
|
136
|
-
"@epam/ai-dial-chat-overlay": "1.3.0-dev.
|
|
137
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
138
|
-
"@epam/ai-dial-conversation-input": "1.3.0-dev.
|
|
139
|
-
"@epam/ai-dial-mcp-apps": "1.3.0-dev.
|
|
140
|
-
"@epam/ai-dial-publish-panel": "1.3.0-dev.
|
|
141
|
-
"@epam/ai-dial-quotations": "1.3.0-dev.
|
|
133
|
+
"@epam/ai-dial-attachment-canvas": "1.3.0-dev.248",
|
|
134
|
+
"@epam/ai-dial-attachment-input": "1.3.0-dev.248",
|
|
135
|
+
"@epam/ai-dial-catalog": "1.3.0-dev.248",
|
|
136
|
+
"@epam/ai-dial-chat-overlay": "1.3.0-dev.248",
|
|
137
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.248",
|
|
138
|
+
"@epam/ai-dial-conversation-input": "1.3.0-dev.248",
|
|
139
|
+
"@epam/ai-dial-mcp-apps": "1.3.0-dev.248",
|
|
140
|
+
"@epam/ai-dial-publish-panel": "1.3.0-dev.248",
|
|
141
|
+
"@epam/ai-dial-quotations": "1.3.0-dev.248",
|
|
142
142
|
"@epam/ai-dial-react-file-manager": "^0.4.0-dev.19",
|
|
143
|
-
"@epam/ai-dial-scheduled-tasks": "1.3.0-dev.
|
|
144
|
-
"@epam/ai-dial-share": "1.3.0-dev.
|
|
145
|
-
"@epam/ai-dial-skill-editor": "1.3.0-dev.
|
|
146
|
-
"@epam/ai-dial-source-panel": "1.3.0-dev.
|
|
147
|
-
"@epam/ai-dial-ui-kit": "^0.16.0-dev.
|
|
148
|
-
"@epam/ai-dial-usage-dashboard": "1.3.0-dev.
|
|
143
|
+
"@epam/ai-dial-scheduled-tasks": "1.3.0-dev.248",
|
|
144
|
+
"@epam/ai-dial-share": "1.3.0-dev.248",
|
|
145
|
+
"@epam/ai-dial-skill-editor": "1.3.0-dev.248",
|
|
146
|
+
"@epam/ai-dial-source-panel": "1.3.0-dev.248",
|
|
147
|
+
"@epam/ai-dial-ui-kit": "^0.16.0-dev.56",
|
|
148
|
+
"@epam/ai-dial-usage-dashboard": "1.3.0-dev.248",
|
|
149
149
|
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
150
|
-
"@epam/pdf-highlighter-kit": "^0.0.19"
|
|
151
|
-
"@mcp-ui/client": "^7.1.1"
|
|
150
|
+
"@epam/pdf-highlighter-kit": "^0.0.19"
|
|
152
151
|
},
|
|
153
152
|
"peerDependenciesMeta": {
|
|
154
153
|
"@epam/ai-dial-attachment-canvas": {
|
|
@@ -199,9 +198,6 @@
|
|
|
199
198
|
"@epam/ai-dial-usage-dashboard": {
|
|
200
199
|
"optional": true
|
|
201
200
|
},
|
|
202
|
-
"@mcp-ui/client": {
|
|
203
|
-
"optional": true
|
|
204
|
-
},
|
|
205
201
|
"@modelcontextprotocol/sdk": {
|
|
206
202
|
"optional": true
|
|
207
203
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreateScheduledTaskBodyDto, UpdateScheduledTaskBodyDto } from '@epam/ai-dial-chat-api-client';
|
|
2
2
|
import { ScheduledTaskCreateFormValues } from '@epam/ai-dial-scheduled-tasks';
|
|
3
|
-
import { ScheduledTaskValidationErrors, ScheduledTaskValidationOptions } from '
|
|
3
|
+
import { ScheduledTaskValidationErrors, ScheduledTaskValidationOptions } from '@epam/ai-dial-scheduled-tasks/validation';
|
|
4
4
|
/** A checked request preparation result that never serializes invalid values. */
|
|
5
5
|
export type ScheduledTaskPreparationResult<TBody> = {
|
|
6
6
|
ok: true;
|
package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Metadata needed to display a selected skill. */
|
|
2
|
+
export interface ScheduledTaskSkillName {
|
|
3
|
+
/** Human-readable name. */
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
/** Inputs for selection-scoped skill name resolution. */
|
|
7
|
+
export interface UseScheduledTaskSkillDisplayNamesOptions {
|
|
8
|
+
/** Selected references in display order. */
|
|
9
|
+
skillUrls?: readonly string[];
|
|
10
|
+
/** Authoritative names from the host's current listing. */
|
|
11
|
+
listed: ReadonlyMap<string, string>;
|
|
12
|
+
/** Loads missing names; undefined preserves the reference as fallback. */
|
|
13
|
+
getMetadata: (url: string, signal: AbortSignal) => Promise<ScheduledTaskSkillName | undefined>;
|
|
14
|
+
}
|
|
15
|
+
/** Resolves missing skill names while preserving order and authoritative listing names. */
|
|
16
|
+
export declare const useScheduledTaskSkillDisplayNames: ({ skillUrls, listed, getMetadata, }: UseScheduledTaskSkillDisplayNamesOptions) => string[];
|
|
17
|
+
//# sourceMappingURL=useScheduledTaskSkillDisplayNames.d.ts.map
|
package/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useScheduledTaskSkillDisplayNames.d.ts","sourceRoot":"","sources":["../../../src/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.ts"],"names":[],"mappings":"AAEA,mDAAmD;AACnD,MAAM,WAAW,sBAAsB;IACrC,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd;AACD,yDAAyD;AACzD,MAAM,WAAW,wCAAwC;IACvD,4CAA4C;IAC5C,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,2DAA2D;IAC3D,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,0EAA0E;IAC1E,WAAW,EAAE,CACX,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;CAClD;AACD,2FAA2F;AAC3F,eAAO,MAAM,iCAAiC,GAAI,qCAI/C,wCAAwC,KAAG,MAAM,EA6CnD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useEffect as e, useState as t } from "react";
|
|
2
|
+
//#region src/scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.ts
|
|
3
|
+
var n = ({ skillUrls: n, listed: r, getMetadata: i }) => {
|
|
4
|
+
let a = JSON.stringify(n ?? []), o = JSON.stringify((n ?? []).map((e) => r.get(e) ?? null)), s = `${a}:${o}`, [c, l] = t();
|
|
5
|
+
return e(() => {
|
|
6
|
+
let e = JSON.parse(a), t = JSON.parse(o), n = new AbortController();
|
|
7
|
+
return l(void 0), (async () => {
|
|
8
|
+
await Promise.all(e.map(async (e, r) => {
|
|
9
|
+
if (!t[r]) try {
|
|
10
|
+
let t = await i(e, n.signal);
|
|
11
|
+
!n.signal.aborted && t && l((n) => ({
|
|
12
|
+
key: s,
|
|
13
|
+
names: {
|
|
14
|
+
...n?.key === s ? n.names : {},
|
|
15
|
+
[e]: t.name
|
|
16
|
+
}
|
|
17
|
+
}));
|
|
18
|
+
} catch {}
|
|
19
|
+
}));
|
|
20
|
+
})(), () => n.abort();
|
|
21
|
+
}, [
|
|
22
|
+
a,
|
|
23
|
+
o,
|
|
24
|
+
s,
|
|
25
|
+
i
|
|
26
|
+
]), (n ?? []).map((e) => r.get(e) || (c?.key === s ? c.names[e] : void 0) || e);
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { n as useScheduledTaskSkillDisplayNames };
|
package/scheduled-tasks.js
CHANGED
|
@@ -6,4 +6,5 @@ import { createScheduledTasksApiClient as c } from "./scheduled-task/scheduled-t
|
|
|
6
6
|
import { useScheduledTasks as l } from "./scheduled-task/use-scheduled-tasks.js";
|
|
7
7
|
import { mergeRunsById as u, useScheduledTaskRuns as d } from "./scheduled-task/use-scheduled-task-runs.js";
|
|
8
8
|
import { checkScheduledTaskAuthSessionError as f } from "./scheduled-task/check-scheduled-task-auth-session-error.js";
|
|
9
|
-
|
|
9
|
+
import { useScheduledTaskSkillDisplayNames as p } from "./scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.js";
|
|
10
|
+
export { t as ScheduledTaskTriggerDescriptionKind, e as UnsupportedTriggerReason, f as checkScheduledTaskAuthSessionError, c as createScheduledTasksApiClient, n as describeScheduledTaskTrigger, r as mapFormValuesToCreateBody, i as mapFormValuesToUpdateBody, a as mapScheduledTaskDtoToFormValues, u as mergeRunsById, o as prepareScheduledTaskCreateBody, s as prepareScheduledTaskUpdateBody, d as useScheduledTaskRuns, p as useScheduledTaskSkillDisplayNames, l as useScheduledTasks };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Host storage operations; a nullish read means no stored value. */
|
|
2
|
+
export interface PersistedStateStorage<TStored> {
|
|
3
|
+
/** Reads a host-owned key. */
|
|
4
|
+
read: (key: string) => TStored | null | undefined;
|
|
5
|
+
/** Writes a host-owned key. */
|
|
6
|
+
write: (key: string, value: TStored) => void;
|
|
7
|
+
}
|
|
8
|
+
/** Host serialization policy. */
|
|
9
|
+
export interface PersistedStateCodec<T, TStored> {
|
|
10
|
+
/** Converts storage data into state. */
|
|
11
|
+
decode: (value: TStored) => T;
|
|
12
|
+
/** Converts state into storage data. */
|
|
13
|
+
encode: (value: T) => TStored;
|
|
14
|
+
}
|
|
15
|
+
/** Inputs for mount-initialized persisted state. */
|
|
16
|
+
export interface UsePersistedStateOptions<T, TStored> {
|
|
17
|
+
/** Host-owned storage key. */
|
|
18
|
+
key: string;
|
|
19
|
+
/** Fallback when reading or decoding fails. */
|
|
20
|
+
initialValue: T;
|
|
21
|
+
/** Host storage implementation. */
|
|
22
|
+
storage: PersistedStateStorage<TStored>;
|
|
23
|
+
/** Host serialization implementation. */
|
|
24
|
+
codec: PersistedStateCodec<T, TStored>;
|
|
25
|
+
}
|
|
26
|
+
/** Initializes once from storage and preserves in-memory updates when persistence fails. */
|
|
27
|
+
export declare const usePersistedState: <T, TStored>({ key, initialValue, storage, codec, }: UsePersistedStateOptions<T, TStored>) => [T, (value: T) => void];
|
|
28
|
+
//# sourceMappingURL=usePersistedState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePersistedState.d.ts","sourceRoot":"","sources":["../../../src/shared/usePersistedState/usePersistedState.ts"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,MAAM,WAAW,qBAAqB,CAAC,OAAO;IAC5C,8BAA8B;IAC9B,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IAClD,+BAA+B;IAC/B,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9C;AACD,iCAAiC;AACjC,MAAM,WAAW,mBAAmB,CAAC,CAAC,EAAE,OAAO;IAC7C,wCAAwC;IACxC,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC,CAAC;IAC9B,wCAAwC;IACxC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC;CAC/B;AACD,oDAAoD;AACpD,MAAM,WAAW,wBAAwB,CAAC,CAAC,EAAE,OAAO;IAClD,8BAA8B;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,YAAY,EAAE,CAAC,CAAC;IAChB,mCAAmC;IACnC,OAAO,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACxC,yCAAyC;IACzC,KAAK,EAAE,mBAAmB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;CACxC;AACD,4FAA4F;AAC5F,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAE,OAAO,EAAE,wCAK3C,wBAAwB,CAAC,CAAC,EAAE,OAAO,CAAC,KAAG,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAuB/D,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useCallback as e, useState as t } from "react";
|
|
2
|
+
//#region src/shared/usePersistedState/usePersistedState.ts
|
|
3
|
+
var n = ({ key: n, initialValue: r, storage: i, codec: a }) => {
|
|
4
|
+
let [o, s] = t(() => {
|
|
5
|
+
try {
|
|
6
|
+
let e = i.read(n);
|
|
7
|
+
return e == null ? r : a.decode(e);
|
|
8
|
+
} catch {
|
|
9
|
+
return r;
|
|
10
|
+
}
|
|
11
|
+
}), c = i.write, l = a.encode;
|
|
12
|
+
return [o, e((e) => {
|
|
13
|
+
s(e);
|
|
14
|
+
try {
|
|
15
|
+
c(n, l(e));
|
|
16
|
+
} catch {}
|
|
17
|
+
}, [
|
|
18
|
+
n,
|
|
19
|
+
c,
|
|
20
|
+
l
|
|
21
|
+
])];
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { n as usePersistedState };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AttachResult } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
import { DialFile } from '@epam/ai-dial-react-file-manager';
|
|
3
|
+
/** Host materialization and notification callbacks. */
|
|
4
|
+
export interface UseSkillFileSystemPickerOptions<T> {
|
|
5
|
+
/** Converts a selected file into the host's staged entry. */
|
|
6
|
+
materializeFile: (file: DialFile, signal: AbortSignal) => Promise<T>;
|
|
7
|
+
/** Reports a failure of the current selection only. */
|
|
8
|
+
onError: (error: unknown) => void;
|
|
9
|
+
}
|
|
10
|
+
/** Promise-based file selection controller. */
|
|
11
|
+
export interface UseSkillFileSystemPickerResult<T> {
|
|
12
|
+
/** Whether the selection modal is open. */
|
|
13
|
+
isOpen: boolean;
|
|
14
|
+
/** Starts a selection, cancelling any previous attempt. */
|
|
15
|
+
pickFromFileSystem: () => Promise<T[] | undefined>;
|
|
16
|
+
/** Materializes selected files in selection order. */
|
|
17
|
+
handleAttach: (result: AttachResult) => void;
|
|
18
|
+
/** Cancels the current attempt and closes the modal. */
|
|
19
|
+
handleClose: () => void;
|
|
20
|
+
}
|
|
21
|
+
/** Owns selection lifetime so obsolete downloads cannot settle a newer pick. */
|
|
22
|
+
export declare const useSkillFileSystemPicker: <T>({ materializeFile, onError, }: UseSkillFileSystemPickerOptions<T>) => UseSkillFileSystemPickerResult<T>;
|
|
23
|
+
//# sourceMappingURL=useSkillFileSystemPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSkillFileSystemPicker.d.ts","sourceRoot":"","sources":["../../../src/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAIjE,uDAAuD;AACvD,MAAM,WAAW,+BAA+B,CAAC,CAAC;IAChD,6DAA6D;IAC7D,eAAe,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IACrE,uDAAuD;IACvD,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACnC;AAED,+CAA+C;AAC/C,MAAM,WAAW,8BAA8B,CAAC,CAAC;IAC/C,2CAA2C;IAC3C,MAAM,EAAE,OAAO,CAAC;IAChB,2DAA2D;IAC3D,kBAAkB,EAAE,MAAM,OAAO,CAAC,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACnD,sDAAsD;IACtD,YAAY,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC7C,wDAAwD;IACxD,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAQD,gFAAgF;AAChF,eAAO,MAAM,wBAAwB,GAAI,CAAC,EAAE,+BAGzC,+BAA+B,CAAC,CAAC,CAAC,KAAG,8BAA8B,CAAC,CAAC,CAoDvE,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useCallback as e, useEffect as t, useRef as n, useState as r } from "react";
|
|
2
|
+
import { DialFileNodeType as i } from "@epam/ai-dial-ui-kit";
|
|
3
|
+
//#region src/skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.ts
|
|
4
|
+
var a = ({ materializeFile: a, onError: o }) => {
|
|
5
|
+
let [s, c] = r(!1), l = n(void 0), u = e(() => {
|
|
6
|
+
let e = l.current;
|
|
7
|
+
l.current = void 0, e?.controller.abort(), e?.resolve(void 0);
|
|
8
|
+
}, []);
|
|
9
|
+
t(() => u, [u]);
|
|
10
|
+
let d = e(() => (u(), c(!0), new Promise((e) => {
|
|
11
|
+
l.current = {
|
|
12
|
+
controller: new AbortController(),
|
|
13
|
+
resolve: e,
|
|
14
|
+
attaching: !1
|
|
15
|
+
};
|
|
16
|
+
})), [u]), f = e(() => {
|
|
17
|
+
u(), c(!1);
|
|
18
|
+
}, [u]);
|
|
19
|
+
return {
|
|
20
|
+
isOpen: s,
|
|
21
|
+
pickFromFileSystem: d,
|
|
22
|
+
handleAttach: e((e) => {
|
|
23
|
+
let t = l.current;
|
|
24
|
+
t && !t.attaching && (t.attaching = !0, c(!1), (async () => {
|
|
25
|
+
try {
|
|
26
|
+
let n = await Promise.all(e.files.filter((e) => e.nodeType === i.ITEM).map((e) => a(e, t.controller.signal)));
|
|
27
|
+
if (l.current !== t) return;
|
|
28
|
+
l.current = void 0, t.resolve(n);
|
|
29
|
+
} catch (e) {
|
|
30
|
+
if (l.current !== t) return;
|
|
31
|
+
u(), o(e);
|
|
32
|
+
}
|
|
33
|
+
})());
|
|
34
|
+
}, [
|
|
35
|
+
a,
|
|
36
|
+
o,
|
|
37
|
+
u
|
|
38
|
+
]),
|
|
39
|
+
handleClose: f
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { a as useSkillFileSystemPicker };
|
package/skill-editor.js
CHANGED
|
@@ -6,4 +6,5 @@ import { SkillEditorLoadState as C, useSkillEditorLoad as w } from "./skill/useS
|
|
|
6
6
|
import { useSkillEditorSubmit as T } from "./skill/useSkillEditorSubmit.js";
|
|
7
7
|
import { useSkillFileActions as E } from "./skill/useSkillFileActions.js";
|
|
8
8
|
import { SkillArchiveImportErrorKind as D, SkillArchiveImportStatus as O, SkillArchiveSelectionRejectionReason as k, classifySkillArchiveImportError as A, useSkillArchiveImport as j } from "./skill/useSkillArchiveImport/useSkillArchiveImport.js";
|
|
9
|
-
|
|
9
|
+
import { useSkillFileSystemPicker as M } from "./skill-editor/useSkillFileSystemPicker/useSkillFileSystemPicker.js";
|
|
10
|
+
export { e as SKILL_FILE_UPLOAD_MAX_BYTES, t as SKILL_FOLDER_MARKER, n as SKILL_MANIFEST_FILE, r as SKILL_TEXT_FIELD_MAX_LENGTHS, i as SKILL_UPLOAD_MAX_FILES, a as SKILL_UPLOAD_MAX_TOTAL_BYTES, D as SkillArchiveImportErrorKind, O as SkillArchiveImportStatus, k as SkillArchiveSelectionRejectionReason, C as SkillEditorLoadState, o as buildSkillFilesPayload, s as buildSkillManifest, c as buildSkillManifestForSubmit, l as buildSkillManifestFromFrontmatter, A as classifySkillArchiveImportError, u as getSkillFieldLengthViolations, d as isSkillFolderMarkerPath, f as isValidSkillRelativePath, p as nameFromPath, m as normalizeSkillName, h as parseSkillManifest, b as parseSkillManifestDocument, g as skillFileBytesToBlob, S as skillFileToAttachment, _ as skillFolderMarkerParent, v as startsWithFrontmatterBlock, y as unpackSkillArchive, j as useSkillArchiveImport, w as useSkillEditorLoad, T as useSkillEditorSubmit, E as useSkillFileActions, M as useSkillFileSystemPicker, x as validateSkillFileBatch };
|
package/utils.js
CHANGED
|
@@ -14,4 +14,6 @@ import { getBrowserTimezone as B } from "./shared/browser-timezone.js";
|
|
|
14
14
|
import { isValidAbsoluteUrl as V, isValidFeaturesData as H, parseFeaturesData as U } from "./shared/custom-apps.js";
|
|
15
15
|
import { buildExternalServiceScopeId as W, getExternalServiceFallbackName as G, parseExternalServiceUrl as K } from "./shared/external-services.js";
|
|
16
16
|
import { useUsageData as q } from "./usage/useUsageData/useUsageData.js";
|
|
17
|
-
|
|
17
|
+
import { triggerBrowserDownload as J } from "./files/browser-download.js";
|
|
18
|
+
import { usePersistedState as Y } from "./shared/usePersistedState/usePersistedState.js";
|
|
19
|
+
export { D as PROMPT_CONTENT_MAX_LENGTH, O as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, k as PROMPT_DESCRIPTION_MAX_LENGTH, A as PROMPT_NAME_MAX_LENGTH, j as PromptFieldError, y as PromptSource, R as apSchedulerDayToJsDay, d as appendLocaleCode, f as buildAdditionalLocaleOptions, W as buildExternalServiceScopeId, w as buildPromptExportEnvelope, T as buildPromptExportFileName, M as buildPromptPath, p as composeLocalePayload, i as createCsrfMiddleware, a as createUnauthorizedMiddleware, m as decomposeLocalizedFields, _ as formatCalendarDate, e as getApiErrorDetails, t as getApiErrorMessage, n as getApiErrorStatus, B as getBrowserTimezone, G as getExternalServiceFallbackName, N as getRemainingCharacters, x as getRunnerSchemas, o as includesIgnoreCase, r as isConversationNotFoundError, S as isCustomAppSchema, C as isQuickAppSchema, V as isValidAbsoluteUrl, H as isValidFeaturesData, z as jsDayToApSchedulerDay, v as padTwoDigits, K as parseExternalServiceUrl, U as parseFeaturesData, b as parsePromptResourceUrl, h as resolveLocalizedText, s as safeDecodeURI, c as safeDecodeURIComponent, E as serializePromptExport, l as stripSurroundingSlashes, u as stripTrailingSlashes, g as toBaseLocale, J as triggerBrowserDownload, Y as usePersistedState, L as usePromptsState, q as useUsageData, P as validatePromptContent, F as validatePromptDescription, I as validatePromptName };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** Canvas width calculation mode. */
|
|
2
|
+
export declare enum CanvasWidthMode {
|
|
3
|
+
BoundedPanel = "bounded-panel",
|
|
4
|
+
Conversation = "conversation"
|
|
5
|
+
}
|
|
6
|
+
/** Host-owned numeric layout policy. */
|
|
7
|
+
export interface CanvasWidthPolicy {
|
|
8
|
+
/** Bounded-panel minimum width. */
|
|
9
|
+
minWidth: number;
|
|
10
|
+
/** Bounded-panel preferred maximum width. */
|
|
11
|
+
defaultMaxWidth: number;
|
|
12
|
+
/** Bounded-panel viewport share. */
|
|
13
|
+
widthRatio: number;
|
|
14
|
+
/** Minimum content budget used by conversation mode. */
|
|
15
|
+
minContentWidth: number;
|
|
16
|
+
}
|
|
17
|
+
/** Inputs for canvas width calculation. */
|
|
18
|
+
export interface ResolveCanvasWidthParams {
|
|
19
|
+
/** Calculation mode. */
|
|
20
|
+
mode: CanvasWidthMode;
|
|
21
|
+
/** Whether the panel fills the viewport. */
|
|
22
|
+
isMobile: boolean;
|
|
23
|
+
/** Viewport width in pixels. */
|
|
24
|
+
viewportWidth: number;
|
|
25
|
+
/** Available width in pixels. */
|
|
26
|
+
maxWidth: number;
|
|
27
|
+
/** Host layout values. */
|
|
28
|
+
policy: CanvasWidthPolicy;
|
|
29
|
+
}
|
|
30
|
+
/** Initial and minimum canvas widths in pixels. */
|
|
31
|
+
export interface CanvasWidth {
|
|
32
|
+
/** Initial width. */
|
|
33
|
+
defaultWidth: number;
|
|
34
|
+
/** Bounded-panel minimum; undefined in conversation mode. */
|
|
35
|
+
minWidth: number | undefined;
|
|
36
|
+
}
|
|
37
|
+
/** Calculates canvas width using the supplied numeric policy. */
|
|
38
|
+
export declare const resolveCanvasWidth: ({ mode, isMobile, viewportWidth, maxWidth, policy, }: ResolveCanvasWidthParams) => CanvasWidth;
|
|
39
|
+
//# sourceMappingURL=canvas-width.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canvas-width.d.ts","sourceRoot":"","sources":["../../src/viewport-layout/canvas-width.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,oBAAY,eAAe;IACzB,YAAY,kBAAkB;IAC9B,YAAY,iBAAiB;CAC9B;AACD,wCAAwC;AACxC,MAAM,WAAW,iBAAiB;IAChC,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,eAAe,EAAE,MAAM,CAAC;IACxB,oCAAoC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,eAAe,EAAE,MAAM,CAAC;CACzB;AACD,2CAA2C;AAC3C,MAAM,WAAW,wBAAwB;IACvC,wBAAwB;IACxB,IAAI,EAAE,eAAe,CAAC;IACtB,4CAA4C;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB,gCAAgC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,MAAM,EAAE,iBAAiB,CAAC;CAC3B;AACD,mDAAmD;AACnD,MAAM,WAAW,WAAW;IAC1B,qBAAqB;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AACD,iEAAiE;AACjE,eAAO,MAAM,kBAAkB,GAAI,sDAMhC,wBAAwB,KAAG,WAmB7B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/viewport-layout/canvas-width.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.BoundedPanel = "bounded-panel", e.Conversation = "conversation", e;
|
|
4
|
+
}({}), t = ({ mode: e, isMobile: t, viewportWidth: n, maxWidth: r, policy: i }) => {
|
|
5
|
+
let a = e === "bounded-panel" ? i.minWidth : void 0;
|
|
6
|
+
if (t) return {
|
|
7
|
+
defaultWidth: n,
|
|
8
|
+
minWidth: a
|
|
9
|
+
};
|
|
10
|
+
if (e === "bounded-panel") {
|
|
11
|
+
let e = Math.round(n * i.widthRatio), t = Math.max(i.minWidth, Math.min(i.defaultMaxWidth, e));
|
|
12
|
+
return {
|
|
13
|
+
defaultWidth: Math.min(r, t),
|
|
14
|
+
minWidth: a
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
defaultWidth: Math.min(r, Math.round((r + i.minContentWidth) * .5)),
|
|
19
|
+
minWidth: a
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { e as CanvasWidthMode, t as resolveCanvasWidth };
|
package/viewport-layout.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { usePageFileDrag as e } from "./usePageFileDrag/usePageFileDrag.js";
|
|
2
2
|
import { useViewportWidth as t } from "./useViewportWidth/useViewportWidth.js";
|
|
3
3
|
import { usePanelMaxWidth as n } from "./usePanelMaxWidth/usePanelMaxWidth.js";
|
|
4
|
-
|
|
4
|
+
import { CanvasWidthMode as r, resolveCanvasWidth as i } from "./viewport-layout/canvas-width.js";
|
|
5
|
+
export { r as CanvasWidthMode, i as resolveCanvasWidth, e as usePageFileDrag, n as usePanelMaxWidth, t as useViewportWidth };
|