@epam/ai-dial-chat-hooks 1.3.0-dev.256 → 1.3.0-dev.260

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.
Files changed (64) hide show
  1. package/catalog/catalog-entity-kind.d.ts +31 -0
  2. package/catalog/catalog-entity-kind.d.ts.map +1 -0
  3. package/catalog/catalog-entity-kind.js +21 -0
  4. package/catalog.js +12 -11
  5. package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +1 -1
  6. package/conversation/useConversationStream/generation-resume.d.ts.map +1 -1
  7. package/conversation/useConversationStream/generation-resume.js +57 -85
  8. package/conversation/useDeploymentChangeTracking.d.ts.map +1 -1
  9. package/conversation-sources/stage-citations.d.ts +9 -0
  10. package/conversation-sources/stage-citations.d.ts.map +1 -0
  11. package/conversation-sources/stage-citations.js +8 -0
  12. package/conversation-sources.js +3 -1
  13. package/entry-points/catalog.d.ts +1 -0
  14. package/entry-points/catalog.d.ts.map +1 -1
  15. package/entry-points/conversation-sources.d.ts +1 -0
  16. package/entry-points/conversation-sources.d.ts.map +1 -1
  17. package/entry-points/scheduled-tasks.d.ts +1 -0
  18. package/entry-points/scheduled-tasks.d.ts.map +1 -1
  19. package/entry-points/skills-state.d.ts +1 -0
  20. package/entry-points/skills-state.d.ts.map +1 -1
  21. package/entry-points/utils.d.ts +2 -0
  22. package/entry-points/utils.d.ts.map +1 -1
  23. package/external-services/useExternalServiceLogin.d.ts +6 -0
  24. package/external-services/useExternalServiceLogin.d.ts.map +1 -1
  25. package/external-services/useExternalServiceLogin.js +14 -12
  26. package/external-services.js +1 -1
  27. package/file-manager.js +22 -22
  28. package/files/create-upload-file-with-progress.d.ts +17 -0
  29. package/files/create-upload-file-with-progress.d.ts.map +1 -1
  30. package/files/create-upload-file-with-progress.js +34 -26
  31. package/index.d.ts +6 -0
  32. package/index.d.ts.map +1 -1
  33. package/index.js +165 -159
  34. package/package.json +17 -17
  35. package/project/project-events.d.ts +14 -0
  36. package/project/project-events.d.ts.map +1 -0
  37. package/project/project-events.js +24 -0
  38. package/project/projects-api-client.d.ts +8 -1
  39. package/project/projects-api-client.d.ts.map +1 -1
  40. package/project/projects-api-client.js +5 -0
  41. package/project/use-projects.d.ts +12 -4
  42. package/project/use-projects.d.ts.map +1 -1
  43. package/project/use-projects.js +92 -27
  44. package/scheduled-task/scheduled-task-next-occurrence.d.ts +9 -0
  45. package/scheduled-task/scheduled-task-next-occurrence.d.ts.map +1 -0
  46. package/scheduled-task/scheduled-task-next-occurrence.js +20 -0
  47. package/scheduled-task/useActiveScheduledTaskDetails.d.ts.map +1 -1
  48. package/scheduled-tasks.js +6 -5
  49. package/shared/client-channel.d.ts +53 -0
  50. package/shared/client-channel.d.ts.map +1 -0
  51. package/shared/client-channel.js +6 -0
  52. package/shared/read-sse-events.d.ts +10 -0
  53. package/shared/read-sse-events.d.ts.map +1 -0
  54. package/shared/read-sse-events.js +33 -0
  55. package/shared/theme-colors.d.ts +16 -0
  56. package/shared/theme-colors.d.ts.map +1 -0
  57. package/shared/theme-colors.js +14 -0
  58. package/skill/skill-lookup.d.ts +20 -0
  59. package/skill/skill-lookup.d.ts.map +1 -0
  60. package/skill/skill-lookup.js +12 -0
  61. package/skill-editor/useSkillFilePreviewSyncController.d.ts.map +1 -1
  62. package/skills-state.js +3 -1
  63. package/usage/map-user-usage-to-model-limits.d.ts.map +1 -1
  64. package/utils.js +6 -4
