@aintela/chat 0.5.0 → 0.5.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.
package/dist/index.js CHANGED
@@ -1,277 +1,281 @@
1
1
  import "reflect-metadata";
2
- import { A as s, a as o, b as n, c as r, d as i, C as c, e as l, f as A, E as p, g as S, F as g, h as C, G as I, I as h, L as P, M as d, i as E, R as u, j as T, S as v, k as m, l as L, m as R, n as x, o as M, T as _, p as y, q as f, r as D, s as U, t as k, u as B, v as V, w as b } from "./serializer-CC-nM3ig.js";
2
+ import { A as s, a as o, b as n, c as r, d as i, C as c, e as l, f as A, E as p, g as S, F as g, h as C, G as I, I as E, L as h, M as P, i as d, R as T, j as u, S as v, k as m, l as L, m as R, n as _, o as x, T as M, p as y, q as D, r as f, s as U, t as k, u as B, v as V, w as H } from "./serializer-CC-nM3ig.js";
3
3
  import { C as F, C as N } from "./ClientMessage-DUby3KyC.js";
4
4
  import { A as w, a as G, M as W, b as z, S as J, i as X } from "./Memory-CjrYSkzB.js";
5
- import { C as j, P as Z } from "./Prompt-DZb7OaPp.js";
6
- import { A as Y, A as Q, C as $, E as ee, H as ae, I as te, a as se, L as oe, M as ne, W as re, b as ie, r as ce } from "./httpArtifactService-EEhF_mp9.js";
5
+ import { C as Y, P as j } from "./Prompt-DZb7OaPp.js";
6
+ import { A as q, A as Q, C as $, E as ee, H as ae, I as te, a as se, L as oe, M as ne, W as re, b as ie, r as ce } from "./httpArtifactService-EEhF_mp9.js";
7
7
  import { A as Ae } from "./artifactHtmlHandler-CMQJf1cX.js";
8
8
  import { H as Se, d as ge, r as Ce } from "./httpSessionService-wBby4ggl.js";
