@aintela/chat 0.5.0 → 0.5.1
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/components.js +5924 -5687
- package/dist/components.js.map +1 -1
- package/dist/index.js +222 -219
- package/dist/src/components/AiChat/AiChatContext.d.ts +4 -0
- package/dist/src/components/AiChat/AiChatTypes.d.ts +8 -0
- package/dist/src/components/AiChat/ChatPane/CrossfadeSlot.d.ts +24 -0
- package/dist/src/components/AiChat/ChatPane/crossfadeSlot.test.d.ts +1 -0
- package/dist/src/components/AiChat/ChatPane/groupParts.d.ts +3 -1
- package/dist/src/components/AiChat/ChatPane/messageAgentVerbosity.test.d.ts +1 -0
- package/dist/src/components/AiChat/ChatPane/parts/ActivityLine.d.ts +9 -0
- package/dist/src/components/AiChat/ChatPane/parts/index.d.ts +4 -1
- package/dist/src/components/AiChat/ChatPane/parts/types.d.ts +19 -1
- package/dist/src/components/AiChat/ChatPane/verbosity.d.ts +57 -0
- package/dist/src/components/index.d.ts +4 -2
- package/dist/src/components/v2/VerbositySlider.d.ts +12 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,277 +1,280 @@
|
|
|
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
|
|
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
|
|
6
|
-
import { A as
|
|
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
|
|
10
|
-
import { s as
|
|
11
|
-
import { A as
|
|
12
|
-
import { ALLOWED_DOMAINS as
|
|
13
|
-
import { P as
|
|
14
|
-
import { a as
|
|
15
|
-
import { u as
|
|
16
|
-
import { Score as
|
|
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, classifyPart as mt, configureFriendlyMapping as Lt, createAiChatEngine as Rt, createAiChatSessionStore as _t, createAiChatSessionStore as xt, createUiToolRegistry as Mt, disposeSharedAiChatEngine as yt, engineKeyFor as Dt, extendDefaultScope as ft, extendModuleRegistry as Ut, getDefaultJsxScope as kt, getFriendlyLabel as Bt, getSharedAiChatEngine as Vt, parseClientOutput as Ht, parseContentBlocks as bt, parseUiArgs as Ft, slotEnterSx as Nt, useAgentEngine as Ot, useAiChatServices as wt, useAiChatSessionStore as Gt, useCoarsePointer as Wt, useEnvironment as zt, useEnvironmentOptional as Jt, useLiveTsxMaxCharsForFull as Xt, useMessageScope as Kt, useParkedAskUser as Yt, useResponsiveLayout as jt, useTurnOpen as Zt, useVisualViewport as qt, v2Card as Qt, v2Chip as $t, v2IconBtn as es, v2MonoMeta as as, v2SectionLabel as ts, v2Theme as ss } from "./components.js";
|
|
10
|
+
import { s as ns, u as rs, a as is, b as cs, c as ls } from "./useContainerWidth-C7u70yDY.js";
|
|
11
|
+
import { A as ps, D as Ss, g as gs, b as Cs, c as Is, d as Es, e as hs, f as Ps, i as ds, r as Ts } from "./environmentUtils-VZNTCzEE.js";
|
|
12
|
+
import { ALLOWED_DOMAINS as vs, ALLOWED_EMAILS as ms, AUTH_CONFIG as Ls, GOOGLE_CLIENT_ID as Rs, getAgentBaseUrl as _s, getArtifactsBaseUrl as xs, getDotNetBaseUrl as Ms, getIconByName as ys, iconCategories as Ds, materialIcons as fs, searchIcons as Us, setEbiContextData as ks, setEbiContextSessionId as Bs } from "./utils.js";
|
|
13
|
+
import { P as Hs, S as bs, c as Fs, a as Ns, e as Os, b as ws, f as Gs, i as Ws, d as zs, p as Js, s as Xs, h as Ks, j as Ys, t as js, k as Zs } from "./predictionRows-Damfwthh.js";
|
|
14
|
+
import { a as Qs, b as $s, c as eo, d as ao, f as to, p as so } from "./promptTriggers-xwMJ5gRj.js";
|
|
15
|
+
import { u as no } from "./useChatSessions-C6sYF4U6.js";
|
|
16
|
+
import { Score as io } from "./interfaces.js";
|
|
17
17
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
vs as ALLOWED_DOMAINS,
|
|
19
|
+
ms as ALLOWED_EMAILS,
|
|
20
|
+
ps as ANALYTICS_AGENT_NAME,
|
|
21
|
+
Ee as APPBAR_HEIGHT,
|
|
22
|
+
he as APPBAR_V2_HEIGHT,
|
|
23
|
+
Pe as ASK_USER_CANCELLED,
|
|
24
|
+
Ls as AUTH_CONFIG,
|
|
25
25
|
w as Account,
|
|
26
|
-
|
|
26
|
+
de as ActivityLine,
|
|
27
|
+
Te as AgentActivity,
|
|
27
28
|
ue as AgentActivityV2,
|
|
28
29
|
s as AgentConfig,
|
|
29
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
42
|
-
|
|
42
|
+
ye as AiChatV2Pane,
|
|
43
|
+
De as AppBar,
|
|
43
44
|
fe as AppBarV2,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
Ue as AppRail,
|
|
46
|
+
ke as AppRailV2,
|
|
47
|
+
Be as AppShell,
|
|
48
|
+
Ve as AppShellV2,
|
|
48
49
|
Ae as ArtifactHtmlHandler,
|
|
49
|
-
|
|
50
|
+
He as ArtifactRender,
|
|
50
51
|
r as ArtifactType,
|
|
51
52
|
be as AskUserDialog,
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
Fe as AskUserSheet,
|
|
54
|
+
Ne as AttachmentPreviewModal,
|
|
54
55
|
i as AuthorType,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
|
|
62
|
+
ze as ChatIcon,
|
|
61
63
|
A as ChatMessageContent,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
qe as CloseIcon,
|
|
73
|
+
Qe as CodeIcon,
|
|
74
|
+
$e as ComposerIcon,
|
|
75
|
+
Y as ConnectionState,
|
|
74
76
|
$ as ConnectionSupervisor,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
ea as CurrentMessage,
|
|
78
|
+
aa as DEFAULT_ACTIVITY_RENDERER,
|
|
79
|
+
ta as DEFAULT_PART_RENDERERS,
|
|
80
|
+
Ss 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
|
-
|
|
88
|
+
ia as FileIcon,
|
|
86
89
|
g as FunctionCallContent,
|
|
87
|
-
|
|
90
|
+
ca as FunctionPart,
|
|
88
91
|
C as FunctionResultContent,
|
|
89
|
-
|
|
92
|
+
Rs as GOOGLE_CLIENT_ID,
|
|
90
93
|
I as GetEventTypeFromDotNetName,
|
|
91
|
-
|
|
92
|
-
|
|
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
|
-
|
|
97
|
-
|
|
99
|
+
pa as InertEnvironmentProvider,
|
|
100
|
+
E as InteractionPartUtils,
|
|
98
101
|
se as InteractionService,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
113
|
-
|
|
115
|
+
ma as LockClosedIcon,
|
|
116
|
+
La as LockOpenIcon,
|
|
114
117
|
ne as MAX_CHAR_PER_TEXT_PART,
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
Ra as MOBILE_NAV_DEFAULT,
|
|
119
|
+
_a as MarkdownExtended,
|
|
117
120
|
W as MemoryContextLabels,
|
|
118
121
|
z as MemoryContexts,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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
|
+
Hs 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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
io as Score,
|
|
151
|
+
Ya as SearchIcon,
|
|
152
|
+
ja as SendIcon,
|
|
150
153
|
v as ServerEvent,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
+
Za as SessionStateManagerService,
|
|
155
|
+
qa as SessionUsage,
|
|
156
|
+
Qa as SessionUsagePanel,
|
|
154
157
|
m as SkillLevel,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
bs 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
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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
|
-
|
|
186
|
+
Tt as WaitingPart,
|
|
184
187
|
ie as WebSocketConnecionV2,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
188
|
+
ut as ZoomInIcon,
|
|
189
|
+
vt as ZoomOutIcon,
|
|
190
|
+
Qs as activatePlaceholder,
|
|
191
|
+
$s as advanceToPlaceholder,
|
|
192
|
+
eo as applyTriggerInsertion,
|
|
193
|
+
Fs as chipLocations,
|
|
194
|
+
Ns as chunkArray,
|
|
195
|
+
mt as classifyPart,
|
|
196
|
+
Lt as configureFriendlyMapping,
|
|
197
|
+
Rt as createAiChatEngine,
|
|
198
|
+
_t as createAiChatSessionStore,
|
|
199
|
+
xt as createAiChatStore,
|
|
197
200
|
y as createEventSerializer,
|
|
198
|
-
|
|
199
|
-
|
|
201
|
+
D as createStreamingResponseSerializer,
|
|
202
|
+
Mt as createUiToolRegistry,
|
|
200
203
|
ge as decodeSessionEvents,
|
|
201
|
-
|
|
204
|
+
f as deserializeEvent,
|
|
202
205
|
U as deserializePayload,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
206
|
+
ao as detectTrigger,
|
|
207
|
+
yt as disposeSharedAiChatEngine,
|
|
208
|
+
Dt as engineKeyFor,
|
|
209
|
+
ft as extendDefaultScope,
|
|
210
|
+
Ut as extendModuleRegistry,
|
|
211
|
+
Os as extractInteractionId,
|
|
212
|
+
ws as extractLinkAction,
|
|
213
|
+
Gs as fetchAtMentions,
|
|
214
|
+
to as findPlaceholder,
|
|
215
|
+
_s as getAgentBaseUrl,
|
|
216
|
+
gs as getAgentServerBaseUrl,
|
|
217
|
+
xs as getArtifactsBaseUrl,
|
|
215
218
|
k as getConnectionStateColor,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
kt as getDefaultJsxScope,
|
|
220
|
+
Ms as getDotNetBaseUrl,
|
|
221
|
+
Cs as getEnvVar,
|
|
222
|
+
Is as getEnvironmentInfo,
|
|
223
|
+
Bt as getFriendlyLabel,
|
|
224
|
+
ys as getIconByName,
|
|
222
225
|
B as getModelVendor,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
226
|
+
Es as getRandomUUID,
|
|
227
|
+
hs as getServerBaseUrl,
|
|
228
|
+
Ps as getServerClientBaseUrl,
|
|
229
|
+
Vt as getSharedAiChatEngine,
|
|
230
|
+
Ds as iconCategories,
|
|
231
|
+
Ws as isSectionStart,
|
|
232
|
+
ds as isServer,
|
|
230
233
|
X as isSubAgentTerminalStatus,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
234
|
+
zs as isValidInteractionId,
|
|
235
|
+
fs as materialIcons,
|
|
236
|
+
Ht as parseClientOutput,
|
|
237
|
+
bt as parseContentBlocks,
|
|
238
|
+
Ft as parseUiArgs,
|
|
239
|
+
Js as placeCaret,
|
|
240
|
+
so as placeholderAt,
|
|
238
241
|
ce as reduceInteraction,
|
|
239
242
|
Ce as resolveAccessToken,
|
|
240
|
-
|
|
243
|
+
Ts as resolveApiUrl,
|
|
241
244
|
V as sanitizeJsonString,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
245
|
+
Us as searchIcons,
|
|
246
|
+
H as serializeEvent,
|
|
247
|
+
ks as setEbiContextData,
|
|
248
|
+
Bs as setEbiContextSessionId,
|
|
249
|
+
ns as slotDatesFor,
|
|
250
|
+
Nt as slotEnterSx,
|
|
251
|
+
Xs as splitBigLinesWithSpaces,
|
|
252
|
+
Ks as startsWithInteractionId,
|
|
253
|
+
Ys as swallowNextClick,
|
|
254
|
+
js as toPredictionRows,
|
|
255
|
+
Zs as tokenizeForHighlight,
|
|
256
|
+
Ot as useAgentEngine,
|
|
257
|
+
wt as useAiChatServices,
|
|
258
|
+
Gt as useAiChatSessionStore,
|
|
259
|
+
no as useChatSessions,
|
|
260
|
+
Wt as useCoarsePointer,
|
|
261
|
+
rs as useContainerRectangle,
|
|
262
|
+
zt as useEnvironment,
|
|
263
|
+
Jt as useEnvironmentOptional,
|
|
264
|
+
is as useInterval,
|
|
265
|
+
Xt as useLiveTsxMaxCharsForFull,
|
|
266
|
+
Kt as useMessageScope,
|
|
267
|
+
Yt as useParkedAskUser,
|
|
268
|
+
cs as usePromptAssist,
|
|
269
|
+
jt as useResponsiveLayout,
|
|
270
|
+
ls as useStickyHighlight,
|
|
271
|
+
Zt as useTurnOpen,
|
|
272
|
+
qt as useVisualViewport,
|
|
273
|
+
Qt as v2Card,
|
|
274
|
+
$t as v2Chip,
|
|
275
|
+
es as v2IconBtn,
|
|
276
|
+
as as v2MonoMeta,
|
|
277
|
+
ts as v2SectionLabel,
|
|
278
|
+
ss as v2Theme
|
|
276
279
|
};
|
|
277
280
|
//# 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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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';
|