@epam/ai-dial-chat-hooks 1.3.6 → 1.4.0-dev.103

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 (92) hide show
  1. package/attachment/useAttachmentAction/useAttachmentAction.d.ts +1 -1
  2. package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -1
  3. package/attachment/useAttachmentAction/useAttachmentAction.js +35 -44
  4. package/catalog/create-publish-api.d.ts +9 -1
  5. package/catalog/create-publish-api.d.ts.map +1 -1
  6. package/catalog/create-publish-api.js +9 -0
  7. package/catalog/publish.d.ts +2 -0
  8. package/catalog/publish.d.ts.map +1 -1
  9. package/catalog/publish.js +4 -4
  10. package/catalog/resource-save-adapter.d.ts +7 -2
  11. package/catalog/resource-save-adapter.d.ts.map +1 -1
  12. package/catalog/resource-save-adapters.d.ts +32 -7
  13. package/catalog/resource-save-adapters.d.ts.map +1 -1
  14. package/catalog/resource-save-adapters.js +47 -41
  15. package/catalog/resource-save.d.ts +17 -9
  16. package/catalog/resource-save.d.ts.map +1 -1
  17. package/catalog/resource-save.js +34 -25
  18. package/catalog/save-destination-root.d.ts +12 -0
  19. package/catalog/save-destination-root.d.ts.map +1 -0
  20. package/catalog/save-destination-root.js +6 -0
  21. package/catalog/usePublishFolders/usePublishFolders.d.ts +8 -2
  22. package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -1
  23. package/catalog/usePublishFolders/usePublishFolders.js +29 -29
  24. package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts +7 -3
  25. package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts.map +1 -1
  26. package/catalog/useResourceSavePanel/useResourceSavePanel.js +107 -97
  27. package/catalog/useVersionHistory/useVersionHistory.d.ts +38 -0
  28. package/catalog/useVersionHistory/useVersionHistory.d.ts.map +1 -0
  29. package/catalog/useVersionHistory/useVersionHistory.js +49 -0
  30. package/catalog/useVersionHistory/useVersionHistorySection.d.ts +30 -0
  31. package/catalog/useVersionHistory/useVersionHistorySection.d.ts.map +1 -0
  32. package/catalog/useVersionHistory/useVersionHistorySection.js +31 -0
  33. package/catalog/version-history.d.ts +42 -0
  34. package/catalog/version-history.d.ts.map +1 -0
  35. package/catalog/version-history.js +27 -0
  36. package/catalog.js +37 -33
  37. package/conversation/useConversationStream/generation-resume.d.ts.map +1 -1
  38. package/conversation/useConversationStream/generation-resume.js +119 -96
  39. package/entry-points/catalog.d.ts +3 -0
  40. package/entry-points/catalog.d.ts.map +1 -1
  41. package/entry-points/scheduled-tasks.d.ts +1 -0
  42. package/entry-points/scheduled-tasks.d.ts.map +1 -1
  43. package/entry-points/utils.d.ts +3 -0
  44. package/entry-points/utils.d.ts.map +1 -1
  45. package/file-manager.js +33 -33
  46. package/files/annotation.d.ts +3 -3
  47. package/files/annotation.d.ts.map +1 -1
  48. package/files/annotation.js +12 -11
  49. package/files/attachment-canvas.d.ts +1 -1
  50. package/files/attachment-canvas.d.ts.map +1 -1
  51. package/files/attachment-canvas.js +135 -135
  52. package/files/dial-file.d.ts +18 -0
  53. package/files/dial-file.d.ts.map +1 -1
  54. package/files/dial-file.js +30 -5
  55. package/index.d.ts +7 -0
  56. package/index.d.ts.map +1 -1
  57. package/index.js +259 -252
  58. package/org-units/models.d.ts +3 -1
  59. package/org-units/models.d.ts.map +1 -1
  60. package/org-units/org-unit-guards.d.ts +64 -0
  61. package/org-units/org-unit-guards.d.ts.map +1 -0
  62. package/org-units/org-unit-guards.js +28 -0
  63. package/org-units/useFolderGuards/useFolderGuards.d.ts +31 -0
  64. package/org-units/useFolderGuards/useFolderGuards.d.ts.map +1 -0
  65. package/org-units/useFolderGuards/useFolderGuards.js +50 -0
  66. package/org-units/useOrgUnits/useOrgUnits.d.ts +18 -3
  67. package/org-units/useOrgUnits/useOrgUnits.d.ts.map +1 -1
  68. package/org-units/useOrgUnits/useOrgUnits.js +43 -23
  69. package/package.json +19 -19
  70. package/scheduled-task/scheduled-task-description.d.ts +19 -13
  71. package/scheduled-task/scheduled-task-description.d.ts.map +1 -1
  72. package/scheduled-task/scheduled-task-description.js +39 -55
  73. package/scheduled-task/scheduled-task-display.d.ts +19 -5
  74. package/scheduled-task/scheduled-task-display.d.ts.map +1 -1
  75. package/scheduled-task/scheduled-task-display.js +43 -38
  76. package/scheduled-task/scheduled-task-next-occurrence.d.ts +7 -5
  77. package/scheduled-task/scheduled-task-next-occurrence.d.ts.map +1 -1
  78. package/scheduled-task/scheduled-task-next-occurrence.js +15 -15
  79. package/scheduled-task/scheduled-task-trigger.d.ts +6 -4
  80. package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -1
  81. package/scheduled-task/scheduled-task-trigger.js +92 -115
  82. package/scheduled-tasks.js +14 -13
  83. package/shared/timezones.d.ts +30 -0
  84. package/shared/timezones.d.ts.map +1 -0
  85. package/shared/timezones.js +102 -0
  86. package/skill/useSkillEditorSubmit.d.ts +4 -1
  87. package/skill/useSkillEditorSubmit.d.ts.map +1 -1
  88. package/skill/useSkillEditorSubmit.js +125 -121
  89. package/utils.js +19 -16
  90. package/shared/cron-day-of-month.d.ts +0 -21
  91. package/shared/cron-day-of-month.d.ts.map +0 -1
  92. package/shared/cron-day-of-month.js +0 -13