9
- import { APPBAR_HEIGHT as he, APPBAR_HEIGHT as Pe, ASK_USER_CANCELLED as de, AgentActivity as Ee, AgentActivity as ue, AiChat as Te, AiChatDrawer as ve, AiChatFloating as me, AiChatFloating as Le, AiChatPane as Re, AiChatProvider as xe, AiChatServiceContext as Me, AiChatPane as _e, AppBar as ye, AppBar as fe, AppRail as De, AppRail as Ue, AppShell as ke, AppShell as Be, ArtifactRender as Ve, AskUserDialog as be, AskUserSheet as He, AttachmentPreviewModal as Fe, BoxedPart as Ne, BrainIcon as Oe, ChartIcon as we, ChatIcon as Ge, ChatPane as We, ChatsHistory as ze, ChatsHistory as Je, CheckIcon as Xe, ChevronIcon as Ke, ChevronRightIcon as je, CloseIcon as Ze, CodeIcon as qe, ComposerIcon as Ye, CurrentMessage as Qe, DEFAULT_PART_RENDERERS as $e, DashboardIcon as ea, DataExplorerIcon as aa, DelayTextComponent as ta, EnvironmentProvider as sa, FileIcon as oa, FunctionPart as na, GlobeIcon as ra, HistoryIcon as ia, InertEnvironmentProvider as ca, JsxErrorBoundary as la, LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL as Aa, LastPrompts as pa, LastPrompts as Sa, LinearBackgroundProgress as ga, LinearProgressBarWithMarkers as Ca, ListCheckIcon as Ia, LiveJsxBlock as ha, LiveTsxConfigProvider as Pa, LlmResponseRender as da, LoadingDots as Ea, LockClosedIcon as ua, LockOpenIcon as Ta, MOBILE_NAV_DEFAULT as va, MarkdownExtended as ma, MentionPickerPanel as La, MenuIcon as Ra, Message as xa, MessageScopeProvider as Ma, MobileDrawer as _a, MobileDrawer as ya, PanelIcon as fa, PaperclipIcon as Da, PauseIcon as Ua, PenIcon as ka, PinIcon as Ba, PlusIcon as Va, Prompt as ba, PromptDateMarkers as Ha, PromptGhostHint as Fa, Prompt as Na, RotateIcon as Oa, RunProgressPanel as wa, RunProgressPanel as Ga, RunProgressStrip as Wa, RunProgressStrip as za, SearchIcon as Ja, SendIcon as Xa, SessionStateManagerService as Ka, SessionUsage as ja, SessionUsage as Za, SparkleIcon as qa, Sparkline as Ya, StopIcon as Qa, Stopwatch as $a, SubAgentBox as et, SubAgentBox as at, SuspendedPart as tt, TableIcon as st, TaskList as ot, TaskList as nt, TerminalIcon as rt, TextPart as it, ThoughtPart as ct, ToolIcon as lt, TrashIcon as At, TriggerDropdown as pt, TurnAwareButton as St, UiToolDispatcher as gt, UndoIcon as Ct, UsersIcon as It, V2_CHART_PALETTE as ht, WaitingPart as Pt, ZoomInIcon as dt, ZoomOutIcon as Et, classifyPart as ut, configureFriendlyMapping as Tt, createAiChatEngine as vt, createAiChatSessionStore as mt, createAiChatSessionStore as Lt, createUiToolRegistry as Rt, disposeSharedAiChatEngine as xt, engineKeyFor as Mt, extendDefaultScope as _t, extendModuleRegistry as yt, getDefaultJsxScope as ft, getFriendlyLabel as Dt, getSharedAiChatEngine as Ut, parseClientOutput as kt, parseContentBlocks as Bt, parseUiArgs as Vt, slotEnterSx as bt, useAgentEngine as Ht, useAiChatServices as Ft, useAiChatSessionStore as Nt, useCoarsePointer as Ot, useEnvironment as wt, useEnvironmentOptional as Gt, useLiveTsxMaxCharsForFull as Wt, useMessageScope as zt, useParkedAskUser as Jt, useResponsiveLayout as Xt, useTurnOpen as Kt, useVisualViewport as jt, v2Card as Zt, v2Chip as qt, v2IconBtn as Yt, v2MonoMeta as Qt, v2SectionLabel as $t, v2Theme as es } from "./components.js";
10
- import { s as ts, u as ss, a as os, b as ns, c as rs } from "./useContainerWidth-C7u70yDY.js";
11
- import { A as cs, D as ls, g as As, b as ps, c as Ss, d as gs, e as Cs, f as Is, i as hs, r as Ps } from "./environmentUtils-VZNTCzEE.js";
12
- import { ALLOWED_DOMAINS as Es, ALLOWED_EMAILS as us, AUTH_CONFIG as Ts, GOOGLE_CLIENT_ID as vs, getAgentBaseUrl as ms, getArtifactsBaseUrl as Ls, getDotNetBaseUrl as Rs, getIconByName as xs, iconCategories as Ms, materialIcons as _s, searchIcons as ys, setEbiContextData as fs, setEbiContextSessionId as Ds } from "./utils.js";
13
- import { P as ks, S as Bs, c as Vs, a as bs, e as Hs, b as Fs, f as Ns, i as Os, d as ws, p as Gs, s as Ws, h as zs, j as Js, t as Xs, k as Ks } from "./predictionRows-Damfwthh.js";
14
- import { a as Zs, b as qs, c as Ys, d as Qs, f as $s, p as eo } from "./promptTriggers-xwMJ5gRj.js";
15
- import { u as to } from "./useChatSessions-C6sYF4U6.js";
16
- import { Score as oo } from "./interfaces.js";
9
+ import { APPBAR_HEIGHT as Ee, APPBAR_HEIGHT as he, ASK_USER_CANCELLED as Pe, ActivityLine as de, AgentActivity as Te, AgentActivity as ue, AiChat as ve, AiChatDrawer as me, AiChatFloating as Le, AiChatFloating as Re, AiChatPane as _e, AiChatProvider as xe, AiChatServiceContext as Me, AiChatPane as ye, AppBar as De, AppBar as fe, AppRail as Ue, AppRail as ke, AppShell as Be, AppShell as Ve, ArtifactRender as He, AskUserDialog as be, AskUserSheet as Fe, AttachmentPreviewModal as Ne, BoxedPart as Oe, BrainIcon as we, CHAT_VERBOSITY_LEVELS as Ge, ChartIcon as We, ChatIcon as ze, ChatPane as Je, ChatsHistory as Xe, ChatsHistory as Ke, CheckIcon as Ye, ChevronIcon as je, ChevronRightIcon as Ze, CloseIcon as qe, CodeIcon as Qe, ComposerIcon as $e, CurrentMessage as ea, DEFAULT_ACTIVITY_RENDERER as aa, DEFAULT_PART_RENDERERS as ta, DashboardIcon as sa, DataExplorerIcon as oa, DelayTextComponent as na, EnvironmentProvider as ra, FileIcon as ia, FunctionPart as ca, GlobeIcon as la, HistoryIcon as Aa, InertEnvironmentProvider as pa, JsxErrorBoundary as Sa, LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL as ga, LastPrompts as Ca, LastPrompts as Ia, LinearBackgroundProgress as Ea, LinearProgressBarWithMarkers as ha, ListCheckIcon as Pa, LiveJsxBlock as da, LiveTsxConfigProvider as Ta, LlmResponseRender as ua, LoadingDots as va, LockClosedIcon as ma, LockOpenIcon as La, MOBILE_NAV_DEFAULT as Ra, MarkdownExtended as _a, MentionPickerPanel as xa, MenuIcon as Ma, Message as ya, MessageScopeProvider as Da, MobileDrawer as fa, MobileDrawer as Ua, PanelIcon as ka, PaperclipIcon as Ba, PauseIcon as Va, PenIcon as Ha, PinIcon as ba, PlusIcon as Fa, Prompt as Na, PromptDateMarkers as Oa, PromptGhostHint as wa, Prompt as Ga, RotateIcon as Wa, RunProgressPanel as za, RunProgressPanel as Ja, RunProgressStrip as Xa, RunProgressStrip as Ka, SearchIcon as Ya, SendIcon as ja, SessionStateManagerService as Za, SessionUsage as qa, SessionUsage as Qa, SparkleIcon as $a, Sparkline as et, StopIcon as at, Stopwatch as tt, SubAgentBox as st, SubAgentBox as ot, SuspendedPart as nt, TableIcon as rt, TaskList as it, TaskList as ct, TerminalIcon as lt, TextPart as At, ThoughtPart as pt, ToolIcon as St, TrashIcon as gt, TriggerDropdown as Ct, TurnAwareButton as It, UiToolDispatcher as Et, UndoIcon as ht, UsersIcon as Pt, V2_CHART_PALETTE as dt, WaitingPart as Tt, ZoomInIcon as ut, ZoomOutIcon as vt, activitySteps as mt, classifyPart as Lt, configureFriendlyMapping as Rt, createAiChatEngine as _t, createAiChatSessionStore as xt, createAiChatSessionStore as Mt, createUiToolRegistry as yt, disposeSharedAiChatEngine as Dt, engineKeyFor as ft, extendDefaultScope as Ut, extendModuleRegistry as kt, getDefaultJsxScope as Bt, getFriendlyLabel as Vt, getSharedAiChatEngine as Ht, parseClientOutput as bt, parseContentBlocks as Ft, parseUiArgs as Nt, slotEnterSx as Ot, useAgentEngine as wt, useAiChatServices as Gt, useAiChatSessionStore as Wt, useCoarsePointer as zt, useEnvironment as Jt, useEnvironmentOptional as Xt, useLiveTsxMaxCharsForFull as Kt, useMessageScope as Yt, useParkedAskUser as jt, useResponsiveLayout as Zt, useTurnOpen as qt, useVisualViewport as Qt, v2Card as $t, v2Chip as es, v2IconBtn as as, v2MonoMeta as ts, v2SectionLabel as ss, v2Theme as os } from "./components.js";
10
+ import { s as rs, u as is, a as cs, b as ls, c as As } from "./useContainerWidth-C7u70yDY.js";
11
+ import { A as Ss, D as gs, g as Cs, b as Is, c as Es, d as hs, e as Ps, f as ds, i as Ts, r as us } from "./environmentUtils-VZNTCzEE.js";
12
+ import { ALLOWED_DOMAINS as ms, ALLOWED_EMAILS as Ls, AUTH_CONFIG as Rs, GOOGLE_CLIENT_ID as _s, getAgentBaseUrl as xs, getArtifactsBaseUrl as Ms, getDotNetBaseUrl as ys, getIconByName as Ds, iconCategories as fs, materialIcons as Us, searchIcons as ks, setEbiContextData as Bs, setEbiContextSessionId as Vs } from "./utils.js";
13
+ import { P as bs, S as Fs, c as Ns, a as Os, e as ws, b as Gs, f as Ws, i as zs, d as Js, p as Xs, s as Ks, h as Ys, j as js, t as Zs, k as qs } from "./predictionRows-Damfwthh.js";
14
+ import { a as $s, b as eo, c as ao, d as to, f as so, p as oo } from "./promptTriggers-xwMJ5gRj.js";
15
+ import { u as ro } from "./useChatSessions-C6sYF4U6.js";
16
+ import { Score as co } from "./interfaces.js";
17
17
  export {
18
- Es as ALLOWED_DOMAINS,
19
- us as ALLOWED_EMAILS,
20
- cs as ANALYTICS_AGENT_NAME,
21
- he as APPBAR_HEIGHT,
22
- Pe as APPBAR_V2_HEIGHT,
23
- de as ASK_USER_CANCELLED,
24
- Ts as AUTH_CONFIG,
18
+ ms as ALLOWED_DOMAINS,
19
+ Ls as ALLOWED_EMAILS,
20
+ Ss as ANALYTICS_AGENT_NAME,
21
+ Ee as APPBAR_HEIGHT,
22
+ he as APPBAR_V2_HEIGHT,
23
+ Pe as ASK_USER_CANCELLED,
24
+ Rs as AUTH_CONFIG,
25
25
  w as Account,
26
- Ee as AgentActivity,
26
+ de as ActivityLine,
27
+ Te as AgentActivity,
27
28
  ue as AgentActivityV2,
28
29
  s as AgentConfig,
29
- Y as AgentGatewayService,
30
+ q as AgentGatewayService,
30
31
  Q as AgentGatewayWSAsync,
31
32
  G as AgentKind,
32
33
  o as AgentMode,
33
34
  n as AgentType,
34
- Te as AiChat,
35
- ve as AiChatDrawer,
36
- me as AiChatFloating,
37
- Le as AiChatFloatingV2,
38
- Re as AiChatPane,
35
+ ve as AiChat,
36
+ me as AiChatDrawer,
37
+ Le as AiChatFloating,
38
+ Re as AiChatFloatingV2,
39
+ _e as AiChatPane,
39
40
  xe as AiChatProvider,
40
41
  Me as AiChatServiceContext,
41
- _e as AiChatV2Pane,
42
- ye as AppBar,
42
+ ye as AiChatV2Pane,
43
+ De as AppBar,
43
44
  fe as AppBarV2,
44
- De as AppRail,
45
- Ue as AppRailV2,
46
- ke as AppShell,
47
- Be as AppShellV2,
45
+ Ue as AppRail,
46
+ ke as AppRailV2,
47
+ Be as AppShell,
48
+ Ve as AppShellV2,
48
49
  Ae as ArtifactHtmlHandler,
49
- Ve as ArtifactRender,
50
+ He as ArtifactRender,
50
51
  r as ArtifactType,
51
52
  be as AskUserDialog,
52
- He as AskUserSheet,
53
- Fe as AttachmentPreviewModal,
53
+ Fe as AskUserSheet,
54
+ Ne as AttachmentPreviewModal,
54
55
  i as AuthorType,
55
- Ne as BoxedPart,
56
- Oe as BrainIcon,
57
- we as ChartIcon,
56
+ Oe as BoxedPart,
57
+ we as BrainIcon,
58
+ Ge as CHAT_VERBOSITY_LEVELS,
59
+ We as ChartIcon,
58
60
  c as ChatAction,
59
61
  l as ChatEventType,
60
- Ge as ChatIcon,
62
+ ze as ChatIcon,
61
63
  A as ChatMessageContent,
62
- We as ChatPane,
63
- ze as ChatsHistory,
64
- Je as ChatsHistoryV2,
65
- Xe as CheckIcon,
66
- Ke as ChevronIcon,
67
- je as ChevronRightIcon,
64
+ Je as ChatPane,
65
+ Xe as ChatsHistory,
66
+ Ke as ChatsHistoryV2,
67
+ Ye as CheckIcon,
68
+ je as ChevronIcon,
69
+ Ze as ChevronRightIcon,
68
70
  F as ClientMessage,
69
71
  N as ClientMessageClass,
70
- Ze as CloseIcon,
71
- qe as CodeIcon,
72
- Ye as ComposerIcon,
73
- j as ConnectionState,
72
+ qe as CloseIcon,
73
+ Qe as CodeIcon,
74
+ $e as ComposerIcon,
75
+ Y as ConnectionState,
74
76
  $ as ConnectionSupervisor,
75
- Qe as CurrentMessage,
76
- $e as DEFAULT_PART_RENDERERS,
77
- ls as DEV_SERVER_CONFIG,
78
- ea as DashboardIcon,
79
- aa as DataExplorerIcon,
80
- ta as DelayTextComponent,
81
- sa as EnvironmentProvider,
77
+ ea as CurrentMessage,
78
+ aa as DEFAULT_ACTIVITY_RENDERER,
79
+ ta as DEFAULT_PART_RENDERERS,
80
+ gs as DEV_SERVER_CONFIG,
81
+ sa as DashboardIcon,
82
+ oa as DataExplorerIcon,
83
+ na as DelayTextComponent,
84
+ ra as EnvironmentProvider,
82
85
  ee as EventBusService,
83
86
  p as EventType,
84
87
  S as EventTypeDescriptions,
85
- oa as FileIcon,
88
+ ia as FileIcon,
86
89
  g as FunctionCallContent,
87
- na as FunctionPart,
90
+ ca as FunctionPart,
88
91
  C as FunctionResultContent,
89
- vs as GOOGLE_CLIENT_ID,
92
+ _s as GOOGLE_CLIENT_ID,
90
93
  I as GetEventTypeFromDotNetName,
91
- ra as GlobeIcon,
92
- ia as HistoryIcon,
94
+ la as GlobeIcon,
95
+ Aa as HistoryIcon,
93
96
  ae as HttpArtifactService,
94
97
  Se as HttpSessionService,
95
98
  te as IDLE_TIMEOUT,
96
- ca as InertEnvironmentProvider,
97
- h as InteractionPartUtils,
99
+ pa as InertEnvironmentProvider,
100
+ E as InteractionPartUtils,
98
101
  se as InteractionService,
99
- la as JsxErrorBoundary,
100
- Aa as LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL,
101
- pa as LastPrompts,
102
- Sa as LastPromptsV2,
103
- ga as LinearBackgroundProgress,
104
- Ca as LinearProgressBarWithMarkers,
105
- Ia as ListCheckIcon,
106
- ha as LiveJsxBlock,
107
- Pa as LiveTsxConfigProvider,
108
- P as LlmEvent,
109
- da as LlmResponseRender,
110
- Ea as LoadingDots,
102
+ Sa as JsxErrorBoundary,
103
+ ga as LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL,
104
+ Ca as LastPrompts,
105
+ Ia as LastPromptsV2,
106
+ Ea as LinearBackgroundProgress,
107
+ ha as LinearProgressBarWithMarkers,
108
+ Pa as ListCheckIcon,
109
+ da as LiveJsxBlock,
110
+ Ta as LiveTsxConfigProvider,
111
+ h as LlmEvent,
112
+ ua as LlmResponseRender,
113
+ va as LoadingDots,
111
114
  oe as LocalStorageService,
112
- ua as LockClosedIcon,
113
- Ta as LockOpenIcon,
115
+ ma as LockClosedIcon,
116
+ La as LockOpenIcon,
114
117
  ne as MAX_CHAR_PER_TEXT_PART,
115
- va as MOBILE_NAV_DEFAULT,
116
- ma as MarkdownExtended,
118
+ Ra as MOBILE_NAV_DEFAULT,
119
+ _a as MarkdownExtended,
117
120
  W as MemoryContextLabels,
118
121
  z as MemoryContexts,
119
- La as MentionPickerPanel,
120
- Ra as MenuIcon,
121
- xa as Message,
122
- Ma as MessageScopeProvider,
123
- _a as MobileDrawer,
124
- ya as MobileDrawerV2,
125
- d as ModelConfig,
126
- E as ModelType,
127
- ks as PERSON_OR_PLACE_LEAD_ROWS,
128
- fa as PanelIcon,
129
- Da as PaperclipIcon,
130
- Ua as PauseIcon,
131
- ka as PenIcon,
132
- Ba as PinIcon,
133
- Va as PlusIcon,
134
- ba as Prompt,
135
- Ha as PromptDateMarkers,
136
- Fa as PromptGhostHint,
137
- Z as PromptUtils,
138
- Na as PromptV2,
139
- u as ResponseType,
140
- Oa as RotateIcon,
141
- T as RunMode,
142
- wa as RunProgressPanel,
143
- Ga as RunProgressPanelV2,
144
- Wa as RunProgressStrip,
145
- za as RunProgressStripV2,
122
+ xa as MentionPickerPanel,
123
+ Ma as MenuIcon,
124
+ ya as Message,
125
+ Da as MessageScopeProvider,
126
+ fa as MobileDrawer,
127
+ Ua as MobileDrawerV2,
128
+ P as ModelConfig,
129
+ d as ModelType,
130
+ bs as PERSON_OR_PLACE_LEAD_ROWS,
131
+ ka as PanelIcon,
132
+ Ba as PaperclipIcon,
133
+ Va as PauseIcon,
134
+ Ha as PenIcon,
135
+ ba as PinIcon,
136
+ Fa as PlusIcon,
137
+ Na as Prompt,
138
+ Oa as PromptDateMarkers,
139
+ wa as PromptGhostHint,
140
+ j as PromptUtils,
141
+ Ga as PromptV2,
142
+ T as ResponseType,
143
+ Wa as RotateIcon,
144
+ u as RunMode,
145
+ za as RunProgressPanel,
146
+ Ja as RunProgressPanelV2,
147
+ Xa as RunProgressStrip,
148
+ Ka as RunProgressStripV2,
146
149
  J as SUB_AGENT_TERMINAL_STATUSES,
147
- oo as Score,
148
- Ja as SearchIcon,
149
- Xa as SendIcon,
150
+ co as Score,
151
+ Ya as SearchIcon,
152
+ ja as SendIcon,
150
153
  v as ServerEvent,
151
- Ka as SessionStateManagerService,
152
- ja as SessionUsage,
153
- Za as SessionUsagePanel,
154
+ Za as SessionStateManagerService,
155
+ qa as SessionUsage,
156
+ Qa as SessionUsagePanel,
154
157
  m as SkillLevel,
155
- Bs as SortableTable,
156
- qa as SparkleIcon,
157
- Ya as Sparkline,
158
- Qa as StopIcon,
159
- $a as Stopwatch,
158
+ Fs as SortableTable,
159
+ $a as SparkleIcon,
160
+ et as Sparkline,
161
+ at as StopIcon,
162
+ tt as Stopwatch,
160
163
  L as StreamingFunctionCallUpdateContent,
161
164
  R as StreamingReasoningContent,
162
- x as StreamingResponse,
163
- M as StreamingTextContent,
164
- et as SubAgentBox,
165
- at as SubAgentBoxV2,
166
- tt as SuspendedPart,
167
- st as TableIcon,
168
- ot as TaskList,
169
- nt as TaskListV2,
170
- rt as TerminalIcon,
171
- _ as TextContent,
172
- it as TextPart,
173
- ct as ThoughtPart,
174
- lt as ToolIcon,
175
- At as TrashIcon,
176
- pt as TriggerDropdown,
177
- St as TurnAwareButton,
178
- gt as UiToolDispatcher,
179
- Ct as UndoIcon,
180
- It as UsersIcon,
181
- ht as V2_CHART_PALETTE,
165
+ _ as StreamingResponse,
166
+ x as StreamingTextContent,
167
+ st as SubAgentBox,
168
+ ot as SubAgentBoxV2,
169
+ nt as SuspendedPart,
170
+ rt as TableIcon,
171
+ it as TaskList,
172
+ ct as TaskListV2,
173
+ lt as TerminalIcon,
174
+ M as TextContent,
175
+ At as TextPart,
176
+ pt as ThoughtPart,
177
+ St as ToolIcon,
178
+ gt as TrashIcon,
179
+ Ct as TriggerDropdown,
180
+ It as TurnAwareButton,
181
+ Et as UiToolDispatcher,
182
+ ht as UndoIcon,
183
+ Pt as UsersIcon,
184
+ dt as V2_CHART_PALETTE,
182
185
  re as WARNING_THRESHOLD,
183
- Pt as WaitingPart,
186
+ Tt as WaitingPart,
184
187
  ie as WebSocketConnecionV2,
185
- dt as ZoomInIcon,
186
- Et as ZoomOutIcon,
187
- Zs as activatePlaceholder,
188
- qs as advanceToPlaceholder,
189
- Ys as applyTriggerInsertion,
190
- Vs as chipLocations,
191
- bs as chunkArray,
192
- ut as classifyPart,
193
- Tt as configureFriendlyMapping,
194
- vt as createAiChatEngine,
195
- mt as createAiChatSessionStore,
196
- Lt as createAiChatStore,
188
+ ut as ZoomInIcon,
189
+ vt as ZoomOutIcon,
190
+ $s as activatePlaceholder,
191
+ mt as activitySteps,
192
+ eo as advanceToPlaceholder,
193
+ ao as applyTriggerInsertion,
194
+ Ns as chipLocations,
195
+ Os as chunkArray,
196
+ Lt as classifyPart,
197
+ Rt as configureFriendlyMapping,
198
+ _t as createAiChatEngine,
199
+ xt as createAiChatSessionStore,
200
+ Mt as createAiChatStore,
197
201
  y as createEventSerializer,
198
- f as createStreamingResponseSerializer,
199
- Rt as createUiToolRegistry,
202
+ D as createStreamingResponseSerializer,
203
+ yt as createUiToolRegistry,
200
204
  ge as decodeSessionEvents,
201
- D as deserializeEvent,
205
+ f as deserializeEvent,
202
206
  U as deserializePayload,
203
- Qs as detectTrigger,
204
- xt as disposeSharedAiChatEngine,
205
- Mt as engineKeyFor,
206
- _t as extendDefaultScope,
207
- yt as extendModuleRegistry,
208
- Hs as extractInteractionId,
209
- Fs as extractLinkAction,
210
- Ns as fetchAtMentions,
211
- $s as findPlaceholder,
212
- ms as getAgentBaseUrl,
213
- As as getAgentServerBaseUrl,
214
- Ls as getArtifactsBaseUrl,
207
+ to as detectTrigger,
208
+ Dt as disposeSharedAiChatEngine,
209
+ ft as engineKeyFor,
210
+ Ut as extendDefaultScope,
211
+ kt as extendModuleRegistry,
212
+ ws as extractInteractionId,
213
+ Gs as extractLinkAction,
214
+ Ws as fetchAtMentions,
215
+ so as findPlaceholder,
216
+ xs as getAgentBaseUrl,
217
+ Cs as getAgentServerBaseUrl,
218
+ Ms as getArtifactsBaseUrl,
215
219
  k as getConnectionStateColor,
216
- ft as getDefaultJsxScope,
217
- Rs as getDotNetBaseUrl,
218
- ps as getEnvVar,
219
- Ss as getEnvironmentInfo,
220
- Dt as getFriendlyLabel,
221
- xs as getIconByName,
220
+ Bt as getDefaultJsxScope,
221
+ ys as getDotNetBaseUrl,
222
+ Is as getEnvVar,
223
+ Es as getEnvironmentInfo,
224
+ Vt as getFriendlyLabel,
225
+ Ds as getIconByName,
222
226
  B as getModelVendor,
223
- gs as getRandomUUID,
224
- Cs as getServerBaseUrl,
225
- Is as getServerClientBaseUrl,
226
- Ut as getSharedAiChatEngine,
227
- Ms as iconCategories,
228
- Os as isSectionStart,
229
- hs as isServer,
227
+ hs as getRandomUUID,
228
+ Ps as getServerBaseUrl,
229
+ ds as getServerClientBaseUrl,
230
+ Ht as getSharedAiChatEngine,
231
+ fs as iconCategories,
232
+ zs as isSectionStart,
233
+ Ts as isServer,
230
234
  X as isSubAgentTerminalStatus,
231
- ws as isValidInteractionId,
232
- _s as materialIcons,
233
- kt as parseClientOutput,
234
- Bt as parseContentBlocks,
235
- Vt as parseUiArgs,
236
- Gs as placeCaret,
237
- eo as placeholderAt,
235
+ Js as isValidInteractionId,
236
+ Us as materialIcons,
237
+ bt as parseClientOutput,
238
+ Ft as parseContentBlocks,
239
+ Nt as parseUiArgs,
240
+ Xs as placeCaret,
241
+ oo as placeholderAt,
238
242
  ce as reduceInteraction,
239
243
  Ce as resolveAccessToken,
240
- Ps as resolveApiUrl,
244
+ us as resolveApiUrl,
241
245
  V as sanitizeJsonString,
242
- ys as searchIcons,
243
- b as serializeEvent,
244
- fs as setEbiContextData,
245
- Ds as setEbiContextSessionId,
246
- ts as slotDatesFor,
247
- bt as slotEnterSx,
248
- Ws as splitBigLinesWithSpaces,
249
- zs as startsWithInteractionId,
250
- Js as swallowNextClick,
251
- Xs as toPredictionRows,
252
- Ks as tokenizeForHighlight,
253
- Ht as useAgentEngine,
254
- Ft as useAiChatServices,
255
- Nt as useAiChatSessionStore,
256
- to as useChatSessions,
257
- Ot as useCoarsePointer,
258
- ss as useContainerRectangle,
259
- wt as useEnvironment,
260
- Gt as useEnvironmentOptional,
261
- os as useInterval,
262
- Wt as useLiveTsxMaxCharsForFull,
263
- zt as useMessageScope,
264
- Jt as useParkedAskUser,
265
- ns as usePromptAssist,
266
- Xt as useResponsiveLayout,
267
- rs as useStickyHighlight,
268
- Kt as useTurnOpen,
269
- jt as useVisualViewport,
270
- Zt as v2Card,
271
- qt as v2Chip,
272
- Yt as v2IconBtn,
273
- Qt as v2MonoMeta,
274
- $t as v2SectionLabel,
275
- es as v2Theme
246
+ ks as searchIcons,
247
+ H as serializeEvent,
248
+ Bs as setEbiContextData,
249
+ Vs as setEbiContextSessionId,
250
+ rs as slotDatesFor,
251
+ Ot as slotEnterSx,
252
+ Ks as splitBigLinesWithSpaces,
253
+ Ys as startsWithInteractionId,
254
+ js as swallowNextClick,
255
+ Zs as toPredictionRows,
256
+ qs as tokenizeForHighlight,
257
+ wt as useAgentEngine,
258
+ Gt as useAiChatServices,
259
+ Wt as useAiChatSessionStore,
260
+ ro as useChatSessions,
261
+ zt as useCoarsePointer,
262
+ is as useContainerRectangle,
263
+ Jt as useEnvironment,
264
+ Xt as useEnvironmentOptional,
265
+ cs as useInterval,
266
+ Kt as useLiveTsxMaxCharsForFull,
267
+ Yt as useMessageScope,
268
+ jt as useParkedAskUser,
269
+ ls as usePromptAssist,
270
+ Zt as useResponsiveLayout,
271
+ As as useStickyHighlight,
272
+ qt as useTurnOpen,
273
+ Qt as useVisualViewport,
274
+ $t as v2Card,
275
+ es as v2Chip,
276
+ as as v2IconBtn,
277
+ ts as v2MonoMeta,
278
+ ss as v2SectionLabel,
279
+ os as v2Theme
276
280
  };
