@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/components.js +5878 -5605
- package/dist/components.js.map +1 -1
- package/dist/index.js +223 -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 +27 -1
- package/dist/src/components/AiChat/ChatPane/verbosity.d.ts +85 -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,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
|
|
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, 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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
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
|
+
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
|
-
|
|
88
|
+
ia as FileIcon,
|
|
86
89
|
g as FunctionCallContent,
|
|
87
|
-
|
|
90
|
+
ca as FunctionPart,
|
|
88
91
|
C as FunctionResultContent,
|
|
89
|
-
|
|
92
|
+
_s 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
|
+
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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
co 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
|
+
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
|
-
|
|
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
|
+
$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
|
-
|
|
199
|
-
|
|
202
|
+
D as createStreamingResponseSerializer,
|
|
203
|
+
yt as createUiToolRegistry,
|
|
200
204
|
ge as decodeSessionEvents,
|
|
201
|
-
|
|
205
|
+
f as deserializeEvent,
|
|
202
206
|
U as deserializePayload,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
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
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
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
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
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
|
-
|
|
244
|
+
us as resolveApiUrl,
|
|
241
245
|
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
|
-
|
|
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;
|
|
@@ -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';
|