@burdenoff/fe-libs 2026.926.5 → 2026.927.2

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 (95) hide show
  1. package/dist/shared/assistant/conversation.d.ts +91 -3
  2. package/dist/shared/assistant/conversation.d.ts.map +1 -1
  3. package/dist/shared/assistant/gatewayClient.d.ts +15 -0
  4. package/dist/shared/assistant/gatewayClient.d.ts.map +1 -1
  5. package/dist/shared/assistant/gatewayClient.js +1 -1
  6. package/dist/shared/assistant/guardedStorage.d.ts +4 -2
  7. package/dist/shared/assistant/guardedStorage.d.ts.map +1 -1
  8. package/dist/shared/assistant/guardedStorage.js +1 -1
  9. package/dist/shared/assistant/history/historyApi.d.ts +38 -0
  10. package/dist/shared/assistant/history/historyApi.d.ts.map +1 -0
  11. package/dist/shared/assistant/history/historyApi.js +153 -0
  12. package/dist/shared/assistant/history/historyEngine.d.ts +96 -0
  13. package/dist/shared/assistant/history/historyEngine.d.ts.map +1 -0
  14. package/dist/shared/assistant/history/historyEngine.js +774 -0
  15. package/dist/shared/assistant/history/historyErrors.d.ts +72 -0
  16. package/dist/shared/assistant/history/historyErrors.d.ts.map +1 -0
  17. package/dist/shared/assistant/history/historyErrors.js +74 -0
  18. package/dist/shared/assistant/history/historyList.d.ts +115 -0
  19. package/dist/shared/assistant/history/historyList.d.ts.map +1 -0
  20. package/dist/shared/assistant/history/historyList.js +116 -0
  21. package/dist/shared/assistant/history/historyMapping.d.ts +65 -0
  22. package/dist/shared/assistant/history/historyMapping.d.ts.map +1 -0
  23. package/dist/shared/assistant/history/historyMapping.js +383 -0
  24. package/dist/shared/assistant/history/historyMerge.d.ts +65 -0
  25. package/dist/shared/assistant/history/historyMerge.d.ts.map +1 -0
  26. package/dist/shared/assistant/history/historyMerge.js +97 -0
  27. package/dist/shared/assistant/history/historyOperations.d.ts +24 -0
  28. package/dist/shared/assistant/history/historyOperations.d.ts.map +1 -0
  29. package/dist/shared/assistant/history/historyOperations.js +125 -0
  30. package/dist/shared/assistant/history/historyResume.d.ts +56 -0
  31. package/dist/shared/assistant/history/historyResume.d.ts.map +1 -0
  32. package/dist/shared/assistant/history/historyResume.js +55 -0
  33. package/dist/shared/assistant/history/historyStatus.d.ts +76 -0
  34. package/dist/shared/assistant/history/historyStatus.d.ts.map +1 -0
  35. package/dist/shared/assistant/history/historyStatus.js +47 -0
  36. package/dist/shared/assistant/history/historyStore.d.ts +192 -0
  37. package/dist/shared/assistant/history/historyStore.d.ts.map +1 -0
  38. package/dist/shared/assistant/history/historyStore.js +503 -0
  39. package/dist/shared/assistant/history/historyTimestamps.d.ts +11 -0
  40. package/dist/shared/assistant/history/historyTimestamps.d.ts.map +1 -0
  41. package/dist/shared/assistant/history/historyTimestamps.js +9 -0
  42. package/dist/shared/assistant/history/historyTypes.d.ts +256 -0
  43. package/dist/shared/assistant/history/historyTypes.d.ts.map +1 -0
  44. package/dist/shared/assistant/history/historyTypes.js +20 -0
  45. package/dist/shared/assistant/history/profileBoundStorage.d.ts +36 -0
  46. package/dist/shared/assistant/history/profileBoundStorage.d.ts.map +1 -0
  47. package/dist/shared/assistant/history/profileBoundStorage.js +74 -0
  48. package/dist/shared/assistant/history/stampRegistry.d.ts +84 -0
  49. package/dist/shared/assistant/history/stampRegistry.d.ts.map +1 -0
  50. package/dist/shared/assistant/history/stampRegistry.js +58 -0
  51. package/dist/shared/assistant/history/useAssistantServerHistory.d.ts +18 -0
  52. package/dist/shared/assistant/history/useAssistantServerHistory.d.ts.map +1 -0
  53. package/dist/shared/assistant/history/useAssistantServerHistory.js +12 -0
  54. package/dist/shared/assistant/i18nManifest.d.ts +18 -0
  55. package/dist/shared/assistant/i18nManifest.d.ts.map +1 -1
  56. package/dist/shared/assistant/i18nManifest.js +18 -0
  57. package/dist/shared/assistant/index.d.ts +16 -0
  58. package/dist/shared/assistant/index.d.ts.map +1 -1
  59. package/dist/shared/assistant/liveTurns.d.ts +7 -0
  60. package/dist/shared/assistant/liveTurns.d.ts.map +1 -1
  61. package/dist/shared/assistant/liveTurns.js +35 -32
  62. package/dist/shared/assistant/spokenTurns.d.ts +20 -0
  63. package/dist/shared/assistant/spokenTurns.d.ts.map +1 -1
  64. package/dist/shared/assistant/spokenTurns.js +13 -8
  65. package/dist/shared/assistant/store.d.ts +35 -1
  66. package/dist/shared/assistant/store.d.ts.map +1 -1
  67. package/dist/shared/assistant/store.js +93 -24
  68. package/dist/shared/assistant/ui/AIAssistantPanel.d.ts +16 -0
  69. package/dist/shared/assistant/ui/AIAssistantPanel.d.ts.map +1 -1
  70. package/dist/shared/assistant/ui/AIAssistantPanel.js +63 -60
  71. package/dist/shared/assistant/ui/AssistantChatArea.d.ts.map +1 -1
  72. package/dist/shared/assistant/ui/AssistantChatArea.js +730 -672
  73. package/dist/shared/assistant/ui/AssistantConversationList.d.ts +17 -0
  74. package/dist/shared/assistant/ui/AssistantConversationList.d.ts.map +1 -1
  75. package/dist/shared/assistant/ui/AssistantConversationList.js +324 -145
  76. package/dist/shared/assistant/ui/AssistantHistoryNotices.d.ts +36 -0
  77. package/dist/shared/assistant/ui/AssistantHistoryNotices.d.ts.map +1 -0
  78. package/dist/shared/assistant/ui/AssistantHistoryNotices.js +103 -0
  79. package/dist/shared/assistant/ui/AssistantOverlay.d.ts +4 -0
  80. package/dist/shared/assistant/ui/AssistantOverlay.d.ts.map +1 -1
  81. package/dist/shared/assistant/ui/AssistantOverlay.js +97 -94
  82. package/dist/shared/assistant/ui/AssistantSpokenTurnsNotice.d.ts +5 -3
  83. package/dist/shared/assistant/ui/AssistantSpokenTurnsNotice.d.ts.map +1 -1
  84. package/dist/shared/assistant/ui/composer/AssistantComposer.d.ts +6 -0
  85. package/dist/shared/assistant/ui/composer/AssistantComposer.d.ts.map +1 -1
  86. package/dist/shared/assistant/ui/composer/AssistantComposer.js +54 -54
  87. package/dist/shared/assistant/ui/voice/VoiceTranscriptDrawer.d.ts +9 -0
  88. package/dist/shared/assistant/ui/voice/VoiceTranscriptDrawer.d.ts.map +1 -1
  89. package/dist/shared/assistant/ui/voice/VoiceTranscriptDrawer.js +37 -32
  90. package/dist/shared/assistant/voice/turnVisibility.d.ts +7 -5
  91. package/dist/shared/assistant/voice/turnVisibility.d.ts.map +1 -1
  92. package/dist/shared/assistant/voice/voiceTranscript.d.ts +3 -2
  93. package/dist/shared/assistant/voice/voiceTranscript.d.ts.map +1 -1
  94. package/dist/shared-assistant.js +153 -137
  95. package/package.json +1 -1