277
281
  //# sourceMappingURL=index.js.map
@@ -11,6 +11,7 @@ import { PartRendererMap, UiToolRegistry } from './ChatPane/parts';
11
11
  import { Interaction } from '../../models/Interaction';
12
12
  import { AuthPromptContext, SendMessageOptions, UserMessageRendererProps } from './AiChatTypes';
13
13
  import { SendMessageResponse } from '../../models/SendMessageResponse';
14
+ import { ChatVerbosity } from './ChatPane/verbosity';
14
15
  export interface AiChatContextState {
15
16
  agentGatewayService: AgentGatewayService;
16
17
  eventBusService: EventBusService;
@@ -53,6 +54,9 @@ export interface AiChatContextState {
53
54
  setShowToolCalls: (show: boolean) => void;
54
55
  friendlyMode: boolean;
55
56
  setFriendlyMode: (enabled: boolean) => void;
57
+ /** How much of the run internals (reasoning, tool calls) the transcript shows — see {@link ChatVerbosity}. */
58
+ verbosity: ChatVerbosity;
59
+ setVerbosity: (verbosity: ChatVerbosity) => void;
56
60
  currentModel: string | undefined;
57
61
  setCurrentModel: (modelId: string) => void;
58
62
  onVisibleQuestionChange?: (question: string | null) => void;
@@ -7,6 +7,7 @@ import { ISessionService } from '../../services/servers/sessionService/ISessionS
7
7
  import { IArtifactService } from '../../services/interfaces/artifactService';
8
8
  import { IStorageService } from '../../services/storageService';
9
9
  import { EventBusService, FirstTokenEventDetails } from '../../services/eventBusService';
10
+ import { ChatVerbosity } from './ChatPane/verbosity';
10
11
  import { AgentGatewayService, GatewaySendMessageOptions } from '../../services/servers/AgentGatewayService';
11
12
  import { INotificationPort } from '../../interfaces/INotificationPort';
12
13
  import { IWebSocketConnection } from '../../services/WebSocketConnection/webSocketConnection';
@@ -245,6 +246,13 @@ export interface AiChatBaseProps extends AiChatStyleProps {
245
246
  */
246
247
  onNavigate?: (path: string) => void;
247
248
  friendlyMode?: boolean;
249
+ /**
250
+ * How much of the run internals — reasoning and tool calls — the transcript shows: `'naked'` (none),
251
+ * `'minimum'` (one italic line while the turn is open), `'information'` (reasoning, plus tool calls only while
252
+ * they run) or `'detailed'` (everything; `showToolCalls` still governs closed turns). Defaults to
253
+ * `'detailed'`. Seeds the composer menu's verbosity bar, which can change it at runtime.
254
+ */
255
+ verbosity?: ChatVerbosity;
248
256
  /**
249
257
  * Per-part renderer overrides. Map a `PartKind` ('text' | 'thought' |
250
258
  * 'function' | 'waiting' | 'suspended' | 'boxed') to a custom
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ /** Long enough to read as a change, short enough that a 300 ms tool never shows two faces at once for long. */
3
+ export declare const CROSSFADE_MS = 180;
4
+ interface CrossfadeSlotProps {
5
+ /** What the slot is showing. A new key crossfades: the previous content fades out over the new one. */
6
+ itemKey: string;
7
+ /**
8
+ * Also slide the layers a few pixels as they fade (in from below, out upwards). Reads well on a tall block;
9
+ * on a single line of text the motion reads as a bounce, so the default is a plain fade.
10
+ */
11
+ slide?: boolean;
12
+ children: React.ReactNode;
13
+ }
14
+ /**
15
+ * One place in the transcript whose content is replaced over time — the call the `information` verbosity shows,
16
+ * the `minimum` verbosity's line. Swapping the content outright was a hard cut, and the eye read it as a blink.
17
+ * Here the new content fades in where it will stay, while the previous one — a snapshot of its last render —
18
+ * fades out on top of it and is dropped.
19
+ *
20
+ * The incoming layer stays in the flow, so the slot is as tall as what it currently shows; give that content a
21
+ * fixed size to keep the slot from changing height between items.
22
+ */
23
+ declare const CrossfadeSlot: React.FC<CrossfadeSlotProps>;
24
+ export default CrossfadeSlot;
@@ -28,5 +28,7 @@ export declare class InteractionPartGroup {
28
28
  * A view concern, so it lives with the view. Pure: same parts, same groups.
29
29
  *
30
30
  * @param live whether the turn is still open. Closed turns drop tool chips unless `showToolCalls`.
31
+ * @param inlineTrailing let the LAST part join the inline row too. By default a trailing tool call gets a block of
32
+ * its own; the `information` verbosity wants every running call on the same line.
31
33
  */
32
- export declare function groupParts(parts: InteractionPart[], live?: boolean, showToolCalls?: boolean): InteractionPartGroup[];
34
+ export declare function groupParts(parts: InteractionPart[], live?: boolean, showToolCalls?: boolean, inlineTrailing?: boolean): InteractionPartGroup[];
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { ActivityRendererProps } from './types';
3
+ /**
4
+ * The built-in `activity` renderer — the `minimum` verbosity's whole view of the run internals: one line of
5
+ * plain italic text, no chrome. A thinking icon with the current reasoning highlight, or a tool icon with the
6
+ * running calls, comma separated. Hosts replace it with `partRenderers.activity`.
7
+ */
8
+ declare const ActivityLine: React.FC<ActivityRendererProps>;
9
+ export default ActivityLine;
@@ -8,6 +8,7 @@ import { default as WaitingPart } from './WaitingPart';
8
8
  import { default as SuspendedPart } from './SuspendedPart';
9
9
  import { default as BoxedPart } from './BoxedPart';
10
10
  import { default as ServerErrorPart } from './ServerErrorPart';
11
+ import { default as ActivityLine } from './ActivityLine';
11
12
  export declare const DEFAULT_PART_RENDERERS: Record<PartKind, PartRenderer>;
12
13
  /**
13
14
  * Maps an `InteractionPart` to the kind of renderer that should handle it.
@@ -22,7 +23,9 @@ export declare const DEFAULT_PART_RENDERERS: Record<PartKind, PartRenderer>;
22
23
  export declare function classifyPart(part: InteractionPart): PartKind | null;
23
24
  export * from './types';
24
25
  export * from './uiToolRegistry';
25
- export { TextPart, ThoughtPart, ThoughtRun, FunctionPart, WaitingPart, SuspendedPart, BoxedPart, ServerErrorPart };
26
+ export { TextPart, ThoughtPart, ThoughtRun, FunctionPart, WaitingPart, SuspendedPart, BoxedPart, ServerErrorPart, ActivityLine };
27
+ /** The built-in `activity` renderer (the `minimum` verbosity's slim line); a host overrides it with `partRenderers.activity`. */
28
+ export declare const DEFAULT_ACTIVITY_RENDERER: import('react').FC<import('./types').ActivityRendererProps>;
26
29
  export type { ThoughtRunProps } from './ThoughtRun';
27
30
  export { ThoughtRunContext, useThoughtRun } from './ThoughtRunContext';
28
31
  export type { ThoughtRunState } from './ThoughtRunContext';