@@ -0,0 +1,49 @@
1
+ import { safeDecodeURIComponent as e } from "../../shared/string-utils.js";
2
+ import { buildVersionHistoryRows as t, selectOtherVersions as n } from "../version-history.js";
3
+ import { useCallback as r, useEffect as i, useMemo as a, useState as o } from "react";
4
+ //#region src/catalog/useVersionHistory/useVersionHistory.ts
5
+ var s = ({ items: s, resourceId: c, entityType: l, isEnabled: u, client: d, formatters: f }) => {
6
+ let p = a(() => n(s, c), [s, c]), m = p.length > 0, [h, g] = o(0), [_, v] = o(), [y, b] = o(), [x, S] = o(u);
7
+ x !== u && (S(u), u || (v(void 0), b(void 0)));
8
+ let C = `${l}:${c}:${h}`, w = u && m;
9
+ i(() => {
10
+ if (!w) return;
11
+ let t = !1;
12
+ return (async () => {
13
+ try {
14
+ let n = await d.getCatalogVersionStatuses(l, c);
15
+ if (t) return;
16
+ v({
17
+ key: C,
18
+ statuses: new Map(n.map((t) => [e(t.id), t]))
19
+ }), b(void 0);
20
+ } catch {
21
+ t || b(C);
22
+ }
23
+ })(), () => {
24
+ t = !0;
25
+ };
26
+ }, [
27
+ w,
28
+ d,
29
+ l,
30
+ c,
31
+ C
32
+ ]);
33
+ let T = a(() => t(p, _?.statuses, f), [
34
+ p,
35
+ _,
36
+ f
37
+ ]), E = w && y === C;
38
+ return {
39
+ rows: T,
40
+ hasVersions: m,
41
+ isLoading: w && !E && _?.key !== C,
42
+ hasError: E,
43
+ onRetry: r(() => {
44
+ b(void 0), g((e) => e + 1);
45
+ }, [])
46
+ };
47
+ };
48
+ //#endregion
49
+ export { s as useVersionHistory };
@@ -0,0 +1,30 @@
1
+ import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
2
+ import { VersionHistoryLabels, VersionHistorySectionProps } from '@epam/ai-dial-publish-panel';
3
+ import { VersionHistoryFormatters, VersionHistoryListingItem } from '../version-history';
4
+ import { UseVersionHistoryParams } from './useVersionHistory';
5
+ /** Parameters of {@link useVersionHistorySection}. */
6
+ export interface UseVersionHistorySectionParams {
7
+ /** Id of the resource being edited or published. */
8
+ resourceId: string;
9
+ /** Catalog type of the resource. */
10
+ resourceType: CatalogEntityType;
11
+ /** Whether the panel showing the section is open; statuses load only while it is. */
12
+ isEnabled: boolean;
13
+ /** Items of the already-loaded deployments listing, used for applications. */
14
+ applications: readonly VersionHistoryListingItem[];
15
+ /** Items of the already-loaded toolsets listing, used for toolsets. */
16
+ toolsets: readonly VersionHistoryListingItem[];
17
+ /** Configured client that reads the version statuses. */
18
+ client: UseVersionHistoryParams['client'];
19
+ /** Translated section labels, from the host. */
20
+ labels: VersionHistoryLabels;
21
+ /** Host text and date formatting; keep it referentially stable. */
22
+ formatters: VersionHistoryFormatters;
23
+ }
24
+ /**
25
+ * Builds the props of the Versions history section for an application or toolset from the listings the host already holds.
26
+ * @param params - listings, edited resource, open state, client, labels and formatters
27
+ * @returns the section props, or `undefined` for an unversioned resource type and while the listing holds no version the user owns
28
+ */
29
+ export declare const useVersionHistorySection: ({ resourceId, resourceType, isEnabled, applications, toolsets, client, labels, formatters, }: UseVersionHistorySectionParams) => VersionHistorySectionProps | undefined;
30
+ //# sourceMappingURL=useVersionHistorySection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useVersionHistorySection.d.ts","sourceRoot":"","sources":["../../../src/catalog/useVersionHistory/useVersionHistorySection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EACV,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,6BAA6B,CAAC;AAGrC,OAAO,KAAK,EACV,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qBAAqB,CAAC;AAE7B,sDAAsD;AACtD,MAAM,WAAW,8BAA8B;IAC7C,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,YAAY,EAAE,iBAAiB,CAAC;IAChC,qFAAqF;IACrF,SAAS,EAAE,OAAO,CAAC;IACnB,8EAA8E;IAC9E,YAAY,EAAE,SAAS,yBAAyB,EAAE,CAAC;IACnD,uEAAuE;IACvE,QAAQ,EAAE,SAAS,yBAAyB,EAAE,CAAC;IAC/C,yDAAyD;IACzD,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAC1C,gDAAgD;IAChD,MAAM,EAAE,oBAAoB,CAAC;IAC7B,mEAAmE;IACnE,UAAU,EAAE,wBAAwB,CAAC;CACtC;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,8FAStC,8BAA8B,KAAG,0BAA0B,GAAG,SAqBhE,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { isVersionedCatalogEntityType as e, toPublishEntityType as t } from "../publish.js";
2
+ import { useVersionHistory as n } from "./useVersionHistory.js";
3
+ import { useMemo as r } from "react";
4
+ //#region src/catalog/useVersionHistory/useVersionHistorySection.ts
5
+ var i = ({ resourceId: i, resourceType: a, isEnabled: o, applications: s, toolsets: c, client: l, labels: u, formatters: d }) => {
6
+ let f = e(a), p = t(a) ?? "application", { rows: m, hasVersions: h, isLoading: g, hasError: _, onRetry: v } = n({
7
+ items: p === "toolset" ? c : s,
8
+ resourceId: i,
9
+ entityType: p,
10
+ isEnabled: o && f,
11
+ client: l,
12
+ formatters: d
13
+ });
14
+ return r(() => f && h ? {
15
+ rows: m,
16
+ isLoading: g,
17
+ hasError: _,
18
+ onRetry: v,
19
+ labels: u
20
+ } : void 0, [
21
+ f,
22
+ h,
23
+ m,
24
+ g,
25
+ _,
26
+ v,
27
+ u
28
+ ]);
29
+ };
30
+ //#endregion
31
+ export { i as useVersionHistorySection };
@@ -0,0 +1,42 @@
1
+ import { VersionStatusEntryDto } from '@epam/ai-dial-chat-api-client';
2
+ import { VersionHistoryRow } from '@epam/ai-dial-publish-panel';
3
+ /** The fields of a deployments or toolsets listing item the Versions history reads. */
4
+ export interface VersionHistoryListingItem {
5
+ /** Resource id as the listing returns it. */
6
+ id: string;
7
+ /** Key shared by every version of one resource saved by one owner in one folder. */
8
+ versionGroupId?: string;
9
+ /** Display version of the item. */
10
+ displayVersion?: string;
11
+ /** Last modified time, epoch milliseconds. */
12
+ updatedAt?: number;
13
+ /** Original author of the resource. */
14
+ owner?: string;
15
+ /** Whether the item belongs to the caller. */
16
+ isMy?: boolean;
17
+ }
18
+ /** Host-supplied text and date formatting for the Versions history rows. */
19
+ export interface VersionHistoryFormatters {
20
+ /** Translated label of the Personal root, the first part of every folder. */
21
+ rootLabel: string;
22
+ /** Formats a last-modified time given in epoch milliseconds. */
23
+ formatDate: (timestamp: number) => string;
24
+ /** Builds the author line of a published version, e.g. `Published by {name}`. */
25
+ formatPublishedBy: (name: string) => string;
26
+ /** Builds the author line of any other version, e.g. `by {name}`. */
27
+ formatOwner: (name: string) => string;
28
+ }
29
+ /**
30
+ * Selects the other saved versions of `resourceId` from a listing: the caller's own items that share its `versionGroupId`, without the version itself.
31
+ * @param items - deployments or toolsets listing items
32
+ * @param resourceId - id of the resource being edited or published
33
+ */
34
+ export declare const selectOtherVersions: <T extends VersionHistoryListingItem>(items: readonly T[], resourceId: string) => T[];
35
+ /**
36
+ * Builds the Versions history rows, newest first by last modified time.
37
+ * @param group - the other versions of the resource, from {@link selectOtherVersions}
38
+ * @param statuses - statuses by item id; omit while they load
39
+ * @param formatters - host text and date formatting
40
+ */
41
+ export declare const buildVersionHistoryRows: (group: readonly VersionHistoryListingItem[], statuses: ReadonlyMap<string, VersionStatusEntryDto> | undefined, formatters: VersionHistoryFormatters) => VersionHistoryRow[];
42
+ //# sourceMappingURL=version-history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version-history.d.ts","sourceRoot":"","sources":["../../src/catalog/version-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,6BAA6B,CAAC;AAIrC,uFAAuF;AACvF,MAAM,WAAW,yBAAyB;IACxC,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,4EAA4E;AAC5E,MAAM,WAAW,wBAAwB;IACvC,6EAA6E;IAC7E,SAAS,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C,iFAAiF;IACjF,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C,qEAAqE;IACrE,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CACvC;AASD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,yBAAyB,EACrE,OAAO,SAAS,CAAC,EAAE,EACnB,YAAY,MAAM,KACjB,CAAC,EAaH,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAClC,OAAO,SAAS,yBAAyB,EAAE,EAC3C,UAAU,WAAW,CAAC,MAAM,EAAE,qBAAqB,CAAC,GAAG,SAAS,EAChE,YAAY,wBAAwB,KACnC,iBAAiB,EA2BnB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { safeDecodeURIComponent as e } from "../shared/string-utils.js";
2
+ import { parseResourceFolderPath as t } from "./resource-folder.js";
3
+ import { VersionPublicationStatus as n } from "@epam/ai-dial-chat-api-client";
4
+ import { VersionHistoryStatus as r } from "@epam/ai-dial-publish-panel";
5
+ //#region src/catalog/version-history.ts
6
+ var i = {
7
+ [n.NotPublished]: r.NotPublished,
8
+ [n.InReview]: r.InReview,
9
+ [n.Published]: r.Published,
10
+ [n.Unknown]: r.Unknown
11
+ }, a = (t, n) => {
12
+ if (n === "") return [];
13
+ let r = e(n), i = t.find((t) => e(t.id) === r);
14
+ return i?.isMy !== !0 || i.versionGroupId == null ? [] : t.filter((e) => e !== i && e.isMy === !0 && e.versionGroupId === i.versionGroupId);
15
+ }, o = (n, a, o) => [...n].sort((e, t) => (t.updatedAt ?? 0) - (e.updatedAt ?? 0)).map((n) => {
16
+ let s = a?.get(e(n.id)), c = s ? i[s.status] : void 0, l;
17
+ return c === r.Published && s?.publishedBy ? l = o.formatPublishedBy(s.publishedBy) : n.owner && (l = o.formatOwner(n.owner)), {
18
+ id: n.id,
19
+ version: n.displayVersion ?? "",
20
+ status: c,
21
+ folder: [o.rootLabel, ...t(n.id)].join(" / "),
22
+ modifiedAt: n.updatedAt == null ? void 0 : o.formatDate(n.updatedAt),
23
+ author: l
24
+ };
25
+ });
26
+ //#endregion
27
+ export { o as buildVersionHistoryRows, a as selectOtherVersions };
package/catalog.js CHANGED
@@ -10,36 +10,40 @@ import { buildPromptOverview as C, isOrganisationPromptItem as w, mapPromptToCat
10
10
  import { PUBLIC_SKILL_BUCKET as E, SKILL_LISTING_MAX_PAGES as D, SKILL_LISTING_PAGE_SIZE as O, SKILL_MANIFEST_MAX_BYTES as k, SkillSource as A, parseSkillResourceUrl as j } from "./skill/skill-types.js";
11
11
  import { buildSkillContentTree as M, buildSkillOverview as N, mapSkillToCatalogItem as P, readSkillFileBytes as F, readSkillFilePreviewBytes as I, readSkillManifest as L, resolveSkillFileDownloadPath as R, resolveSkillManifestFileId as z } from "./catalog/map-skill-to-catalog-item.js";
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
- import { getPublicCatalogEntityFolderPath as G, isPublicCatalogEntityId as K, mapPublishConversationResultDto as q, mapPublishHistoryEntryDto as J, mapResourceDependencyDto as Y, toPublishEntityType as X } from "./catalog/publish.js";
14
- import { createPublishDependencyIconResolver as Z } from "./catalog/publish-dependency-icons.js";
15
- import { usePublishHistory as Q } from "./catalog/use-publish-history.js";
16
- import { usePublishDependencies as $ } from "./catalog/use-publish-dependencies.js";
17
- import { resolveUnpublishableFolders as ee } from "./catalog/unpublishable-folders.js";
18
- import { useUnpublishableFolders as te } from "./catalog/useUnpublishableFolders/useUnpublishableFolders.js";
19
- import { useUnpublishConfirmation as ne } from "./catalog/useUnpublishConfirmation/useUnpublishConfirmation.js";
20
- import { canEditShareAccess as re, deriveAvailableTabIds as ie, deriveFavoriteItems as ae, filterCatalogItemsBySelector as oe, filterHiddenOwnedItems as se, reconcileFilterTopics as ce } from "./catalog/catalog-derivations.js";
21
- import { CatalogEntityKind as le, findSchemaDisplayName as ue, resolveCatalogEntityKind as de } from "./catalog/catalog-entity-kind.js";
22
- import { FavoriteEntityType as fe, useFavoriteEntitiesState as pe } from "./catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js";
23
- import { resolveFavoriteEntityType as me } from "./catalog/favorite-entity-type.js";
24
- import { parseCatalogFilterTopics as he, resolveCatalogActiveTab as ge, resolveCatalogSortKey as _e } from "./catalog/catalog-preferences.js";
25
- import { findWorstCappedRow as ve } from "./catalog/usage-limit-rows.js";
26
- import { CatalogPrimaryActionType as ye, resolveCatalogPrimaryAction as be } from "./catalog/catalog-primary-action.js";
27
- import { useCatalogItemDelete as xe } from "./catalog/useCatalogItemDelete/useCatalogItemDelete.js";
28
- import { useCatalogEditNavigation as Se } from "./catalog/useCatalogEditNavigation/useCatalogEditNavigation.js";
29
- import { useSkillItemDetails as Ce } from "./catalog/useSkillItemDetails.js";
30
- import { useCatalogItemDetails as we } from "./catalog/useCatalogItemDetails.js";
31
- import { useCatalogToolsetCredentials as Te } from "./catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js";
32
- import { buildApplicationCredentialLoginParams as Ee, mapApplicationCredentials as De } from "./catalog/application-credentials.js";
33
- import { useApplicationCredentials as Oe } from "./catalog/useApplicationCredentials/useApplicationCredentials.js";
34
- import { DEFAULT_APPLICATION_CREDENTIAL_ACTIONS_LABELS as ke, useApplicationCredentialActions as Ae } from "./catalog/useApplicationCredentialActions/useApplicationCredentialActions.js";
35
- import { useSkillDetailsPanelData as je } from "./catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.js";
36
- import { hasPublishFolderWriteAccess as Me, rememberPublishFolderKey as Ne, usePublishFolders as Pe } from "./catalog/usePublishFolders/usePublishFolders.js";
37
- import { useResourceFolders as Fe } from "./catalog/useResourceFolders/useResourceFolders.js";
38
- import { parseResourceFolderPath as Ie } from "./catalog/resource-folder.js";
39
- import { ResourceSaveError as Le, isResourceCreateAdapter as Re } from "./catalog/resource-save-adapter.js";
40
- import { ResourceNameConflictKind as ze, getResourceNameConflictKind as Be, withResourceNameConflictMessages as Ve } from "./catalog/resource-name-conflict.js";
41
- import { ResourceSaveOutcome as He, ResourceSaveVersionError as Ue, SaveDestinationRoot as We, createPublishSavedResource as Ge, runResourceSave as Ke } from "./catalog/resource-save.js";
42
- import { createEmbeddedApplicationSaveAdapter as qe, createHostApplicationSaveAdapter as Je, createPromptCreateAdapter as Ye, createPromptFolderLister as Xe, createPromptSaveAdapter as Ze, createSkillFolderLister as Qe, createToolsetCreateAdapter as $e, createToolsetSaveAdapter as et } from "./catalog/resource-save-adapters.js";
43
- import { useResourceSavePanel as tt } from "./catalog/useResourceSavePanel/useResourceSavePanel.js";
44
- import { SkillPreviewErrorKind as nt, useSkillFilePreview as rt } from "./skill/useSkillFilePreview.js";
45
- export { u as AuthenticationType, le as CatalogEntityKind, ye as CatalogPrimaryActionType, ke as DEFAULT_APPLICATION_CREDENTIAL_ACTIONS_LABELS, m as DEFAULT_ENTITY_DETAILS_LABELS, fe as FavoriteEntityType, B as McpResourceKind, E as PUBLIC_SKILL_BUCKET, ze as ResourceNameConflictKind, Le as ResourceSaveError, He as ResourceSaveOutcome, Ue as ResourceSaveVersionError, D as SKILL_LISTING_MAX_PAGES, O as SKILL_LISTING_PAGE_SIZE, k as SKILL_MANIFEST_MAX_BYTES, We as SaveDestinationRoot, nt as SkillPreviewErrorKind, A as SkillSource, Ee as buildApplicationCredentialLoginParams, 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, re as canEditShareAccess, a as createDeploymentLookup, qe as createEmbeddedApplicationSaveAdapter, Je as createHostApplicationSaveAdapter, Ye as createPromptCreateAdapter, Xe as createPromptFolderLister, Ze as createPromptSaveAdapter, e as createPublishApiClient, Z as createPublishDependencyIconResolver, Ge as createPublishSavedResource, Qe as createSkillFolderLister, $e as createToolsetCreateAdapter, et as createToolsetSaveAdapter, o as decodeDeploymentId, ie as deriveAvailableTabIds, ae as deriveFavoriteItems, s as encodeDeploymentId, oe as filterCatalogItemsBySelector, se as filterHiddenOwnedItems, c as findDeploymentByIdOrReference, ue as findSchemaDisplayName, ve as findWorstCappedRow, G as getPublicCatalogEntityFolderPath, Be as getResourceNameConflictKind, Me as hasPublishFolderWriteAccess, w as isOrganisationPromptItem, K as isPublicCatalogEntityId, Re as isResourceCreateAdapter, De as mapApplicationCredentials, 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, Y as mapResourceDependencyDto, P as mapSkillToCatalogItem, _ as mapToolsetCredentials, b as mapToolsetToCatalogItem, l as normalizeDeploymentId, he as parseCatalogFilterTopics, Ie as parseResourceFolderPath, j as parseSkillResourceUrl, F as readSkillFileBytes, I as readSkillFilePreviewBytes, L as readSkillManifest, ce as reconcileFilterTopics, Ne as rememberPublishFolderKey, ge as resolveCatalogActiveTab, de as resolveCatalogEntityKind, be as resolveCatalogPrimaryAction, _e as resolveCatalogSortKey, x as resolveDeploymentFolder, me as resolveFavoriteEntityType, W as resolveMcpResourceKind, R as resolveSkillFileDownloadPath, z as resolveSkillManifestFileId, ee as resolveUnpublishableFolders, Ke as runResourceSave, S as supportsChatInterface, X as toPublishEntityType, t as toPublishRuleDto, Ae as useApplicationCredentialActions, Oe as useApplicationCredentials, Se as useCatalogEditNavigation, xe as useCatalogItemDelete, we as useCatalogItemDetails, Te as useCatalogToolsetCredentials, pe as useFavoriteEntitiesState, $ as usePublishDependencies, Pe as usePublishFolders, Q as usePublishHistory, Fe as useResourceFolders, tt as useResourceSavePanel, je as useSkillDetailsPanelData, rt as useSkillFilePreview, Ce as useSkillItemDetails, ne as useUnpublishConfirmation, te as useUnpublishableFolders, Ve as withResourceNameConflictMessages };
13
+ import { getPublicCatalogEntityFolderPath as G, isPublicCatalogEntityId as K, isVersionedCatalogEntityType as q, mapPublishConversationResultDto as J, mapPublishHistoryEntryDto as Y, mapResourceDependencyDto as X, toPublishEntityType as Z } from "./catalog/publish.js";
14
+ import { createPublishDependencyIconResolver as Q } from "./catalog/publish-dependency-icons.js";
15
+ import { usePublishHistory as $ } from "./catalog/use-publish-history.js";
16
+ import { usePublishDependencies as ee } from "./catalog/use-publish-dependencies.js";
17
+ import { resolveUnpublishableFolders as te } from "./catalog/unpublishable-folders.js";
18
+ import { useUnpublishableFolders as ne } from "./catalog/useUnpublishableFolders/useUnpublishableFolders.js";
19
+ import { useUnpublishConfirmation as re } from "./catalog/useUnpublishConfirmation/useUnpublishConfirmation.js";
20
+ import { canEditShareAccess as ie, deriveAvailableTabIds as ae, deriveFavoriteItems as oe, filterCatalogItemsBySelector as se, filterHiddenOwnedItems as ce, reconcileFilterTopics as le } from "./catalog/catalog-derivations.js";
21
+ import { CatalogEntityKind as ue, findSchemaDisplayName as de, resolveCatalogEntityKind as fe } from "./catalog/catalog-entity-kind.js";
22
+ import { FavoriteEntityType as pe, useFavoriteEntitiesState as me } from "./catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js";
23
+ import { resolveFavoriteEntityType as he } from "./catalog/favorite-entity-type.js";
24
+ import { parseCatalogFilterTopics as ge, resolveCatalogActiveTab as _e, resolveCatalogSortKey as ve } from "./catalog/catalog-preferences.js";
25
+ import { findWorstCappedRow as ye } from "./catalog/usage-limit-rows.js";
26
+ import { CatalogPrimaryActionType as be, resolveCatalogPrimaryAction as xe } from "./catalog/catalog-primary-action.js";
27
+ import { useCatalogItemDelete as Se } from "./catalog/useCatalogItemDelete/useCatalogItemDelete.js";
28
+ import { useCatalogEditNavigation as Ce } from "./catalog/useCatalogEditNavigation/useCatalogEditNavigation.js";
29
+ import { useSkillItemDetails as we } from "./catalog/useSkillItemDetails.js";
30
+ import { useCatalogItemDetails as Te } from "./catalog/useCatalogItemDetails.js";
31
+ import { useCatalogToolsetCredentials as Ee } from "./catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js";
32
+ import { buildApplicationCredentialLoginParams as De, mapApplicationCredentials as Oe } from "./catalog/application-credentials.js";
33
+ import { useApplicationCredentials as ke } from "./catalog/useApplicationCredentials/useApplicationCredentials.js";
34
+ import { DEFAULT_APPLICATION_CREDENTIAL_ACTIONS_LABELS as Ae, useApplicationCredentialActions as je } from "./catalog/useApplicationCredentialActions/useApplicationCredentialActions.js";
35
+ import { useSkillDetailsPanelData as Me } from "./catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.js";
36
+ import { hasPublishFolderWriteAccess as Ne, rememberPublishFolderKey as Pe, usePublishFolders as Fe } from "./catalog/usePublishFolders/usePublishFolders.js";
37
+ import { useResourceFolders as Ie } from "./catalog/useResourceFolders/useResourceFolders.js";
38
+ import { parseResourceFolderPath as Le } from "./catalog/resource-folder.js";
39
+ import { ResourceSaveError as Re, isResourceCreateAdapter as ze } from "./catalog/resource-save-adapter.js";
40
+ import { ResourceNameConflictKind as Be, getResourceNameConflictKind as Ve, withResourceNameConflictMessages as He } from "./catalog/resource-name-conflict.js";
41
+ import { SaveDestinationRoot as Ue } from "./catalog/save-destination-root.js";
42
+ import { ResourceSaveOutcome as We, ResourceSaveVersionError as Ge, createPublishSavedResource as Ke, runResourceSave as qe, toSaveDestinationRoot as Je } from "./catalog/resource-save.js";
43
+ import { createEmbeddedApplicationSaveAdapter as Ye, createHostApplicationSaveAdapter as Xe, createOrgUnitWriter as Ze, createPromptCreateAdapter as Qe, createPromptFolderLister as $e, createPromptSaveAdapter as et, createSkillFolderLister as tt, createToolsetCreateAdapter as nt, createToolsetSaveAdapter as rt } from "./catalog/resource-save-adapters.js";
44
+ import { useResourceSavePanel as it } from "./catalog/useResourceSavePanel/useResourceSavePanel.js";
45
+ import { buildVersionHistoryRows as at, selectOtherVersions as ot } from "./catalog/version-history.js";
46
+ import { useVersionHistory as st } from "./catalog/useVersionHistory/useVersionHistory.js";
47
+ import { useVersionHistorySection as ct } from "./catalog/useVersionHistory/useVersionHistorySection.js";
48
+ import { SkillPreviewErrorKind as lt, useSkillFilePreview as ut } from "./skill/useSkillFilePreview.js";
49
+ export { u as AuthenticationType, ue as CatalogEntityKind, be as CatalogPrimaryActionType, Ae as DEFAULT_APPLICATION_CREDENTIAL_ACTIONS_LABELS, m as DEFAULT_ENTITY_DETAILS_LABELS, pe as FavoriteEntityType, B as McpResourceKind, E as PUBLIC_SKILL_BUCKET, Be as ResourceNameConflictKind, Re as ResourceSaveError, We as ResourceSaveOutcome, Ge as ResourceSaveVersionError, D as SKILL_LISTING_MAX_PAGES, O as SKILL_LISTING_PAGE_SIZE, k as SKILL_MANIFEST_MAX_BYTES, Ue as SaveDestinationRoot, lt as SkillPreviewErrorKind, A as SkillSource, De as buildApplicationCredentialLoginParams, 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, at as buildVersionHistoryRows, ie as canEditShareAccess, a as createDeploymentLookup, Ye as createEmbeddedApplicationSaveAdapter, Xe as createHostApplicationSaveAdapter, Ze as createOrgUnitWriter, Qe as createPromptCreateAdapter, $e as createPromptFolderLister, et as createPromptSaveAdapter, e as createPublishApiClient, Q as createPublishDependencyIconResolver, Ke as createPublishSavedResource, tt as createSkillFolderLister, nt as createToolsetCreateAdapter, rt as createToolsetSaveAdapter, o as decodeDeploymentId, ae as deriveAvailableTabIds, oe as deriveFavoriteItems, s as encodeDeploymentId, se as filterCatalogItemsBySelector, ce as filterHiddenOwnedItems, c as findDeploymentByIdOrReference, de as findSchemaDisplayName, ye as findWorstCappedRow, G as getPublicCatalogEntityFolderPath, Ve as getResourceNameConflictKind, Ne as hasPublishFolderWriteAccess, w as isOrganisationPromptItem, K as isPublicCatalogEntityId, ze as isResourceCreateAdapter, q as isVersionedCatalogEntityType, Oe as mapApplicationCredentials, h as mapDeploymentDetailsDtoToEntityDetails, p as mapDeploymentLimitsDtoToCatalogLimits, f as mapDeploymentLimitsToInput, v as mapDeploymentToCatalogItem, y as mapDeploymentToolsetCredentials, g as mapEntityDetailsToCatalogDetails, T as mapPromptToCatalogItem, J as mapPublishConversationResultDto, Y as mapPublishHistoryEntryDto, X as mapResourceDependencyDto, P as mapSkillToCatalogItem, _ as mapToolsetCredentials, b as mapToolsetToCatalogItem, l as normalizeDeploymentId, ge as parseCatalogFilterTopics, Le as parseResourceFolderPath, j as parseSkillResourceUrl, F as readSkillFileBytes, I as readSkillFilePreviewBytes, L as readSkillManifest, le as reconcileFilterTopics, Pe as rememberPublishFolderKey, _e as resolveCatalogActiveTab, fe as resolveCatalogEntityKind, xe as resolveCatalogPrimaryAction, ve as resolveCatalogSortKey, x as resolveDeploymentFolder, he as resolveFavoriteEntityType, W as resolveMcpResourceKind, R as resolveSkillFileDownloadPath, z as resolveSkillManifestFileId, te as resolveUnpublishableFolders, qe as runResourceSave, ot as selectOtherVersions, S as supportsChatInterface, Z as toPublishEntityType, t as toPublishRuleDto, Je as toSaveDestinationRoot, je as useApplicationCredentialActions, ke as useApplicationCredentials, Ce as useCatalogEditNavigation, Se as useCatalogItemDelete, Te as useCatalogItemDetails, Ee as useCatalogToolsetCredentials, me as useFavoriteEntitiesState, ee as usePublishDependencies, Fe as usePublishFolders, $ as usePublishHistory, Ie as useResourceFolders, it as useResourceSavePanel, Me as useSkillDetailsPanelData, ut as useSkillFilePreview, we as useSkillItemDetails, re as useUnpublishConfirmation, ne as useUnpublishableFolders, st as useVersionHistory, ct as useVersionHistorySection, He as withResourceNameConflictMessages };
@@ -1 +1 @@
1
- {"version":3,"file":"generation-resume.d.ts","sourceRoot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CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1E;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gCAAgC,GAAI,sVAiB9C,8BAA8B,MAE7B,uBAAuB,MAAM,EAC7B,cAAc,YAAY,EAC1B,UAAS,uBAA4B,KACpC,IA2WJ,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;AASxE,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,OAAO,KAAG,OAWtD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,GAC5C,cAAc,YAAY,KACzB,MAKA,CAAC;AAEJ;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,GACzC,cAAc,YAAY,EAC1B,MAAK,MAAmB,KACvB,MAKA,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,GACrC,cAAc,YAAY,KACzB,OAWF,CAAC;AAqCF,eAAO,MAAM,0BAA0B,UAAkC,CAAC;AAe1E;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,GACvC,MAAM,MAAM,OAAO,CAAC,YAAY,CAAC,EACjC,YAAY,MAAM,OAAO,EACzB,YAAY,CAAC,YAAY,EAAE,YAAY,KAAK,OAAO,KAClD,OAAO,CAAC,YAAY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AAC;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,sVAiB9C,8BAA8B,MAE7B,uBAAuB,MAAM,EAC7B,cAAc,YAAY,EAC1B,UAAS,uBAA4B,KACpC,IA0aJ,CAAC"}
@@ -13,165 +13,188 @@ var u = (e) => {
13
13
  if (d(e) !== -1 || f(e) !== -1) return !0;
14
14
  let t = e.messages[e.messages.length - 1];
15
15
  return !!t && t.role === l.Assistant && !u(t) && t.streamErrorMessage == null && !t.wasStoppedByUser;
16
- }, m = 3e5, h = "awaiting-resume", g = [
16
+ }, m = 3e5, h = 1e3, g = "awaiting-resume", _ = [
17
17
  1e3,
18
18
  2e3,
19
19
  4e3,
20
20
  8e3,
21
21
  16e3
22
- ], _ = (e) => new Promise((t) => {
22
+ ], v = (e) => new Promise((t) => {
23
23
  let n = typeof window < "u", r = () => {
24
24
  clearTimeout(i), n && window.removeEventListener("online", r), t();
25
25
  }, i = setTimeout(r, e);
26
26
  n && window.addEventListener("online", r);
27
- }), v = async (e, t, n) => {
28
- for (let r = 0; r <= g.length; r++) {
27
+ }), y = async (e, t, n) => {
28
+ for (let r = 0; r <= _.length; r++) {
29
29
  if (t()) return null;
30
30
  try {
31
31
  let t = await e();
32
32
  if (!n?.(t)) return t;
33
33
  } catch {}
34
- if (r === g.length) return null;
35
- await _(g[r]);
34
+ if (r === _.length) return null;
35
+ await v(_[r]);
36
36
  }
37
37
  return null;
38
- }, y = ({ transport: c, setConversation: l, conversationRef: g, resumingPathsRef: _, bufferedGenerationsRef: v, addStreamingPath: y, removeStreamingPath: b, isPathDisplayed: x, generationPersistenceErrorMessage: S = n, generationInterruptedMessage: C = t, frameScheduler: w, stoppedGenerationIdsRef: T, rememberResumedGenerationId: E, forgetResumedGenerationId: D, onReloadError: O, onReloadSuccess: k }) => (t, n, A = {}) => {
38
+ }, b = ({ transport: c, setConversation: l, conversationRef: _, resumingPathsRef: v, bufferedGenerationsRef: y, addStreamingPath: b, removeStreamingPath: x, isPathDisplayed: S, generationPersistenceErrorMessage: C = n, generationInterruptedMessage: w = t, frameScheduler: T, stoppedGenerationIdsRef: E, rememberResumedGenerationId: D, forgetResumedGenerationId: O, onReloadError: k, onReloadSuccess: A }) => (t, n, j = {}) => {
39
39
  if (!p(n)) {
40
- A.onSettled?.();
40
+ j.onSettled?.();
41
41
  return;
42
42
  }
43
- let j = a(t);
44
- if (!A.skipDedupe && _.current.has(j)) return;
45
- _.current.add(j), y(j);
46
- let M = d(n), N = M !== -1, P = N ? -1 : f(n), F = n.messages.length - 1;
47
- N ? F = M : P !== -1 && (F = P);
48
- let I = {
49
- generationId: h,
50
- messageIndex: F,
51
- message: A.seedMessage ?? n.messages[F]
43
+ let M = a(t);
44
+ if (!j.skipDedupe && v.current.has(M)) return;
45
+ v.current.add(M), b(M);
46
+ let N = d(n), P = N !== -1, F = P ? -1 : f(n), I = n.messages.length - 1;
47
+ P ? I = N : F !== -1 && (I = F);
48
+ let L = {
49
+ generationId: g,
50
+ messageIndex: I,
51
+ message: j.seedMessage ?? n.messages[I]
52
52
  };
53
- v.current.set(j, I);
54
- let L = () => v.current.get(j) === I, R = N ? n.messages[F].backgroundGeneration?.generationId : void 0, z, B = () => {
55
- let e = R ?? z;
56
- return e != null && (T?.current.has(e) ?? !1);
57
- }, V = (e) => {
58
- A.trackAttachGenerationId && !N && e != null && L() && (z = e, E?.(j, e));
59
- }, H = () => {
60
- if (z == null) return;
61
- let e = z;
62
- z = void 0, T?.current.delete(e), D?.(j, e);
53
+ y.current.set(M, L);
54
+ let R = () => y.current.get(M) === L, z = P ? n.messages[I].backgroundGeneration?.generationId : void 0, B, V = () => {
55
+ let e = z ?? B;
56
+ return e != null && (E?.current.has(e) ?? !1);
57
+ }, H = (e) => {
58
+ j.trackAttachGenerationId && !P && e != null && R() && (B = e, D?.(M, e));
59
+ }, U = () => {
60
+ if (B == null) return;
61
+ let e = B;
62
+ B = void 0, E?.current.delete(e), O?.(M, e);
63
63
  };
64
- P !== -1 && V(n.messages[P].foregroundGeneration?.generationId);
65
- let U = (e) => !!A.shouldMarkOrphanedAsInterrupted && !N && !!e && e.messages.length - 1 === F && d(e) === -1 && f(e) === -1 && p(e) && !u(I.message), W = () => {
66
- I.message = {
67
- ...I.message,
68
- streamErrorMessage: C
64
+ F !== -1 && H(n.messages[F].foregroundGeneration?.generationId);
65
+ let W = (e) => !!j.shouldMarkOrphanedAsInterrupted && !P && !!e && e.messages.length - 1 === I && d(e) === -1 && f(e) === -1 && p(e) && !u(L.message), G = () => {
66
+ L.message = {
67
+ ...L.message,
68
+ streamErrorMessage: w
69
69
  };
70
- }, G = () => {
71
- L() && (W(), _.current.delete(j), b(j), H(), x(j) && l((e) => {
72
- if (!e || !L() || !x(j)) return e;
73
- let t = s(e, I);
74
- return g.current = t, t;
70
+ }, K = () => {
71
+ R() && (G(), v.current.delete(M), x(M), U(), S(M) && l((e) => {
72
+ if (!e || !R() || !S(M)) return e;
73
+ let t = s(e, L);
74
+ return _.current = t, t;
75
75
  }));
76
- }, K = (e, t = !1) => {
77
- if (w?.flush(j), R != null && T?.current.delete(R), H(), !L()) return;
78
- _.current.delete(j), b(j);
79
- let n = !N && e && e.messages.length - 1 === F && p(e) && u(I.message);
80
- if (t || n) I.message = {
81
- ...I.message,
82
- streamErrorMessage: S
83
- }, x(j) && l((e) => {
84
- if (!e || !L() || !x(j)) return e;
85
- let t = s(e, I);
86
- return g.current = t, t;
76
+ }, q = (e, t = !1) => {
77
+ if (T?.flush(M), z != null && E?.current.delete(z), U(), !R()) return;
78
+ v.current.delete(M), x(M);
79
+ let n = !P && e && e.messages.length - 1 === I && p(e) && u(L.message);
80
+ if (t || n) L.message = {
81
+ ...L.message,
82
+ streamErrorMessage: C
83
+ }, S(M) && l((e) => {
84
+ if (!e || !R() || !S(M)) return e;
85
+ let t = s(e, L);
86
+ return _.current = t, t;
87
87
  });
88
- else if (v.current.delete(j), e && x(j)) {
89
- let t = U(e);
90
- t && W();
91
- let n = t ? s(e, I) : e;
92
- l(n), g.current = n;
88
+ else if (y.current.delete(M), e && S(M)) {
89
+ let t = W(e);
90
+ t && G();
91
+ let n = t ? s(e, L) : e;
92
+ l(n), _.current = n;
93
93
  }
94
- }, q = async () => {
95
- if (L()) try {
94
+ }, J = async () => {
95
+ if (R()) try {
96
96
  let n = await c.getConversation(e(t));
97
- if (!L()) return;
98
- k?.(j), K(n);
97
+ if (!R()) return;
98
+ A?.(M), q(n);
99
99
  } catch {
100
- if (!L()) return;
101
- w?.flush(j), _.current.delete(j), b(j), R != null && T?.current.delete(R), H(), O?.(j, q, L);
100
+ if (!R()) return;
101
+ T?.flush(M), v.current.delete(M), x(M), z != null && E?.current.delete(z), U(), k?.(M, J, R);
102
102
  }
103
- }, J = (e) => {
104
- w?.cancel(j), L() && (I.message = e, x(j) && l((e) => {
105
- if (!e || !L() || !x(j)) return e;
106
- let t = s(e, I);
107
- return g.current = t, t;
103
+ }, Y = (e) => {
104
+ T?.cancel(M), R() && (L.message = e, S(M) && l((e) => {
105
+ if (!e || !R() || !S(M)) return e;
106
+ let t = s(e, L);
107
+ return _.current = t, t;
108
108
  }));
109
- }, Y = () => l((e) => {
110
- if (!e || !L() || !x(j)) return e;
111
- let t = s(e, I);
112
- return g.current = t, t;
113
- }), X = (e) => {
114
- if (!L() || B()) return;
115
- let t = o([I.message], 0, e);
116
- t && (I.message = t[0]), x(j) && (w ? w.schedule(j, Y) : Y());
117
- }, Z = async () => {
118
- let n = new AbortController(), r;
109
+ }, X = () => l((e) => {
110
+ if (!e || !R() || !S(M)) return e;
111
+ let t = s(e, L);
112
+ return _.current = t, t;
113
+ }), Z = (e) => {
114
+ if (!R() || V()) return;
115
+ let t = o([L.message], 0, e);
116
+ t && (L.message = t[0]), S(M) && (T ? T.schedule(M, X) : X());
117
+ }, Q = async () => {
118
+ let r = new AbortController(), a;
119
119
  try {
120
- r = await c.watchConversation(j, n.signal);
120
+ a = await c.watchConversation(M, r.signal);
121
121
  } catch {
122
- await q();
122
+ await J();
123
123
  return;
124
124
  }
125
+ let o;
125
126
  try {
126
- let i = await c.getConversation(e(t));
127
- if (!p(i)) {
128
- n.abort(), r.cancel().catch(() => void 0), K(i);
127
+ let n = await c.getConversation(e(t));
128
+ if (!p(n)) {
129
+ r.abort(), a.cancel().catch(() => void 0), q(n);
129
130
  return;
130
131
  }
131
- U(i) && G();
132
+ W(n) && K(), o = n;
132
133
  } catch {}
133
- let a = !1, o = window.setTimeout(() => {
134
- n.abort();
135
- }, m);
134
+ let s = !1, l = window.setTimeout(() => {
135
+ r.abort();
136
+ }, m), u, d = 0, g = (n, i = !1) => {
137
+ i || window.clearTimeout(u);
138
+ let o = f(n);
139
+ if (o === -1) return;
140
+ let l = n.messages[o].foregroundGeneration?.expiresAt;
141
+ if (l == null || i && l <= d) return;
142
+ d = l, window.clearTimeout(u);
143
+ let m = Math.max(l - Date.now() + h, h);
144
+ u = window.setTimeout(async () => {
145
+ if (!s && R()) try {
146
+ let n = await c.getConversation(e(t));
147
+ if (s || !R()) return;
148
+ if (!p(n)) {
149
+ s = !0, r.abort(), a.cancel().catch(() => void 0), q(n);
150
+ return;
151
+ }
152
+ W(n) && K(), g(n, !0);
153
+ } catch {}
154
+ }, m);
155
+ };
156
+ o ? g(o) : F !== -1 && g(n);
136
157
  try {
137
- await i(r, async (n) => {
158
+ await i(a, async (n) => {
138
159
  if (n?.action !== "UPDATE") return !1;
139
160
  try {
140
161
  let n = await c.getConversation(e(t));
141
- if (!p(n)) return K(n), a = !0, !0;
162
+ if (s) return !0;
163
+ if (!p(n)) return q(n), s = !0, !0;
164
+ g(n);
142
165
  } catch {}
143
166
  return !1;
144
167
  });
145
168
  } finally {
146
- clearTimeout(o);
169
+ window.clearTimeout(l), window.clearTimeout(u);
147
170
  }
148
- a || await q();
149
- }, Q = async () => {
171
+ s || await J();
172
+ }, $ = async () => {
150
173
  let e = new AbortController(), t;
151
174
  try {
152
- t = await c.attachToGeneration(j, e.signal);
175
+ t = await c.attachToGeneration(M, e.signal);
153
176
  } catch {
154
177
  return !1;
155
178
  }
156
179
  let n = !1, a = !1;
157
180
  return await i(t, (e) => {
158
- if (!L()) return !0;
181
+ if (!R()) return !0;
159
182
  switch (e.type) {
160
- case "snapshot": return V(e.generationId), J(e.message), !1;
161
- case "chunk": return X(e.chunk), !1;
183
+ case "snapshot": return H(e.generationId), Y(e.message), !1;
184
+ case "chunk": return Z(e.chunk), !1;
162
185
  case "done":
163
186
  case "error":
164
187
  case "stopped": return a = e.type === "error" && e.errorType === r.type, n = !0, !0;
165
188
  }
166
- }), n ? (a ? K(void 0, !0) : await q(), !0) : (H(), !L());
189
+ }), n ? (a ? q(void 0, !0) : await J(), !0) : (U(), !R());
167
190
  };
168
191
  (async () => {
169
192
  try {
170
- await Q() || await Z();
193
+ await $() || await Q();
171
194
  } finally {
172
- A.onSettled?.();
195
+ j.onSettled?.();
173
196
  }
174
197
  })();
175
198
  };
176
199
  //#endregion
177
- export { g as RECOVERY_REFETCH_DELAYS_MS, y as createResumeIfAwaitingGeneration, v as fetchConversationForRecovery, f as findLiveForegroundMessageIndex, d as findPendingBackgroundMessageIndex, u as hasGeneratedPayload, p as isAwaitingGenerationResume };
200
+ export { _ as RECOVERY_REFETCH_DELAYS_MS, b as createResumeIfAwaitingGeneration, y as fetchConversationForRecovery, f as findLiveForegroundMessageIndex, d as findPendingBackgroundMessageIndex, u as hasGeneratedPayload, p as isAwaitingGenerationResume };
@@ -39,6 +39,9 @@ export * from '../catalog/resource-name-conflict';
39
39
  export * from '../catalog/resource-save';
40
40
  export * from '../catalog/resource-save-adapters';
41
41
  export * from '../catalog/useResourceSavePanel/useResourceSavePanel';
42
+ export * from '../catalog/useVersionHistory/useVersionHistory';
43
+ export * from '../catalog/useVersionHistory/useVersionHistorySection';
44
+ export * from '../catalog/version-history';
42
45
  export * from '../skill/useSkillFilePreview';
43
46
  export * from '../skill/skill-types';
44
47
  //# sourceMappingURL=catalog.d.ts.map
@@ -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,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4DAA4D,CAAC;AAC3E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,8DAA8D,CAAC;AAC7E,cAAc,sDAAsD,CAAC;AACrE,cAAc,kCAAkC,CAAC;AACjD,cAAc,sEAAsE,CAAC;AACrF,cAAc,oCAAoC,CAAC;AACnD,cAAc,gEAAgE,CAAC;AAC/E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CAAC;AAC/E,cAAc,4EAA4E,CAAC;AAC3F,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,sDAAsD,CAAC;AACrE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uDAAuD,CAAC;AACtE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from '../shared/timezones';
1
2
  export * from '../scheduled-task/scheduled-task-mapping';
2
3
  export * from '../scheduled-task/scheduled-task-description';
3
4
  export * from '../scheduled-task/scheduled-task-display';
@@ -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,0CAA0C,CAAC;AACzD,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,yCAAyC,CAAC;AACxD,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,qBAAqB,CAAC;AACpC,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,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,yCAAyC,CAAC;AACxD,cAAc,uFAAuF,CAAC;AAEtG,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC"}