@@ -11,84 +11,87 @@ import { panelOwnedPreviewBridge as p, useHostedAssistantPreviewBridge as m } fr
11
11
  import { AssistantPreviewOverlay as h } from "../preview/AssistantPreviewOverlay.js";
12
12
  import { AssistantHeader as g } from "./AssistantHeader.js";
13
13
  import { AssistantConversationList as _ } from "./AssistantConversationList.js";
14
- import { useFilesServiceWarmup as v } from "../../../storage/warmFilesService.js";
15
- import { useAssistantHeartbeat as y } from "../useAssistantHeartbeat.js";
16
- import { useAssistantKeyboardShortcuts as b } from "../useAssistantKeyboardShortcuts.js";
17
- import { AssistantChatArea as x } from "./AssistantChatArea.js";
18
- import { useRef as S, useState as C } from "react";
19
- import { jsx as w, jsxs as T } from "react/jsx-runtime";
14
+ import { useAssistantServerHistory as v } from "../history/useAssistantServerHistory.js";
15
+ import { useFilesServiceWarmup as y } from "../../../storage/warmFilesService.js";
16
+ import { useAssistantHeartbeat as b } from "../useAssistantHeartbeat.js";
17
+ import { useAssistantKeyboardShortcuts as x } from "../useAssistantKeyboardShortcuts.js";
18
+ import { AssistantChatArea as S } from "./AssistantChatArea.js";
19
+ import { useRef as C, useState as w } from "react";
20
+ import { jsx as T, jsxs as E } from "react/jsx-runtime";
20
21
  //#region src/shared/assistant/ui/AIAssistantPanel.tsx
