@aintela/chat 0.4.19 → 0.4.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hooks.js CHANGED
@@ -1,4 +1,4 @@
1
- import { u as a, a as t, b as o } from "./useContainerWidth-DD7G1OoW.js";
1
+ import { u as a, a as t, b as o } from "./useContainerWidth-DKSIf5HQ.js";
2
2
  import { u } from "./useChatSessions-BzgPYfyj.js";
3
3
  export {
4
4
  u as useChatSessions,
package/dist/index.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import "reflect-metadata";
2
- import { A as s, a as n, b as o, c as r, d as i, C as c, e as l, f as A, E as p, g, F as S, h as C, G as I, I as h, L as d, M as P, i as u, R as E, j as v, S as T, k as m, l as L, m as R, n as x, o as M, T as y, p as f, q as D, r as U, s as _, t as k, u as B, v as V, w as b } from "./serializer-BB8Cz7YD.js";
2
+ import { A as s, a as n, b as o, c as r, d as i, C as c, e as l, f as A, E as p, g, F as S, h as C, G as I, I as h, L as d, M as P, i as E, R as u, j as v, S as T, k as m, l as L, m as R, n as x, o as M, T as y, p as f, q as D, r as U, s as _, t as k, u as B, v as V, w as b } from "./serializer-BB8Cz7YD.js";
3
3
  import { C as H, C as N } from "./ClientMessage-DUby3KyC.js";
4
4
  import { A as G, a as O, M as W, b as z, S as J, i as K } from "./Memory-CjrYSkzB.js";
5
5
  import { C as q, P as X } from "./Prompt-DZb7OaPp.js";
6
6
  import { A as Y, a as Q, E as $, H as ee, I as ae, L as te, W as se } from "./httpArtifactService-ogJ9kOTq.js";
7
7
  import { A as oe } from "./artifactHtmlHandler-CMQJf1cX.js";
8
8
  import { H as ie, d as ce, r as le } from "./httpSessionService-B3CxFtl1.js";
9
- import { APPBAR_HEIGHT as pe, APPBAR_HEIGHT as ge, ASK_USER_CANCELLED as Se, AgentActivity as Ce, AgentActivity as Ie, AiChat as he, AiChatDrawer as de, AiChatFloating as Pe, AiChatFloating as ue, AiChatPane as Ee, AiChatProvider as ve, AiChatServiceContext as Te, AiChatPane as me, AppBar as Le, AppBar as Re, AppRail as xe, AppRail as Me, AppShell as ye, AppShell as fe, ArtifactRender as De, AskUserDialog as Ue, AskUserSheet as _e, AttachmentPreviewModal as ke, BoxedPart as Be, BrainIcon as Ve, ChartIcon as be, ChatIcon as Fe, ChatPane as He, ChatsHistory as Ne, ChatsHistory as we, CheckIcon as Ge, ChevronIcon as Oe, ChevronRightIcon as We, CloseIcon as ze, CodeIcon as Je, ComposerIcon as Ke, CurrentMessage as je, DEFAULT_PART_RENDERERS as qe, DashboardIcon as Xe, DataExplorerIcon as Ze, DelayTextComponent as Ye, EnvironmentProvider as Qe, FileIcon as $e, FunctionPart as ea, GlobeIcon as aa, HistoryIcon as ta, IDLE_TIMEOUT as sa, InertEnvironmentProvider as na, JsxErrorBoundary as oa, LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL as ra, LastPrompts as ia, LastPrompts as ca, LinearBackgroundProgress as la, LinearProgressBarWithMarkers as Aa, ListCheckIcon as pa, LiveJsxBlock as ga, LiveTsxConfigProvider as Sa, LlmResponseRender as Ca, LoadingDots as Ia, LockClosedIcon as ha, LockOpenIcon as da, MOBILE_NAV_DEFAULT as Pa, MarkdownExtended as ua, MentionPickerPanel as Ea, MenuIcon as va, Message as Ta, MobileDrawer as ma, MobileDrawer as La, PanelIcon as Ra, PaperclipIcon as xa, PauseIcon as Ma, PenIcon as ya, PinIcon as fa, PlusIcon as Da, Prompt as Ua, PromptDateMarkers as _a, PromptGhostHint as ka, Prompt as Ba, RotateIcon as Va, RunProgressPanel as ba, RunProgressPanel as Fa, RunProgressStrip as Ha, RunProgressStrip as Na, SearchIcon as wa, SendIcon as Ga, SessionStateManagerService as Oa, SessionUsage as Wa, SessionUsage as za, SparkleIcon as Ja, Sparkline as Ka, StopIcon as ja, Stopwatch as qa, SubAgentBox as Xa, SubAgentBox as Za, SuspendedPart as Ya, TableIcon as Qa, TaskList as $a, TaskList as et, TerminalIcon as at, TextPart as tt, ThoughtPart as st, ToolIcon as nt, TrashIcon as ot, TriggerDropdown as rt, TurnAwareButton as it, UiToolDispatcher as ct, UndoIcon as lt, UsersIcon as At, V2_CHART_PALETTE as pt, WARNING_THRESHOLD as gt, WaitingPart as St, ZoomInIcon as Ct, ZoomOutIcon as It, classifyPart as ht, configureFriendlyMapping as dt, createAiChatEngine as Pt, createAiChatSessionStore as ut, createAiChatSessionStore as Et, createUiToolRegistry as vt, disposeSharedAiChatEngine as Tt, engineKeyFor as mt, extendDefaultScope as Lt, extendModuleRegistry as Rt, getDefaultJsxScope as xt, getFriendlyLabel as Mt, getSharedAiChatEngine as yt, parseClientOutput as ft, parseContentBlocks as Dt, parseUiArgs as Ut, useAgentEngine as _t, useAiChatServices as kt, useAiChatSessionStore as Bt, useCoarsePointer as Vt, useEnvironment as bt, useEnvironmentOptional as Ft, useLiveTsxMaxCharsForFull as Ht, useParkedAskUser as Nt, useResponsiveLayout as wt, useTurnOpen as Gt, useVisualViewport as Ot, v2Card as Wt, v2Chip as zt, v2IconBtn as Jt, v2MonoMeta as Kt, v2SectionLabel as jt, v2Theme as qt } from "./components.js";
10
- import { u as Zt, a as Yt, b as Qt } from "./useContainerWidth-DD7G1OoW.js";
11
- import { A as es, D as as, g as ts, b as ss, c as ns, d as os, e as rs, f as is, i as cs, r as ls } from "./environmentUtils-VZNTCzEE.js";
12
- import { ALLOWED_DOMAINS as ps, ALLOWED_EMAILS as gs, AUTH_CONFIG as Ss, GOOGLE_CLIENT_ID as Cs, getAgentBaseUrl as Is, getArtifactsBaseUrl as hs, getDotNetBaseUrl as ds, getIconByName as Ps, iconCategories as us, materialIcons as Es, searchIcons as vs, setEbiContextData as Ts, setEbiContextSessionId as ms } from "./utils.js";
13
- import { S as Rs, a as xs, b as Ms, c as ys, d as fs, e as Ds, f as Us, g as _s, h as ks, i as Bs, j as Vs, k as bs, l as Fs, p as Hs, m as Ns, s as ws, o as Gs, q as Os, t as Ws, r as zs } from "./predictionRows-CkZdmdsi.js";
14
- import { u as Ks } from "./useChatSessions-BzgPYfyj.js";
15
- import { Score as qs } from "./interfaces.js";
9
+ import { APPBAR_HEIGHT as pe, APPBAR_HEIGHT as ge, ASK_USER_CANCELLED as Se, AgentActivity as Ce, AgentActivity as Ie, AiChat as he, AiChatDrawer as de, AiChatFloating as Pe, AiChatFloating as Ee, AiChatPane as ue, AiChatProvider as ve, AiChatServiceContext as Te, AiChatPane as me, AppBar as Le, AppBar as Re, AppRail as xe, AppRail as Me, AppShell as ye, AppShell as fe, ArtifactRender as De, AskUserDialog as Ue, AskUserSheet as _e, AttachmentPreviewModal as ke, BoxedPart as Be, BrainIcon as Ve, ChartIcon as be, ChatIcon as Fe, ChatPane as He, ChatsHistory as Ne, ChatsHistory as we, CheckIcon as Ge, ChevronIcon as Oe, ChevronRightIcon as We, CloseIcon as ze, CodeIcon as Je, ComposerIcon as Ke, CurrentMessage as je, DEFAULT_PART_RENDERERS as qe, DashboardIcon as Xe, DataExplorerIcon as Ze, DelayTextComponent as Ye, EnvironmentProvider as Qe, FileIcon as $e, FunctionPart as ea, GlobeIcon as aa, HistoryIcon as ta, IDLE_TIMEOUT as sa, InertEnvironmentProvider as na, JsxErrorBoundary as oa, LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL as ra, LastPrompts as ia, LastPrompts as ca, LinearBackgroundProgress as la, LinearProgressBarWithMarkers as Aa, ListCheckIcon as pa, LiveJsxBlock as ga, LiveTsxConfigProvider as Sa, LlmResponseRender as Ca, LoadingDots as Ia, LockClosedIcon as ha, LockOpenIcon as da, MOBILE_NAV_DEFAULT as Pa, MarkdownExtended as Ea, MentionPickerPanel as ua, MenuIcon as va, Message as Ta, MobileDrawer as ma, MobileDrawer as La, PanelIcon as Ra, PaperclipIcon as xa, PauseIcon as Ma, PenIcon as ya, PinIcon as fa, PlusIcon as Da, Prompt as Ua, PromptDateMarkers as _a, PromptGhostHint as ka, Prompt as Ba, RotateIcon as Va, RunProgressPanel as ba, RunProgressPanel as Fa, RunProgressStrip as Ha, RunProgressStrip as Na, SearchIcon as wa, SendIcon as Ga, SessionStateManagerService as Oa, SessionUsage as Wa, SessionUsage as za, SparkleIcon as Ja, Sparkline as Ka, StopIcon as ja, Stopwatch as qa, SubAgentBox as Xa, SubAgentBox as Za, SuspendedPart as Ya, TableIcon as Qa, TaskList as $a, TaskList as et, TerminalIcon as at, TextPart as tt, ThoughtPart as st, ToolIcon as nt, TrashIcon as ot, TriggerDropdown as rt, TurnAwareButton as it, UiToolDispatcher as ct, UndoIcon as lt, UsersIcon as At, V2_CHART_PALETTE as pt, WARNING_THRESHOLD as gt, WaitingPart as St, ZoomInIcon as Ct, ZoomOutIcon as It, classifyPart as ht, configureFriendlyMapping as dt, createAiChatEngine as Pt, createAiChatSessionStore as Et, createAiChatSessionStore as ut, createUiToolRegistry as vt, disposeSharedAiChatEngine as Tt, engineKeyFor as mt, extendDefaultScope as Lt, extendModuleRegistry as Rt, getDefaultJsxScope as xt, getFriendlyLabel as Mt, getSharedAiChatEngine as yt, parseClientOutput as ft, parseContentBlocks as Dt, parseUiArgs as Ut, slotEnterSx as _t, useAgentEngine as kt, useAiChatServices as Bt, useAiChatSessionStore as Vt, useCoarsePointer as bt, useEnvironment as Ft, useEnvironmentOptional as Ht, useLiveTsxMaxCharsForFull as Nt, useParkedAskUser as wt, useResponsiveLayout as Gt, useTurnOpen as Ot, useVisualViewport as Wt, v2Card as zt, v2Chip as Jt, v2IconBtn as Kt, v2MonoMeta as jt, v2SectionLabel as qt, v2Theme as Xt } from "./components.js";
10
+ import { u as Yt, a as Qt, b as $t } from "./useContainerWidth-DKSIf5HQ.js";
11
+ import { A as as, D as ts, g as ss, b as ns, c as os, d as rs, e as is, f as cs, i as ls, r as As } from "./environmentUtils-VZNTCzEE.js";
12
+ import { ALLOWED_DOMAINS as gs, ALLOWED_EMAILS as Ss, AUTH_CONFIG as Cs, GOOGLE_CLIENT_ID as Is, getAgentBaseUrl as hs, getArtifactsBaseUrl as ds, getDotNetBaseUrl as Ps, getIconByName as Es, iconCategories as us, materialIcons as vs, searchIcons as Ts, setEbiContextData as ms, setEbiContextSessionId as Ls } from "./utils.js";
13
+ import { S as xs, a as Ms, b as ys, c as fs, d as Ds, e as Us, f as _s, g as ks, h as Bs, i as Vs, j as bs, k as Fs, l as Hs, p as Ns, m as ws, s as Gs, o as Os, q as Ws, t as zs, r as Js } from "./predictionRows-BDZtjaRZ.js";
14
+ import { u as js } from "./useChatSessions-BzgPYfyj.js";
15
+ import { Score as Xs } from "./interfaces.js";
16
16
  export {
17
- ps as ALLOWED_DOMAINS,
18
- gs as ALLOWED_EMAILS,
19
- es as ANALYTICS_AGENT_NAME,
17
+ gs as ALLOWED_DOMAINS,
18
+ Ss as ALLOWED_EMAILS,
19
+ as as ANALYTICS_AGENT_NAME,
20
20
  pe as APPBAR_HEIGHT,
21
21
  ge as APPBAR_V2_HEIGHT,
22
22
  Se as ASK_USER_CANCELLED,
23
- Ss as AUTH_CONFIG,
23
+ Cs as AUTH_CONFIG,
24
24
  G as Account,
25
25
  Ce as AgentActivity,
26
26
  Ie as AgentActivityV2,
@@ -33,8 +33,8 @@ export {
33
33
  he as AiChat,
34
34
  de as AiChatDrawer,
35
35
  Pe as AiChatFloating,
36
- ue as AiChatFloatingV2,
37
- Ee as AiChatPane,
36
+ Ee as AiChatFloatingV2,
37
+ ue as AiChatPane,
38
38
  ve as AiChatProvider,
39
39
  Te as AiChatServiceContext,
40
40
  me as AiChatV2Pane,
@@ -72,7 +72,7 @@ export {
72
72
  q as ConnectionState,
73
73
  je as CurrentMessage,
74
74
  qe as DEFAULT_PART_RENDERERS,
75
- as as DEV_SERVER_CONFIG,
75
+ ts as DEV_SERVER_CONFIG,
76
76
  Xe as DashboardIcon,
77
77
  Ze as DataExplorerIcon,
78
78
  Ye as DelayTextComponent,
@@ -84,7 +84,7 @@ export {
84
84
  S as FunctionCallContent,
85
85
  ea as FunctionPart,
86
86
  C as FunctionResultContent,
87
- Cs as GOOGLE_CLIENT_ID,
87
+ Is as GOOGLE_CLIENT_ID,
88
88
  I as GetEventTypeFromDotNetName,
89
89
  aa as GlobeIcon,
90
90
  ta as HistoryIcon,
@@ -110,16 +110,16 @@ export {
110
110
  ha as LockClosedIcon,
111
111
  da as LockOpenIcon,
112
112
  Pa as MOBILE_NAV_DEFAULT,
113
- ua as MarkdownExtended,
113
+ Ea as MarkdownExtended,
114
114
  W as MemoryContextLabels,
115
115
  z as MemoryContexts,
116
- Ea as MentionPickerPanel,
116
+ ua as MentionPickerPanel,
117
117
  va as MenuIcon,
118
118
  Ta as Message,
119
119
  ma as MobileDrawer,
120
120
  La as MobileDrawerV2,
121
121
  P as ModelConfig,
122
- u as ModelType,
122
+ E as ModelType,
123
123
  Ra as PanelIcon,
124
124
  xa as PaperclipIcon,
125
125
  Ma as PauseIcon,
@@ -131,7 +131,7 @@ export {
131
131
  ka as PromptGhostHint,
132
132
  X as PromptUtils,
133
133
  Ba as PromptV2,
134
- E as ResponseType,
134
+ u as ResponseType,
135
135
  Va as RotateIcon,
136
136
  v as RunMode,
137
137
  ba as RunProgressPanel,
@@ -139,7 +139,7 @@ export {
139
139
  Ha as RunProgressStrip,
140
140
  Na as RunProgressStripV2,
141
141
  J as SUB_AGENT_TERMINAL_STATUSES,
142
- qs as Score,
142
+ Xs as Score,
143
143
  wa as SearchIcon,
144
144
  Ga as SendIcon,
145
145
  T as ServerEvent,
@@ -147,7 +147,7 @@ export {
147
147
  Wa as SessionUsage,
148
148
  za as SessionUsagePanel,
149
149
  m as SkillLevel,
150
- Rs as SortableTable,
150
+ xs as SortableTable,
151
151
  Ja as SparkleIcon,
152
152
  Ka as Sparkline,
153
153
  ja as StopIcon,
@@ -179,89 +179,90 @@ export {
179
179
  se as WebSocketConnecionV2,
180
180
  Ct as ZoomInIcon,
181
181
  It as ZoomOutIcon,
182
- xs as activatePlaceholder,
183
- Ms as advanceToPlaceholder,
184
- ys as applyTriggerInsertion,
185
- fs as chipLocations,
186
- Ds as chunkArray,
182
+ Ms as activatePlaceholder,
183
+ ys as advanceToPlaceholder,
184
+ fs as applyTriggerInsertion,
185
+ Ds as chipLocations,
186
+ Us as chunkArray,
187
187
  ht as classifyPart,
188
188
  dt as configureFriendlyMapping,
189
189
  Pt as createAiChatEngine,
190
- ut as createAiChatSessionStore,
191
- Et as createAiChatStore,
190
+ Et as createAiChatSessionStore,
191
+ ut as createAiChatStore,
192
192
  f as createEventSerializer,
193
193
  D as createStreamingResponseSerializer,
194
194
  vt as createUiToolRegistry,
195
195
  ce as decodeSessionEvents,
196
196
  U as deserializeEvent,
197
197
  _ as deserializePayload,
198
- Us as detectTrigger,
198
+ _s as detectTrigger,
199
199
  Tt as disposeSharedAiChatEngine,
200
200
  mt as engineKeyFor,
201
201
  Lt as extendDefaultScope,
202
202
  Rt as extendModuleRegistry,
203
- _s as extractInteractionId,
204
- ks as extractLinkAction,
205
- Bs as fetchAtMentions,
206
- Vs as findPlaceholder,
207
- Is as getAgentBaseUrl,
208
- ts as getAgentServerBaseUrl,
209
- hs as getArtifactsBaseUrl,
203
+ ks as extractInteractionId,
204
+ Bs as extractLinkAction,
205
+ Vs as fetchAtMentions,
206
+ bs as findPlaceholder,
207
+ hs as getAgentBaseUrl,
208
+ ss as getAgentServerBaseUrl,
209
+ ds as getArtifactsBaseUrl,
210
210
  k as getConnectionStateColor,
211
211
  xt as getDefaultJsxScope,
212
- ds as getDotNetBaseUrl,
213
- ss as getEnvVar,
214
- ns as getEnvironmentInfo,
212
+ Ps as getDotNetBaseUrl,
213
+ ns as getEnvVar,
214
+ os as getEnvironmentInfo,
215
215
  Mt as getFriendlyLabel,
216
- Ps as getIconByName,
216
+ Es as getIconByName,
217
217
  B as getModelVendor,
218
- os as getRandomUUID,
219
- rs as getServerBaseUrl,
220
- is as getServerClientBaseUrl,
218
+ rs as getRandomUUID,
219
+ is as getServerBaseUrl,
220
+ cs as getServerClientBaseUrl,
221
221
  yt as getSharedAiChatEngine,
222
222
  us as iconCategories,
223
- bs as isSectionStart,
224
- cs as isServer,
223
+ Fs as isSectionStart,
224
+ ls as isServer,
225
225
  K as isSubAgentTerminalStatus,
226
- Fs as isValidInteractionId,
227
- Es as materialIcons,
226
+ Hs as isValidInteractionId,
227
+ vs as materialIcons,
228
228
  ft as parseClientOutput,
229
229
  Dt as parseContentBlocks,
230
230
  Ut as parseUiArgs,
231
- Hs as placeCaret,
232
- Ns as placeholderAt,
231
+ Ns as placeCaret,
232
+ ws as placeholderAt,
233
233
  le as resolveAccessToken,
234
- ls as resolveApiUrl,
234
+ As as resolveApiUrl,
235
235
  V as sanitizeJsonString,
236
- vs as searchIcons,
236
+ Ts as searchIcons,
237
237
  b as serializeEvent,
238
- Ts as setEbiContextData,
239
- ms as setEbiContextSessionId,
240
- ws as splitBigLinesWithSpaces,
241
- Gs as startsWithInteractionId,
242
- Os as swallowNextClick,
243
- Ws as toPredictionRows,
244
- zs as tokenizeForHighlight,
245
- _t as useAgentEngine,
246
- kt as useAiChatServices,
247
- Bt as useAiChatSessionStore,
248
- Ks as useChatSessions,
249
- Vt as useCoarsePointer,
250
- Zt as useContainerRectangle,
251
- bt as useEnvironment,
252
- Ft as useEnvironmentOptional,
253
- Yt as useInterval,
254
- Ht as useLiveTsxMaxCharsForFull,
255
- Nt as useParkedAskUser,
256
- Qt as usePromptAssist,
257
- wt as useResponsiveLayout,
258
- Gt as useTurnOpen,
259
- Ot as useVisualViewport,
260
- Wt as v2Card,
261
- zt as v2Chip,
262
- Jt as v2IconBtn,
263
- Kt as v2MonoMeta,
264
- jt as v2SectionLabel,
265
- qt as v2Theme
238
+ ms as setEbiContextData,
239
+ Ls as setEbiContextSessionId,
240
+ _t as slotEnterSx,
241
+ Gs as splitBigLinesWithSpaces,
242
+ Os as startsWithInteractionId,
243
+ Ws as swallowNextClick,
244
+ zs as toPredictionRows,
245
+ Js as tokenizeForHighlight,
246
+ kt as useAgentEngine,
247
+ Bt as useAiChatServices,
248
+ Vt as useAiChatSessionStore,
249
+ js as useChatSessions,
250
+ bt as useCoarsePointer,
251
+ Yt as useContainerRectangle,
252
+ Ft as useEnvironment,
253
+ Ht as useEnvironmentOptional,
254
+ Qt as useInterval,
255
+ Nt as useLiveTsxMaxCharsForFull,
256
+ wt as useParkedAskUser,
257
+ $t as usePromptAssist,
258
+ Gt as useResponsiveLayout,
259
+ Ot as useTurnOpen,
260
+ Wt as useVisualViewport,
261
+ zt as v2Card,
262
+ Jt as v2Chip,
263
+ Kt as v2IconBtn,
264
+ jt as v2MonoMeta,
265
+ qt as v2SectionLabel,
266
+ Xt as v2Theme
266
267
  };
267
268
  //# sourceMappingURL=index.js.map
@@ -896,9 +896,9 @@ d(J, "placeholderAt");
896
896
  function k(o, e) {
897
897
  if (e.trigger) {
898
898
  const t = o.slice(0, e.startIdx) + e.trigger + o.slice(e.endIdx), s = e.startIdx + 1;
899
- return { next: t, selectionStart: s, selectionEnd: s, reopenTrigger: !0 };
899
+ return { next: t, selectionStart: s, selectionEnd: s, reopenTrigger: !0, placeholderLabel: e.label };
900
900
  }
901
- return { next: o, selectionStart: e.startIdx, selectionEnd: e.endIdx, reopenTrigger: !1 };
901
+ return { next: o, selectionStart: e.startIdx, selectionEnd: e.endIdx, reopenTrigger: !1, placeholderLabel: e.label };
902
902
  }
903
903
  d(k, "activatePlaceholder");
904
904
  function Y(o, e) {
@@ -914,7 +914,8 @@ function Q(o, e, t) {
914
914
  next: `${s}${c.next}${n}`,
915
915
  selectionStart: s.length + c.selectionStart,
916
916
  selectionEnd: s.length + c.selectionEnd,
917
- reopenTrigger: c.reopenTrigger
917
+ reopenTrigger: c.reopenTrigger,
918
+ placeholderLabel: c.placeholderLabel
918
919
  };
919
920
  }
920
921
  const r = t[t.length - 1];
@@ -988,4 +989,4 @@ export {
988
989
  B as s,
989
990
  se as t
990
991
  };
991
- //# sourceMappingURL=predictionRows-CkZdmdsi.js.map
992
+ //# sourceMappingURL=predictionRows-BDZtjaRZ.js.map