@@ -0,0 +1,31 @@
1
+ import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
2
+ import { QuickAppSchemaLike } from '../shared/application-schema';
3
+ /** What a catalog item is, with an `Agent` item narrowed by its application schema. */
4
+ export declare enum CatalogEntityKind {
5
+ /** A model deployment. */
6
+ Model = "model",
7
+ /** An application whose kind cannot be told: unknown deployment, or a schema that is not loaded. */
8
+ Agent = "agent",
9
+ /** An application of the QuickApp schema. */
10
+ QuickApp = "quickApp",
11
+ /** An application of another known schema, named by that schema's display name. */
12
+ SchemaApp = "schemaApp",
13
+ /** An application with no schema. */
14
+ CustomApp = "customApp",
15
+ /** A toolset. */
16
+ Toolset = "toolset",
17
+ /** A skill. */
18
+ Skill = "skill",
19
+ /** A prompt. */
20
+ Prompt = "prompt"
21
+ }
22
+ /** Minimal deployment shape needed to tell the kind of an `Agent` catalog item. */
23
+ export interface CatalogEntityKindDeployment {
24
+ /** Id of the application schema driving the application; absent or `null` for a custom app. */
25
+ applicationTypeSchemaId?: string | null;
26
+ }
27
+ /** Returns the display name of the schema with `schemaId`, or `undefined` when it is not in `schemas` or has none. */
28
+ export declare const findSchemaDisplayName: (schemas: QuickAppSchemaLike[], schemaId: string | null | undefined) => string | undefined;
29
+ /** Returns the kind of a catalog item, telling a quick, schema or custom app apart by its deployment's schema. */
30
+ export declare const resolveCatalogEntityKind: (type: CatalogEntityType, deployment?: CatalogEntityKindDeployment, schemas?: QuickAppSchemaLike[]) => CatalogEntityKind;
31
+ //# sourceMappingURL=catalog-entity-kind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog-entity-kind.d.ts","sourceRoot":"","sources":["../../src/catalog/catalog-entity-kind.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,8BAA8B,CAAC;AAEtC,uFAAuF;AACvF,oBAAY,iBAAiB;IAC3B,0BAA0B;IAC1B,KAAK,UAAU;IACf,oGAAoG;IACpG,KAAK,UAAU;IACf,6CAA6C;IAC7C,QAAQ,aAAa;IACrB,mFAAmF;IACnF,SAAS,cAAc;IACvB,qCAAqC;IACrC,SAAS,cAAc;IACvB,iBAAiB;IACjB,OAAO,YAAY;IACnB,eAAe;IACf,KAAK,UAAU;IACf,gBAAgB;IAChB,MAAM,WAAW;CAClB;AAED,mFAAmF;AACnF,MAAM,WAAW,2BAA2B;IAC1C,+FAA+F;IAC/F,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC;AAUD,sHAAsH;AACtH,eAAO,MAAM,qBAAqB,GAChC,SAAS,kBAAkB,EAAE,EAC7B,UAAU,MAAM,GAAG,IAAI,GAAG,SAAS,KAClC,MAAM,GAAG,SAGG,CAAC;AAEhB,kHAAkH;AAClH,eAAO,MAAM,wBAAwB,GACnC,MAAM,iBAAiB,EACvB,aAAa,2BAA2B,EACxC,UAAS,kBAAkB,EAAO,KACjC,iBAcF,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { isQuickAppSchema as e } from "../shared/application-schema.js";
2
+ import { CatalogEntityType as t } from "@epam/ai-dial-chat-shared";
3
+ //#region src/catalog/catalog-entity-kind.ts
4
+ var n = /* @__PURE__ */ function(e) {
5
+ return e.Model = "model", e.Agent = "agent", e.QuickApp = "quickApp", e.SchemaApp = "schemaApp", e.CustomApp = "customApp", e.Toolset = "toolset", e.Skill = "skill", e.Prompt = "prompt", e;
6
+ }({}), r = {
7
+ [t.Model]: "model",
8
+ [t.Agent]: "agent",
9
+ [t.Toolset]: "toolset",
10
+ [t.Skill]: "skill",
11
+ [t.Prompt]: "prompt"
12
+ }, i = (e, t) => t ? e.find((e) => e.id === t)?.displayName : void 0, a = (n, i, a = []) => {
13
+ if (n !== t.Agent) return r[n];
14
+ if (i == null) return "agent";
15
+ let o = i.applicationTypeSchemaId;
16
+ if (!o) return "customApp";
17
+ let s = a.find((e) => e.id === o) ?? { id: o };
18
+ return e(s) ? "quickApp" : s.displayName ? "schemaApp" : "agent";
19
+ };
20
+ //#endregion
21
+ export { n as CatalogEntityKind, i as findSchemaDisplayName, a as resolveCatalogEntityKind };
package/catalog.js CHANGED
@@ -12,14 +12,15 @@ import { buildSkillContentTree as M, buildSkillOverview as N, mapSkillToCatalogI
12
12
  import { McpResourceKind as B, buildApplicationMcpUrl as V, buildConnectApi as H, buildToolsetMcpUrl as U, resolveMcpResourceKind as W } from "./catalog/mcp-endpoint-url.js";
13
13
  import { getPublicCatalogEntityFolderPath as G, isPublicCatalogEntityId as K, mapPublishConversationResultDto as q, mapPublishHistoryEntryDto as J, toPublishEntityType as Y } from "./catalog/publish.js";
14
14
  import { deriveAvailableTabIds as X, deriveFavoriteItems as Z, filterCatalogItemsBySelector as Q, filterHiddenOwnedItems as $, reconcileFilterTopics as ee } from "./catalog/catalog-derivations.js";
15
- import { CatalogPrimaryActionType as te, resolveCatalogPrimaryAction as ne } from "./catalog/catalog-primary-action.js";
16
- import { useCatalogEditNavigation as re } from "./catalog/useCatalogEditNavigation/useCatalogEditNavigation.js";
17
- import { useSkillItemDetails as ie } from "./catalog/useSkillItemDetails.js";
18
- import { useCatalogItemDetails as ae } from "./catalog/useCatalogItemDetails.js";
19
- import { useCatalogToolsetCredentials as oe } from "./catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js";
20
- import { useApplicationCredentials as se } from "./catalog/useApplicationCredentials/useApplicationCredentials.js";
21
- import { useSkillDetailsPanelData as ce } from "./catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.js";
22
- import { FavoriteEntityType as le, useFavoriteEntitiesState as ue } from "./catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js";
23
- import { usePublishFolders as de } from "./catalog/usePublishFolders/usePublishFolders.js";
24
- import { SkillPreviewErrorKind as fe, useSkillFilePreview as pe } from "./skill/useSkillFilePreview.js";
25
- export { u as AuthenticationType, te as CatalogPrimaryActionType, m as DEFAULT_ENTITY_DETAILS_LABELS, le as FavoriteEntityType, B as McpResourceKind, E as PUBLIC_SKILL_BUCKET, D as SKILL_LISTING_MAX_PAGES, O as SKILL_LISTING_PAGE_SIZE, k as SKILL_MANIFEST_MAX_BYTES, fe as SkillPreviewErrorKind, A as SkillSource, V as buildApplicationMcpUrl, n as buildChatCompletionsUrl, H as buildConnectApi, r as buildDeploymentConnectApi, C as buildPromptOverview, d as buildResetFields, i as buildResponsesUrl, M as buildSkillContentTree, N as buildSkillOverview, U as buildToolsetMcpUrl, a as createDeploymentLookup, e as createPublishApiClient, o as decodeDeploymentId, X as deriveAvailableTabIds, Z as deriveFavoriteItems, s as encodeDeploymentId, Q as filterCatalogItemsBySelector, $ as filterHiddenOwnedItems, c as findDeploymentByIdOrReference, G as getPublicCatalogEntityFolderPath, w as isOrganisationPromptItem, K as isPublicCatalogEntityId, h as mapDeploymentDetailsDtoToEntityDetails, p as mapDeploymentLimitsDtoToCatalogLimits, f as mapDeploymentLimitsToInput, v as mapDeploymentToCatalogItem, y as mapDeploymentToolsetCredentials, g as mapEntityDetailsToCatalogDetails, T as mapPromptToCatalogItem, q as mapPublishConversationResultDto, J as mapPublishHistoryEntryDto, P as mapSkillToCatalogItem, _ as mapToolsetCredentials, b as mapToolsetToCatalogItem, l as normalizeDeploymentId, j as parseSkillResourceUrl, F as readSkillFileBytes, I as readSkillFilePreviewBytes, L as readSkillManifest, ee as reconcileFilterTopics, ne as resolveCatalogPrimaryAction, x as resolveDeploymentFolder, W as resolveMcpResourceKind, R as resolveSkillFileDownloadPath, z as resolveSkillManifestFileId, S as supportsChatInterface, Y as toPublishEntityType, t as toPublishRuleDto, se as useApplicationCredentials, re as useCatalogEditNavigation, ae as useCatalogItemDetails, oe as useCatalogToolsetCredentials, ue as useFavoriteEntitiesState, de as usePublishFolders, ce as useSkillDetailsPanelData, pe as useSkillFilePreview, ie as useSkillItemDetails };
15
+ import { CatalogEntityKind as te, findSchemaDisplayName as ne, resolveCatalogEntityKind as re } from "./catalog/catalog-entity-kind.js";
16
+ import { CatalogPrimaryActionType as ie, resolveCatalogPrimaryAction as ae } from "./catalog/catalog-primary-action.js";
17
+ import { useCatalogEditNavigation as oe } from "./catalog/useCatalogEditNavigation/useCatalogEditNavigation.js";
18
+ import { useSkillItemDetails as se } from "./catalog/useSkillItemDetails.js";
19
+ import { useCatalogItemDetails as ce } from "./catalog/useCatalogItemDetails.js";
20
+ import { useCatalogToolsetCredentials as le } from "./catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js";
21
+ import { useApplicationCredentials as ue } from "./catalog/useApplicationCredentials/useApplicationCredentials.js";
22
+ import { useSkillDetailsPanelData as de } from "./catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.js";
23
+ import { FavoriteEntityType as fe, useFavoriteEntitiesState as pe } from "./catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js";
24
+ import { usePublishFolders as me } from "./catalog/usePublishFolders/usePublishFolders.js";
25
+ import { SkillPreviewErrorKind as he, useSkillFilePreview as ge } from "./skill/useSkillFilePreview.js";
26
+ export { u as AuthenticationType, te as CatalogEntityKind, ie as CatalogPrimaryActionType, m as DEFAULT_ENTITY_DETAILS_LABELS, fe as FavoriteEntityType, B as McpResourceKind, E as PUBLIC_SKILL_BUCKET, D as SKILL_LISTING_MAX_PAGES, O as SKILL_LISTING_PAGE_SIZE, k as SKILL_MANIFEST_MAX_BYTES, he as SkillPreviewErrorKind, A as SkillSource, V as buildApplicationMcpUrl, n as buildChatCompletionsUrl, H as buildConnectApi, r as buildDeploymentConnectApi, C as buildPromptOverview, d as buildResetFields, i as buildResponsesUrl, M as buildSkillContentTree, N as buildSkillOverview, U as buildToolsetMcpUrl, a as createDeploymentLookup, e as createPublishApiClient, o as decodeDeploymentId, X as deriveAvailableTabIds, Z as deriveFavoriteItems, s as encodeDeploymentId, Q as filterCatalogItemsBySelector, $ as filterHiddenOwnedItems, c as findDeploymentByIdOrReference, ne as findSchemaDisplayName, G as getPublicCatalogEntityFolderPath, w as isOrganisationPromptItem, K as isPublicCatalogEntityId, h as mapDeploymentDetailsDtoToEntityDetails, p as mapDeploymentLimitsDtoToCatalogLimits, f as mapDeploymentLimitsToInput, v as mapDeploymentToCatalogItem, y as mapDeploymentToolsetCredentials, g as mapEntityDetailsToCatalogDetails, T as mapPromptToCatalogItem, q as mapPublishConversationResultDto, J as mapPublishHistoryEntryDto, P as mapSkillToCatalogItem, _ as mapToolsetCredentials, b as mapToolsetToCatalogItem, l as normalizeDeploymentId, j as parseSkillResourceUrl, F as readSkillFileBytes, I as readSkillFilePreviewBytes, L as readSkillManifest, ee as reconcileFilterTopics, re as resolveCatalogEntityKind, ae as resolveCatalogPrimaryAction, x as resolveDeploymentFolder, W as resolveMcpResourceKind, R as resolveSkillFileDownloadPath, z as resolveSkillManifestFileId, S as supportsChatInterface, Y as toPublishEntityType, t as toPublishRuleDto, ue as useApplicationCredentials, oe as useCatalogEditNavigation, ce as useCatalogItemDetails, le as useCatalogToolsetCredentials, pe as useFavoriteEntitiesState, me as usePublishFolders, de as useSkillDetailsPanelData, ge as useSkillFilePreview, se as useSkillItemDetails };
@@ -1 +1 @@
1
- {"version":3,"file":"useConversationPanelItems.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationPanelItems/useConversationPanelItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAA8B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAOnE;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,MAAM,IAAI,CAAC,uBAAuB,EAAE,cAAc,GAAG,iBAAiB,CAAC,KACtE,SAIF,CAAC;AAEF,oFAAoF;AACpF,MAAM,WAAW,kCAAkC;IACjD,0EAA0E;IAC1E,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;IAC9C,sFAAsF;IACtF,cAAc,EAAE,CACd,UAAU,EAAE,iBAAiB,GAAG,SAAS,KACtC,MAAM,GAAG,SAAS,CAAC;IACxB;;;OAGG;IACH,kBAAkB,EAAE,CAClB,UAAU,EAAE,iBAAiB,GAAG,SAAS,EACzC,QAAQ,EAAE,MAAM,KACb,MAAM,GAAG,SAAS,CAAC;IACxB,6EAA6E;IAC7E,WAAW,EAAE,CAAC,mBAAmB,EAAE,MAAM,KAAK,MAAM,CAAC;IACrD;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,CACxB,IAAI,EAAE,uBAAuB,KAC1B;QAAE,WAAW,CAAC,EAAE,SAAS,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS,CAAC;CACjE;AAED,0DAA0D;AAC1D,MAAM,WAAW,+BAAgC,SAAQ,kCAAkC;IACzF,0CAA0C;IAC1C,KAAK,EAAE,uBAAuB,EAAE,CAAC;IACjC,gEAAgE;IAChE,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,8EAA8E;IAC9E,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AA+BD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB,GAAI,gJASvC,+BAA+B;;;;;;;;;;;;GAmFjC,CAAC"}
1
+ {"version":3,"file":"useConversationPanelItems.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationPanelItems/useConversationPanelItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAA8B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAOnE;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,MAAM,IAAI,CAAC,uBAAuB,EAAE,cAAc,GAAG,iBAAiB,CAAC,KACtE,SAIF,CAAC;AAEF,oFAAoF;AACpF,MAAM,WAAW,kCAAkC;IACjD,0EAA0E;IAC1E,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;IAC9C,sFAAsF;IACtF,cAAc,EAAE,CACd,UAAU,EAAE,iBAAiB,GAAG,SAAS,KACtC,MAAM,GAAG,SAAS,CAAC;IACxB;;;OAGG;IACH,kBAAkB,EAAE,CAClB,UAAU,EAAE,iBAAiB,GAAG,SAAS,EACzC,QAAQ,EAAE,MAAM,KACb,MAAM,GAAG,SAAS,CAAC;IACxB,6EAA6E;IAC7E,WAAW,EAAE,CAAC,mBAAmB,EAAE,MAAM,KAAK,MAAM,CAAC;IACrD;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,CACxB,IAAI,EAAE,uBAAuB,KAC1B;QAAE,WAAW,CAAC,EAAE,SAAS,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS,CAAC;CACjE;AAED,0DAA0D;AAC1D,MAAM,WAAW,+BAAgC,SAAQ,kCAAkC;IACzF,0CAA0C;IAC1C,KAAK,EAAE,uBAAuB,EAAE,CAAC;IACjC,gEAAgE;IAChE,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,8EAA8E;IAC9E,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AA+BD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB,GAAI,gJASvC,+BAA+B;;;;;;;;;;;;GAoFjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"generation-resume.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationStream/generation-resume.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,OAAO,EAEb,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAOxE,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAE3E;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,OAAO,KAAG,OAWtD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,GAC5C,cAAc,YAAY,KACzB,MAKA,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,GACrC,cAAc,YAAY,KACzB,OAUF,CAAC;AA6BF,eAAO,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OAAO,KACrB,IAAI,CAAC;IACV,2DAA2D;IAC3D,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,iFAAiF;IACjF,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACxD,kGAAkG;IAClG,2BAA2B,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3E;;;OAGG;IACH,yBAAyB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1E;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gCAAgC,GAAI,wTAgB9C,8BAA8B,MAE7B,uBAAuB,MAAM,EAC7B,cAAc,YAAY,EAC1B,UAAS,uBAA4B,KACpC,IA6SJ,CAAC"}
1
+ {"version":3,"file":"generation-resume.d.ts","sourceRoot":"","sources":["../../../src/conversation/useConversationStream/generation-resume.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,OAAO,EAEb,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAQxE,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAE3E;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,OAAO,KAAG,OAWtD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,GAC5C,cAAc,YAAY,KACzB,MAKA,CAAC;AAEJ;;;;;;;GAOG;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EACZ,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAC1B,SAAS,EAAE,MAAM,OAAO,KACrB,IAAI,CAAC;IACV,2DAA2D;IAC3D,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,iFAAiF;IACjF,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACxD,kGAAkG;IAClG,2BAA2B,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3E;;;OAGG;IACH,yBAAyB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1E;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gCAAgC,GAAI,wTAgB9C,8BAA8B,MAE7B,uBAAuB,MAAM,EAC7B,cAAc,YAAY,EAC1B,UAAS,uBAA4B,KACpC,IA6SJ,CAAC"}
@@ -1,83 +1,55 @@
1
1
  import { safeDecodeURI as e } from "../../shared/string-utils.js";
2
2
  import { DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE as t, GenerationPersistenceError as n } from "../create-chat-stream-api.js";
3
- import { getConversationPath as r } from "./conversation-path.js";
4
- import { applyChunkToMessages as i } from "./apply-chunk.js";
5
- import { restoreBufferedMessage as a } from "./buffered-generation.js";
6
- import { BackgroundGenerationStatus as o, MessageRole as s } from "@epam/ai-dial-chat-shared";
3
+ import { readSseEvents as r } from "../../shared/read-sse-events.js";
4
+ import { getConversationPath as i } from "./conversation-path.js";
5
+ import { applyChunkToMessages as a } from "./apply-chunk.js";
6
+ import { restoreBufferedMessage as o } from "./buffered-generation.js";
7
+ import { BackgroundGenerationStatus as s, MessageRole as c } from "@epam/ai-dial-chat-shared";
7
8
  //#region src/conversation/useConversationStream/generation-resume.ts
8
- var c = (e) => {
9
+ var l = (e) => {
9
10
  let t = e.custom_content;
10
11
  return !!e.content || e.responseId != null || !!t?.attachments?.length || !!t?.stages?.length || !!t?.annotations?.length || !!t?.form_schema || t?.state != null;
11
- }, l = (e) => e.messages.findIndex((e) => e.backgroundGeneration?.status === o.Pending), u = (e) => {
12
- if (l(e) !== -1) return !0;
12
+ }, u = (e) => e.messages.findIndex((e) => e.backgroundGeneration?.status === s.Pending), d = (e) => {
13
+ if (u(e) !== -1) return !0;
13
14
  let t = e.messages[e.messages.length - 1];
14
- return !!t && t.role === s.Assistant && !c(t) && t.streamErrorMessage == null && !t.wasStoppedByUser;
15
- }, d = 3e5, f = "awaiting-resume", p = [
15
+ return !!t && t.role === c.Assistant && !l(t) && t.streamErrorMessage == null && !t.wasStoppedByUser;
16
+ }, f = 3e5, p = "awaiting-resume", m = [
16
17
  1e3,
17
18
  2e3,
18
19
  4e3,
19
20
  8e3,
20
21
  16e3
21
- ], m = (e) => new Promise((t) => {
22
+ ], h = (e) => new Promise((t) => {
22
23
  let n = typeof window < "u", r = () => {
23
24
  clearTimeout(i), n && window.removeEventListener("online", r), t();
24
25
  }, i = setTimeout(r, e);
25
26
  n && window.addEventListener("online", r);
26
- }), h = async (e, t, n) => {
27
- for (let r = 0; r <= p.length; r++) {
27
+ }), g = async (e, t, n) => {
28
+ for (let r = 0; r <= m.length; r++) {
28
29
  if (t()) return null;
29
30
  try {
30
31
  let t = await e();
31
32
  if (!n?.(t)) return t;
32
33
  } catch {}
33
- if (r === p.length) return null;
34
- await m(p[r]);
34
+ if (r === m.length) return null;
35
+ await h(m[r]);
35
36
  }
36
37
  return null;
37
- }, g = async (e, t) => {
38
- let n = e.getReader(), r = new TextDecoder(), i = "";
39
- try {
40
- for (;;) {
41
- let { done: e, value: a } = await n.read();
42
- if (e) break;
43
- i += r.decode(a, { stream: !0 });
44
- let o = i.split("\n");
45
- i = o.pop() ?? "";
46
- let s = !1;
47
- for (let e of o) {
48
- let n = e.trim();
49
- if (!n.startsWith("data:")) continue;
50
- let r = n.slice(5).trim(), i;
51
- try {
52
- i = JSON.parse(r);
53
- } catch {
54
- continue;
55
- }
56
- if (await t(i)) {
57
- s = !0;
58
- break;
59
- }
60
- }
61
- if (s) break;
62
- }
63
- } catch {} finally {
64
- n.releaseLock();
65
- }
66
- }, _ = ({ transport: o, setConversation: s, conversationRef: p, resumingPathsRef: m, bufferedGenerationsRef: h, addStreamingPath: _, removeStreamingPath: v, isPathDisplayed: y, generationPersistenceErrorMessage: b = t, frameScheduler: x, stoppedGenerationIdsRef: S, rememberResumedGenerationId: C, forgetResumedGenerationId: w, onReloadError: T, onReloadSuccess: E }) => (t, D, O = {}) => {
67
- if (!u(D)) {
38
+ }, _ = ({ transport: s, setConversation: c, conversationRef: m, resumingPathsRef: h, bufferedGenerationsRef: g, addStreamingPath: _, removeStreamingPath: v, isPathDisplayed: y, generationPersistenceErrorMessage: b = t, frameScheduler: x, stoppedGenerationIdsRef: S, rememberResumedGenerationId: C, forgetResumedGenerationId: w, onReloadError: T, onReloadSuccess: E }) => (t, D, O = {}) => {
39
+ if (!d(D)) {
68
40
  O.onSettled?.();
69
41
  return;
70
42
  }
71
- let k = r(t);
72
- if (!O.skipDedupe && m.current.has(k)) return;
73
- m.current.add(k), _(k);
74
- let A = l(D), j = A !== -1, M = j ? A : D.messages.length - 1, N = {
75
- generationId: f,
43
+ let k = i(t);
44
+ if (!O.skipDedupe && h.current.has(k)) return;
45
+ h.current.add(k), _(k);
46
+ let A = u(D), j = A !== -1, M = j ? A : D.messages.length - 1, N = {
47
+ generationId: p,
76
48
  messageIndex: M,
77
49
  message: O.seedMessage ?? D.messages[M]
78
50
  };
79
- h.current.set(k, N);
80
- let P = () => h.current.get(k) === N, F = j ? D.messages[M].backgroundGeneration?.generationId : void 0, I, L = () => {
51
+ g.current.set(k, N);
52
+ let P = () => g.current.get(k) === N, F = j ? D.messages[M].backgroundGeneration?.generationId : void 0, I, L = () => {
81
53
  let e = F ?? I;
82
54
  return e != null && (S?.current.has(e) ?? !1);
83
55
  }, R = (e) => {
@@ -88,88 +60,88 @@ var c = (e) => {
88
60
  I = void 0, S?.current.delete(e), w?.(k, e);
89
61
  }, B = (e, t = !1) => {
90
62
  if (x?.flush(k), F != null && S?.current.delete(F), z(), !P()) return;
91
- m.current.delete(k), v(k);
92
- let n = !j && e && e.messages.length - 1 === M && u(e) && c(N.message);
63
+ h.current.delete(k), v(k);
64
+ let n = !j && e && e.messages.length - 1 === M && d(e) && l(N.message);
93
65
  t || n ? (N.message = {
94
66
  ...N.message,
95
67
  streamErrorMessage: b
96
- }, y(k) && s((e) => {
68
+ }, y(k) && c((e) => {
97
69
  if (!e || !P() || !y(k)) return e;
98
- let t = a(e, N);
99
- return p.current = t, t;
100
- })) : (h.current.delete(k), e && y(k) && (s(e), p.current = e));
70
+ let t = o(e, N);
71
+ return m.current = t, t;
72
+ })) : (g.current.delete(k), e && y(k) && (c(e), m.current = e));
101
73
  }, V = async () => {
102
74
  if (P()) try {
103
- let n = await o.getConversation(e(t));
75
+ let n = await s.getConversation(e(t));
104
76
  if (!P()) return;
105
77
  E?.(k), B(n);
106
78
  } catch {
107
79
  if (!P()) return;
108
- x?.flush(k), m.current.delete(k), v(k), F != null && S?.current.delete(F), z(), T?.(k, V, P);
80
+ x?.flush(k), h.current.delete(k), v(k), F != null && S?.current.delete(F), z(), T?.(k, V, P);
109
81
  }
110
82
  }, H = (e) => {
111
- x?.cancel(k), P() && (N.message = e, y(k) && s((e) => {
83
+ x?.cancel(k), P() && (N.message = e, y(k) && c((e) => {
112
84
  if (!e || !P() || !y(k)) return e;
113
- let t = a(e, N);
114
- return p.current = t, t;
85
+ let t = o(e, N);
86
+ return m.current = t, t;
115
87
  }));
116
- }, U = () => s((e) => {
88
+ }, U = () => c((e) => {
117
89
  if (!e || !P() || !y(k)) return e;
118
- let t = a(e, N);
119
- return p.current = t, t;
90
+ let t = o(e, N);
91
+ return m.current = t, t;
120
92
  }), W = (e) => {
121
93
  if (!P() || L()) return;
122
- let t = i([N.message], 0, e);
94
+ let t = a([N.message], 0, e);
123
95
  t && (N.message = t[0]), y(k) && (x ? x.schedule(k, U) : U());
124
96
  }, G = async () => {
125
- let n = new AbortController(), r;
97
+ let n = new AbortController(), i;
126
98
  try {
127
- r = await o.watchConversation(k, n.signal);
99
+ i = await s.watchConversation(k, n.signal);
128
100
  } catch {
129
101
  await V();
130
102
  return;
131
103
  }
132
104
  try {
133
- let i = await o.getConversation(e(t));
134
- if (!u(i)) {
135
- n.abort(), r.cancel().catch(() => void 0), B(i);
105
+ let r = await s.getConversation(e(t));
106
+ if (!d(r)) {
107
+ n.abort(), i.cancel().catch(() => void 0), B(r);
136
108
  return;
137
109
  }
138
110
  } catch {}
139
- let i = !1, a = window.setTimeout(() => {
111
+ let a = !1, o = window.setTimeout(() => {
140
112
  n.abort();
141
- }, d);
113
+ }, f);
142
114
  try {
143
- await g(r, async (n) => {
115
+ await r(i, async (n) => {
144
116
  if (n?.action !== "UPDATE") return !1;
145
117
  try {
146
- let n = await o.getConversation(e(t));
147
- if (!u(n)) return B(n), i = !0, !0;
118
+ let n = await s.getConversation(e(t));
119
+ if (!d(n)) return B(n), a = !0, !0;
148
120
  } catch {}
149
121
  return !1;
150
122
  });
151
123
  } finally {
152
- clearTimeout(a);
124
+ clearTimeout(o);
153
125
  }
154
- i || await V();
126
+ a || await V();
155
127
  }, K = async () => {
156
128
  let e = new AbortController(), t;
157
129
  try {
158
- t = await o.attachToGeneration(k, e.signal);
130
+ t = await s.attachToGeneration(k, e.signal);
159
131
  } catch {
160
132
  return !1;
161
133
  }
162
- let r = !1, i = !1;
163
- return await g(t, (e) => {
134
+ let i = !1, a = !1;
135
+ return await r(t, (e) => {
164
136
  if (!P()) return !0;
165
137
  switch (e.type) {
166
138
  case "snapshot": return R(e.generationId), H(e.message), !1;
167
139
  case "chunk": return W(e.chunk), !1;
168
140
  case "done":
169
141
  case "error":
170
- case "stopped": return i = e.type === "error" && e.errorType === n.type, r = !0, !0;
142
+ case "stopped": return a = e.type === "error" && e.errorType === n.type, i = !0, !0;
171
143
  }
172
- }), r ? (i ? B(void 0, !0) : await V(), !0) : (z(), !P());
144
+ }), i ? (a ? B(void 0, !0) : await V(), !0) : (z(), !P());
173
145
  };
174
146
  (async () => {
175
147
  try {
@@ -180,4 +152,4 @@ var c = (e) => {
180
152
  })();
181
153
  };
182
154
  //#endregion
183
- export { p as RECOVERY_REFETCH_DELAYS_MS, _ as createResumeIfAwaitingGeneration, h as fetchConversationForRecovery, l as findPendingBackgroundMessageIndex, c as hasGeneratedPayload, u as isAwaitingGenerationResume };
155
+ export { m as RECOVERY_REFETCH_DELAYS_MS, _ as createResumeIfAwaitingGeneration, g as fetchConversationForRecovery, u as findPendingBackgroundMessageIndex, l as hasGeneratedPayload, d as isAwaitingGenerationResume };
@@ -1 +1 @@
1
- {"version":3,"file":"useDeploymentChangeTracking.d.ts","sourceRoot":"","sources":["../../src/conversation/useDeploymentChangeTracking.ts"],"names":[],"mappings":"AACA,wDAAwD;AACxD,MAAM,WAAW,+BAA+B;IAC9C,mEAAmE;IACnE,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,4CAA4C;IAC5C,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,qDAAqD;IACrD,QAAQ,EAAE,OAAO,CAAC;IAClB,8CAA8C;IAC9C,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AACD,2FAA2F;AAC3F,eAAO,MAAM,2BAA2B,GAAI,+DAKzC,+BAA+B,KAAG,IAoBpC,CAAC"}
1
+ {"version":3,"file":"useDeploymentChangeTracking.d.ts","sourceRoot":"","sources":["../../src/conversation/useDeploymentChangeTracking.ts"],"names":[],"mappings":"AAEA,wDAAwD;AACxD,MAAM,WAAW,+BAA+B;IAC9C,mEAAmE;IACnE,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,4CAA4C;IAC5C,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,qDAAqD;IACrD,QAAQ,EAAE,OAAO,CAAC;IAClB,8CAA8C;IAC9C,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AACD,2FAA2F;AAC3F,eAAO,MAAM,2BAA2B,GAAI,+DAKzC,+BAA+B,KAAG,IAoBpC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Stage } from '@epam/ai-dial-chat-shared';
2
+ /**
3
+ * Returns `stages` with citation markup in each stage's `content` prepared
4
+ * for rendering (hidden while streaming, unsupported shapes escaped), keeping
5
+ * every stage without `<cit` markup — and the array itself when none has
6
+ * any — by reference so memoized stage rows are not re-rendered.
7
+ */
8
+ export declare const prepareStageCitations: (stages: Stage[], isStreaming: boolean) => Stage[];
9
+ //# sourceMappingURL=stage-citations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stage-citations.d.ts","sourceRoot":"","sources":["../../src/conversation-sources/stage-citations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGvD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAChC,QAAQ,KAAK,EAAE,EACf,aAAa,OAAO,KACnB,KAAK,EAUP,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { prepareCitationContent as e } from "@epam/ai-dial-quotations";
2
+ //#region src/conversation-sources/stage-citations.ts
3
+ var t = (t, n) => t.some((e) => e.content?.includes("<cit")) ? t.map((t) => t.content?.includes("<cit") ? {
4
+ ...t,
5
+ content: e(t.content, n)
6
+ } : t) : t;
7
+ //#endregion
8
+ export { t as prepareStageCitations };
@@ -1 +1,3 @@
1
- export { useConversationSources } from "./conversation-sources/useConversationSources/useConversationSources.js";
1
+ import { useConversationSources as e } from "./conversation-sources/useConversationSources/useConversationSources.js";
2
+ import { prepareStageCitations as t } from "./conversation-sources/stage-citations.js";
3
+ export { t as prepareStageCitations, e as useConversationSources };
@@ -11,6 +11,7 @@ export * from '../catalog/map-skill-to-catalog-item';
11
11
  export * from '../catalog/mcp-endpoint-url';
12
12
  export * from '../catalog/publish';
13
13
  export * from '../catalog/catalog-derivations';
14
+ export * from '../catalog/catalog-entity-kind';
14
15
  export * from '../catalog/catalog-primary-action';
15
16
  export * from '../catalog/useCatalogEditNavigation/useCatalogEditNavigation';
16
17
  export * from '../catalog/useCatalogItemDetails';
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/entry-points/catalog.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,8DAA8D,CAAC;AAC7E,cAAc,kCAAkC,CAAC;AACjD,cAAc,sEAAsE,CAAC;AACrF,cAAc,gEAAgE,CAAC;AAC/E,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/entry-points/catalog.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,8DAA8D,CAAC;AAC7E,cAAc,kCAAkC,CAAC;AACjD,cAAc,sEAAsE,CAAC;AACrF,cAAc,gEAAgE,CAAC;AAC/E,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from '../conversation-sources/useConversationSources/useConversationSources';
2
+ export * from '../conversation-sources/stage-citations';
2
3
  //# sourceMappingURL=conversation-sources.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-sources.d.ts","sourceRoot":"","sources":["../../src/entry-points/conversation-sources.ts"],"names":[],"mappings":"AAAA,cAAc,uEAAuE,CAAC"}
1
+ {"version":3,"file":"conversation-sources.d.ts","sourceRoot":"","sources":["../../src/entry-points/conversation-sources.ts"],"names":[],"mappings":"AAAA,cAAc,uEAAuE,CAAC;AACtF,cAAc,yCAAyC,CAAC"}
@@ -3,6 +3,7 @@ export * from '../scheduled-task/scheduled-task-description';
3
3
  export * from '../scheduled-task/scheduled-task-preparation';
4
4
  export * from '../scheduled-task/scheduled-tasks-api-client';
5
5
  export * from '../scheduled-task/scheduled-task-trigger';
6
+ export * from '../scheduled-task/scheduled-task-next-occurrence';
6
7
  export * from '../scheduled-task/check-scheduled-task-auth-session-error';
7
8
  export * from '../scheduled-task/use-scheduled-tasks';
8
9
  export * from '../scheduled-task/use-scheduled-task-runs';
@@ -1 +1 @@
1
- {"version":3,"file":"scheduled-tasks.d.ts","sourceRoot":"","sources":["../../src/entry-points/scheduled-tasks.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uFAAuF,CAAC;AAEtG,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC"}
1
+ {"version":3,"file":"scheduled-tasks.d.ts","sourceRoot":"","sources":["../../src/entry-points/scheduled-tasks.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,kDAAkD,CAAC;AACjE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uFAAuF,CAAC;AAEtG,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from '../skill/useSkillsState/useSkillsState';
2
+ export * from '../skill/skill-lookup';
2
3
  //# sourceMappingURL=skills-state.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"skills-state.d.ts","sourceRoot":"","sources":["../../src/entry-points/skills-state.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC"}
1
+ {"version":3,"file":"skills-state.d.ts","sourceRoot":"","sources":["../../src/entry-points/skills-state.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,uBAAuB,CAAC"}
@@ -13,6 +13,8 @@ export * from '../shared/external-services';
13
13
  export * from '../shared/formatting';
14
14
  export * from '../shared/locale';
15
15
  export * from '../shared/string-utils';
16
+ export * from '../shared/client-channel';
17
+ export * from '../shared/theme-colors';
16
18
  export * from '../usage/useUsageData/useUsageData';
17
19
  export * from '../files/browser-download';
18
20
  export * from '../shared/usePersistedState/usePersistedState';
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/entry-points/utils.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAChE,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+CAA+C,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/entry-points/utils.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAChE,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+CAA+C,CAAC"}
@@ -7,6 +7,12 @@ export declare enum ExternalServiceAuthType {
7
7
  OAuth = "OAUTH",
8
8
  DialNative = "DIAL_NATIVE"
9
9
  }
10
+ /** Sign-in state DIAL Core reports for one credentials level of an external service. */
11
+ export declare enum ExternalServiceAuthStatus {
12
+ SignedIn = "SIGNED_IN",
13
+ SignedOut = "SIGNED_OUT",
14
+ Failed = "FAILED"
15
+ }
10
16
  /** Credential ownership level. */
11
17
  export declare enum ExternalServiceCredentialsLevel {
12
18
  Global = "GLOBAL",
@@ -1 +1 @@
1
- {"version":3,"file":"useExternalServiceLogin.d.ts","sourceRoot":"","sources":["../../src/external-services/useExternalServiceLogin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,4BAA4B,EAC5B,gCAAgC,EACjC,MAAM,+BAA+B,CAAC;AAevC,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,8EAA8E,CAAC;AAEtF,8CAA8C;AAC9C,oBAAY,uBAAuB;IACjC,IAAI,SAAS;IACb,MAAM,YAAY;IAClB,KAAK,UAAU;IACf,UAAU,gBAAgB;CAC3B;AACD,kCAAkC;AAClC,oBAAY,+BAA+B;IACzC,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,IAAI,SAAS;CACd;AACD,sDAAsD;AACtD,MAAM,WAAW,2BAA2B;IAC1C,iCAAiC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,kBAAkB,EAAE,CAClB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,6BAA6B,CAAC,CAA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AC;IAClD,gCAAgC;IAChC,kBAAkB,EAAE,uBAAuB,CAAC;IAC5C,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,aAAa,CAAC,EAAE,4BAA4B,CAAC;IAC7C;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAgBD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAAI,sIAOrC,2BAA2B,KAAG;IAC/B,KAAK,EAAE,CACL,MAAM,EAAE,0BAA0B,KAC/B,OAAO,CAAC,2BAA2B,CAAC,CAAC;CAwP3C,CAAC"}
1
+ {"version":3,"file":"useExternalServiceLogin.d.ts","sourceRoot":"","sources":["../../src/external-services/useExternalServiceLogin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,4BAA4B,EAC5B,gCAAgC,EACjC,MAAM,+BAA+B,CAAC;AAevC,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,8EAA8E,CAAC;AAGtF,8CAA8C;AAC9C,oBAAY,uBAAuB;IACjC,IAAI,SAAS;IACb,MAAM,YAAY;IAClB,KAAK,UAAU;IACf,UAAU,gBAAgB;CAC3B;AACD,wFAAwF;AACxF,oBAAY,yBAAyB;IACnC,QAAQ,cAAc;IACtB,SAAS,eAAe;IACxB,MAAM,WAAW;CAClB;AACD,kCAAkC;AAClC,oBAAY,+BAA+B;IACzC,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,IAAI,SAAS;CACd;AACD,sDAAsD;AACtD,MAAM,WAAW,2BAA2B;IAC1C,iCAAiC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,kBAAkB,EAAE,CAClB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM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AyC;IACzC,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,gCAAgC;IAChC,kBAAkB,EAAE,uBAAuB,CAAC;IAC5C,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,aAAa,CAAC,EAAE,4BAA4B,CAAC;IAC7C;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAgBD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAAI,sIAOrC,2BAA2B,KAAG;IAC/B,KAAK,EAAE,CACL,MAAM,EAAE,0BAA0B,KAC/B,OAAO,CAAC,2BAA2B,CAAC,CAAC;CA0P3C,CAAC"}
@@ -8,20 +8,22 @@ import { useCallback as d } from "react";
8
8
  var f = /* @__PURE__ */ function(e) {
9
9
  return e.None = "NONE", e.ApiKey = "API_KEY", e.OAuth = "OAUTH", e.DialNative = "DIAL_NATIVE", e;
10
10
  }({}), p = /* @__PURE__ */ function(e) {
11
- return e.Global = "GLOBAL", e.Application = "APPLICATION", e.User = "USER", e;
11
+ return e.SignedIn = "SIGNED_IN", e.SignedOut = "SIGNED_OUT", e.Failed = "FAILED", e;
12
12
  }({}), m = /* @__PURE__ */ function(e) {
13
+ return e.Global = "GLOBAL", e.Application = "APPLICATION", e.User = "USER", e;
14
+ }({}), h = /* @__PURE__ */ function(e) {
13
15
  return e.Success = "success", e.Failure = "failure", e.PopupBlocked = "popup-blocked", e.Cancelled = "cancelled", e.AdminConsentRequired = "admin-consent-required", e.OfflineUnavailable = "offline-unavailable", e;
14
- }({}), h = (e) => e === "GLOBAL" ? n.Global : n.User, g = ({ callbackPath: n, getExternalService: f, signInExternalService: p, signOutExternalService: m, getOfflineCredentials: g, loginOfflineCredentials: _ }) => {
16
+ }({}), g = (e) => e === "GLOBAL" ? n.Global : n.User, _ = ({ callbackPath: n, getExternalService: f, signInExternalService: p, signOutExternalService: m, getOfflineCredentials: h, loginOfflineCredentials: _ }) => {
15
17
  let v = d(async ({ appId: e, serviceId: t, popup: n }) => {
16
18
  let r = n ?? c();
17
19
  if (!r) return { type: "popup-blocked" };
18
20
  try {
19
21
  let n = await f(e, t);
20
22
  if (n.appLevelAuthStatus !== "SIGNED_IN") return r.close(), { type: n.appLevelAuthStatus === "SIGNED_OUT" ? "admin-consent-required" : "failure" };
21
- let i = await g();
23
+ let i = await h();
22
24
  if (i.connected) return r.close(), { type: "success" };
23
25
  if (!i.available || !i.connect) return r.close(), { type: "offline-unavailable" };
24
- let a = await _(i.connect, g, r);
26
+ let a = await _(i.connect, h, r);
25
27
  if (a.type === l.Success) {
26
28
  let n = await f(e, t);
27
29
  return { type: n.appLevelAuthStatus === "SIGNED_IN" ? "success" : n.appLevelAuthStatus === "SIGNED_OUT" ? "admin-consent-required" : "failure" };
@@ -33,7 +35,7 @@ var f = /* @__PURE__ */ function(e) {
33
35
  }, [
34
36
  _,
35
37
  f,
36
- g
38
+ h
37
39
  ]), y = d(async (e, t, n, r) => {
38
40
  try {
39
41
  await m(e, t, {
@@ -42,15 +44,15 @@ var f = /* @__PURE__ */ function(e) {
42
44
  });
43
45
  } catch {}
44
46
  }, [m]), b = d(async (l) => {
45
- let { appId: d, serviceId: p, credentialsLevel: m, oauthSettings: g, forceStale: _, offlineUsageConsent: v, popup: b } = l, x = u(d, p), S = h(m), C = {
47
+ let { appId: d, serviceId: p, credentialsLevel: m, oauthSettings: h, forceStale: _, offlineUsageConsent: v, popup: b } = l, x = u(d, p), S = g(m), C = {
46
48
  authenticationType: t.OAuth,
47
49
  withLogin: a.WithConfig,
48
50
  isLoggedIn: !1,
49
- clientId: g?.clientId,
50
- authorizationEndpoint: g?.authorizationEndpoint,
51
- scopes: g?.scopes,
52
- codeChallenge: g?.codeChallenge,
53
- codeChallengeMethod: g?.codeChallengeMethod
51
+ clientId: h?.clientId,
52
+ authorizationEndpoint: h?.authorizationEndpoint,
53
+ scopes: h?.scopes,
54
+ codeChallenge: h?.codeChallenge,
55
+ codeChallengeMethod: h?.codeChallengeMethod
54
56
  }, w = b ?? c();
55
57
  if (!w) return { type: "popup-blocked" };
56
58
  _ && await y(d, p, m, "OAUTH");
@@ -97,4 +99,4 @@ var f = /* @__PURE__ */ function(e) {
97
99
  ]) };
98
100
  };
99
101
  //#endregion
100
- export { f as ExternalServiceAuthType, p as ExternalServiceCredentialsLevel, m as ExternalServiceLoginOutcomeType, g as useExternalServiceLogin };
102
+ export { p as ExternalServiceAuthStatus, f as ExternalServiceAuthType, m as ExternalServiceCredentialsLevel, h as ExternalServiceLoginOutcomeType, _ as useExternalServiceLogin };
@@ -1 +1 @@
1
- export { ExternalServiceAuthType, ExternalServiceCredentialsLevel, ExternalServiceLoginOutcomeType, useExternalServiceLogin } from "./external-services/useExternalServiceLogin.js";
1
+ export { ExternalServiceAuthStatus, ExternalServiceAuthType, ExternalServiceCredentialsLevel, ExternalServiceLoginOutcomeType, useExternalServiceLogin } from "./external-services/useExternalServiceLogin.js";