21
- var E = ({ onClose: E, visible: D, docked: O, onToggleDock: k, writeAccess: A, onNavigate: j, connectSourceHref: M, onConnectSource: N, preview: P }) => {
22
- let F = t(), [I, L] = C(!1);
23
- I && !P && L(!1);
24
- let R = I && !!P;
25
- f(p(P, m()));
26
- let z = S(null), { conversations: B, activeConversationId: V, conversationListOpen: H, setConversationListOpen: U, createConversation: W } = r(), G = H || R, K = c({
27
- historyOpen: H,
28
- previewOpen: R
29
- }), q = (e) => {
22
+ var D = ({ onClose: D, visible: O, docked: k, onToggleDock: A, writeAccess: j, onNavigate: M, connectSourceHref: N, onConnectSource: P, preview: F, serverHistory: I = !1 }) => {
23
+ let L = t();
24
+ v(I);
25
+ let [R, z] = w(!1);
26
+ R && !F && z(!1);
27
+ let B = R && !!F;
28
+ f(p(F, m()));
29
+ let V = C(null), { conversations: H, activeConversationId: U, conversationListOpen: W, setConversationListOpen: G, createConversation: K } = r(), q = W || B, J = c({
30
+ historyOpen: W,
31
+ previewOpen: B
32
+ }), Y = (e) => {
30
33
  let t = u({
31
- historyOpen: H,
32
- previewOpen: R
34
+ historyOpen: W,
35
+ previewOpen: B
33
36
  }, e);
34
- U(t.historyOpen), L(t.previewOpen);
35
- }, J = B.find((e) => e.id === V);
36
- y(J?.backendSessionId ?? null, J?.mode ?? null, D ?? !0), v(D ?? !0);
37
- let Y = e(D !== !1);
38
- return b({
39
- panelRef: z,
37
+ G(t.historyOpen), z(t.previewOpen);
38
+ }, X = H.find((e) => e.id === U);
39
+ b(X?.backendSessionId ?? null, X?.mode ?? null, O ?? !0), y(O ?? !0);
40
+ let Z = e(O !== !1);
41
+ return x({
42
+ panelRef: V,
40
43
  onClose: () => {
41
44
  if (l({
42
- historyOpen: H,
43
- previewOpen: R
45
+ historyOpen: W,
46
+ previewOpen: B
44
47
  }) === "overlay") {
45
- U(!1), L(!1);
48
+ G(!1), z(!1);
46
49
  return;
47
50
  }
48
- E();
51
+ D();
49
52
  }
50
- }), /* @__PURE__ */ w(i, {
51
- visible: D ?? !0,
52
- children: /* @__PURE__ */ w(d, {
53
- value: P,
54
- children: /* @__PURE__ */ w(n, {
55
- value: j,
56
- children: /* @__PURE__ */ w(a, {
57
- value: M,
58
- onOpen: N,
59
- children: /* @__PURE__ */ T("div", {
60
- ref: z,
53
+ }), /* @__PURE__ */ T(i, {
54
+ visible: O ?? !0,
55
+ children: /* @__PURE__ */ T(d, {
56
+ value: F,
57
+ children: /* @__PURE__ */ T(n, {
58
+ value: M,
59
+ children: /* @__PURE__ */ T(a, {
60
+ value: N,
61
+ onOpen: P,
62
+ children: /* @__PURE__ */ E("div", {
63
+ ref: V,
61
64
  className: "relative flex h-full w-full flex-col bg-bg-surface",
62
65
  role: "complementary",
63
- "aria-label": F("panel.ariaLabel", "AI Assistant"),
66
+ "aria-label": L("panel.ariaLabel", "AI Assistant"),
64
67
  "data-testid": "ai-assistant-panel",
65
68
  [s]: "",
66
- ...K ? { [o]: K } : {},
69
+ ...J ? { [o]: J } : {},
67
70
  tabIndex: -1,
68
71
  children: [
69
- /* @__PURE__ */ w("div", {
72
+ /* @__PURE__ */ T("div", {
70
73
  className: "contents",
71
- inert: G || void 0,
72
- children: /* @__PURE__ */ w(g, {
73
- contextLabel: Y,
74
- onNewConversation: () => W(),
75
- onOpenHistory: () => q("history"),
76
- historyOpen: H,
77
- onTogglePreview: () => q("preview"),
78
- previewOpen: R,
79
- onClose: E,
80
- docked: O,
81
- onToggleDock: k
74
+ inert: q || void 0,
75
+ children: /* @__PURE__ */ T(g, {
76
+ contextLabel: Z,
77
+ onNewConversation: () => K(),
78
+ onOpenHistory: () => Y("history"),
79
+ historyOpen: W,
80
+ onTogglePreview: () => Y("preview"),
81
+ previewOpen: B,
82
+ onClose: D,
83
+ docked: k,
84
+ onToggleDock: A
82
85
  })
83
86
  }),
84
- H && /* @__PURE__ */ w(_, {}),
85
- R && /* @__PURE__ */ w(h, { onClose: () => L(!1) }),
86
- /* @__PURE__ */ w("div", {
87
+ W && /* @__PURE__ */ T(_, {}),
88
+ B && /* @__PURE__ */ T(h, { onClose: () => z(!1) }),
89
+ /* @__PURE__ */ T("div", {
87
90
  className: "contents",
88
- inert: G || void 0,
89
- children: /* @__PURE__ */ w(x, {
90
- visible: D ?? !0,
91
- writeAccess: A
91
+ inert: q || void 0,
92
+ children: /* @__PURE__ */ T(S, {
93
+ visible: O ?? !0,
94
+ writeAccess: j
92
95
  })
93
96
  })
94
97
  ]
@@ -99,4 +102,4 @@ var E = ({ onClose: E, visible: D, docked: O, onToggleDock: k, writeAccess: A, o
99
102
  });
100
103
  };
101
104
  //#endregion
102
- export { E as AIAssistantPanel };
105
+ export { D as AIAssistantPanel };
@@ -1 +1 @@
1
- {"version":3,"file":"AssistantChatArea.d.ts","sourceRoot":"","sources":["../../../../src/shared/assistant/ui/AssistantChatArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AA4Jf,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAkGvE;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;CACpC;AAED,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAgqHxD,CAAC"}
1
+ {"version":3,"file":"AssistantChatArea.d.ts","sourceRoot":"","sources":["../../../../src/shared/assistant/ui/AssistantChatArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AAkKf,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAmHvE;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;CACpC;AAED,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAk3HxD,CAAC"}