@aintela/chat 0.14.3 → 0.14.5
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 +3946 -3922
- package/dist/components.js.map +1 -1
- package/dist/{detachedRunActivity-B85--SdS.js → detachedRunActivity-Cf-RPK9j.js} +41 -7
- package/dist/detachedRunActivity-Cf-RPK9j.js.map +1 -0
- package/dist/index.js +224 -222
- package/dist/services.js +1 -1
- package/dist/src/components/AiChat/ChatPane/AskUserDialog.d.ts +2 -2
- package/dist/src/components/AiChat/ChatPane/FriendlyPartDisplay.d.ts +2 -0
- package/dist/src/components/AiChat/ChatPane/friendlyToolConfig.d.ts +27 -1
- package/dist/src/components/AiChat/ChatPane/parts/askUserPartStrings.test.d.ts +1 -0
- package/dist/src/components/index.d.ts +2 -1
- package/dist/src/services/servers/AgentGatewayWSAsync.d.ts +14 -0
- package/dist/src/services/servers/gatewaySessionSwitch.test.d.ts +1 -0
- package/package.json +3 -3
- package/dist/detachedRunActivity-B85--SdS.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
|
-
import { A as s, a as n, b as r, c as o, d as i, C as c, e as l, f as A, E as p, g, F as S, h as C, G as d, I as h, i as u, j as E, L as T, M as R, k as I, R as P, l as
|
|
3
|
-
import { C as w, C as G, D as W, a as z, i as K, b as J, c as X, d as
|
|
2
|
+
import { A as s, a as n, b as r, c as o, d as i, C as c, e as l, f as A, E as p, g, F as S, h as C, G as d, I as h, i as u, j as E, L as T, M as R, k as I, R as P, l as L, S as D, m as v, n as m, o as _, p as x, q as y, T as f, r as F, s as M, t as B, u as O, v as U, w as k, x as H, y as V, z as N } from "./serializer-CdIQS0hy.js";
|
|
3
|
+
import { C as w, C as G, D as W, a as z, i as K, b as J, c as X, d as Y } from "./detachedRunModel-X59Pb5V-.js";
|
|
4
4
|
import { A as q, a as Z, M as Q, b as $ } from "./Memory-BUnmYGNv.js";
|
|
5
5
|
import { C as ae, P as te } from "./Prompt-DZb7OaPp.js";
|
|
6
|
-
import { A as ne, A as re, C as oe, D as ie, a as ce, E as le, H as Ae, I as pe, b as ge, L as Se, M as Ce, T as de, W as he, c as ue, d as Ee, r as Te, e as Re, s as Ie, t as Pe } from "./detachedRunActivity-
|
|
6
|
+
import { A as ne, A as re, C as oe, D as ie, a as ce, E as le, H as Ae, I as pe, b as ge, L as Se, M as Ce, T as de, W as he, c as ue, d as Ee, r as Te, e as Re, s as Ie, t as Pe } from "./detachedRunActivity-Cf-RPK9j.js";
|
|
7
7
|
import { A as De } from "./artifactHtmlHandler-CMQJf1cX.js";
|
|
8
8
|
import { H as me, d as _e, r as xe } from "./httpSessionService-B2wgAfly.js";
|
|
9
|
-
import { APPBAR_HEIGHT as fe, 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
|
|
17
|
-
import { A as
|
|
9
|
+
import { APPBAR_HEIGHT as fe, APPBAR_HEIGHT as Fe, ASK_USER_CANCELLED as Me, ActivityLine as Be, AgentActivity as Oe, AgentActivity as Ue, AgentRunLabel as ke, AgentTyping as He, AiChat as Ve, AiChatDrawer as Ne, AiChatFloating as be, AiChatFloating as we, AiChatPane as Ge, AiChatProvider as We, AiChatServiceContext as ze, AiChatPane as Ke, AppBar as Je, AppBar as Xe, AppRail as Ye, AppRail as je, AppShell as qe, AppShell as Ze, ArtifactRender as Qe, AskUserDialog as $e, AskUserSheet as ea, AttachmentPreviewModal as aa, BillingLimitBanner as ta, BoxedPart as sa, BrainIcon as na, CHAT_VERBOSITY_LEVELS as ra, ChartIcon as oa, ChatAgentHeader as ia, ChatBoxContext as ca, ChatIcon as la, ChatPane as Aa, ChatsHistory as pa, ChatsHistory as ga, CheckIcon as Sa, ChevronIcon as Ca, ChevronRightIcon as da, CloseIcon as ha, CodeIcon as ua, ComposerIcon as Ea, CurrentMessage as Ta, DEFAULT_ACTIVITY_RENDERER as Ra, DEFAULT_INTERACTION_ORIGIN_LABELS as Ia, DEFAULT_PART_RENDERERS as Pa, DashboardIcon as La, DataExplorerIcon as Da, DelayTextComponent as va, DetachedRunBox as ma, DetachedRunBox as _a, DetachedRunTaskBox as xa, DetachedRunTranscript as ya, EnvironmentProvider as fa, FAILED_FRIENDLY_LABEL as Fa, FileIcon as Ma, FunctionPart as Ba, GlobeIcon as Oa, HandoffDivider as Ua, HistoryIcon as ka, InertEnvironmentProvider as Ha, InteractionOriginBadge as Va, JsxErrorBoundary as Na, LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL as ba, LastPrompts as wa, LastPrompts as Ga, LinearBackgroundProgress as Wa, LinearProgressBarWithMarkers as za, ListCheckIcon as Ka, LiveJsxBlock as Ja, LiveTsxConfigProvider as Xa, LlmResponseRender as Ya, LoadingDots as ja, LockClosedIcon as qa, LockOpenIcon as Za, MOBILE_NAV_DEFAULT as Qa, MarkdownExtended as $a, MentionPickerPanel as et, MenuIcon as at, Message as tt, MessageScopeProvider as st, MobileDrawer as nt, MobileDrawer as rt, PanelIcon as ot, PaperclipIcon as it, PauseIcon as ct, PenIcon as lt, PersonaCard as At, PinIcon as pt, PlusIcon as gt, Prompt as St, PromptDateMarkers as Ct, PromptGhostHint as dt, Prompt as ht, RotateIcon as ut, RunProgressPanel as Et, RunProgressPanel as Tt, RunProgressStrip as Rt, RunProgressStrip as It, SearchIcon as Pt, SendIcon as Lt, SessionStateManagerService as Dt, SessionUsage as vt, SessionUsage as mt, SharedSessionTranscript as _t, SparkleIcon as xt, Sparkline as yt, StopIcon as ft, Stopwatch as Ft, SuspendedPart as Mt, TableIcon as Bt, TaskList as Ot, TaskList as Ut, TerminalIcon as kt, TextPart as Ht, ThoughtPart as Vt, ToolIcon as Nt, TrashIcon as bt, TriggerDropdown as wt, TurnAwareButton as Gt, UiToolDispatcher as Wt, UndoIcon as zt, UsersIcon as Kt, V2_CHART_PALETTE as Jt, WaitingPart as Xt, ZoomInIcon as Yt, ZoomOutIcon as jt, acceptsFile as qt, activitySteps as Zt, agentFromKey as Qt, bareToolName as $t, canStreamDetachedRun as es, classifyPart as as, configureFriendlyMapping as ts, configureToolOutcome as ss, createAiChatEngine as ns, createAiChatSessionStore as rs, createAiChatSessionStore as os, createChatBoxStore as is, createDetachedRunTranscriptEngine as cs, createSharedSessionTranscriptEngine as ls, createUiToolRegistry as As, detachedRunHeadline as ps, disposeSharedAiChatEngine as gs, engineKeyFor as Ss, extendDefaultScope as Cs, extendModuleRegistry as ds, formatFileSize as hs, getDefaultJsxScope as us, getFriendlyLabel as Es, getSharedAiChatEngine as Ts, handoffAt as Rs, itemsThatFit as Is, openDetachedRunTranscript as Ps, openSharedSessionTranscript as Ls, parseClientOutput as Ds, parseContentBlocks as vs, parseDetachedRunConclusion as ms, parseUiArgs as _s, previousAgentKey as xs, registerContentTools as ys, resolveChatAgent as fs, slotEnterSx as Fs, useAgentEngine as Ms, useAiChatServices as Bs, useAiChatSessionStore as Os, useChatBoxHeight as Us, useChatReadOnly as ks, useCoarsePointer as Hs, useDetachedRunLiveActivity as Vs, useDetachedRunResumeKey as Ns, useDetachedRunTranscript as bs, useEnvironment as ws, useEnvironmentOptional as Gs, useFirstDrawBudget as Ws, useLiveTsxMaxCharsForFull as zs, useMessageScope as Ks, useParkedAskUser as Js, useResponsiveLayout as Xs, useSharedSessionTranscript as Ys, useTurnOpen as js, useVisualViewport as qs, v2Card as Zs, v2Chip as Qs, v2IconBtn as $s, v2MonoMeta as en, v2SectionLabel as an, v2Theme as tn } from "./components.js";
|
|
10
|
+
import { s as nn, u as rn, a as on, b as cn, c as ln } from "./useContainerWidth-C7u70yDY.js";
|
|
11
|
+
import { A as pn, D as gn, g as Sn, b as Cn, c as dn, d as hn, e as un, f as En, i as Tn, r as Rn } from "./environmentUtils-VZNTCzEE.js";
|
|
12
|
+
import { ALLOWED_DOMAINS as Pn, ALLOWED_EMAILS as Ln, AUTH_CONFIG as Dn, GOOGLE_CLIENT_ID as vn, getAgentBaseUrl as mn, getArtifactsBaseUrl as _n, getDotNetBaseUrl as xn, getIconByName as yn, iconCategories as fn, materialIcons as Fn, searchIcons as Mn, setEbiContextData as Bn, setEbiContextSessionId as On } from "./utils.js";
|
|
13
|
+
import { P as kn, S as Hn, c as Vn, a as Nn, e as bn, b as wn, f as Gn, i as Wn, d as zn, p as Kn, s as Jn, h as Xn, j as Yn, t as jn, k as qn } from "./predictionRows-Damfwthh.js";
|
|
14
|
+
import { a as Qn, b as $n, c as er, d as ar, f as tr, p as sr } from "./promptTriggers-xwMJ5gRj.js";
|
|
15
|
+
import { u as rr } from "./useChatSessions-BVpCsm8u.js";
|
|
16
|
+
import { Score as ir } from "./interfaces.js";
|
|
17
|
+
import { A as lr, a as Ar, P as pr, R as gr, b as Sr, c as Cr, d as dr, V as hr, e as ur, f as Er, g as Tr, h as Rr, i as Ir, j as Pr, k as Lr, l as Dr, p as vr, m as mr, n as _r, s as xr, o as yr, u as fr, q as Fr } from "./PersonaAvatar-tKaWpDeQ.js";
|
|
18
18
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
lr as AGENT_ROLES,
|
|
20
|
+
Pn as ALLOWED_DOMAINS,
|
|
21
|
+
Ln as ALLOWED_EMAILS,
|
|
22
|
+
pn as ANALYTICS_AGENT_NAME,
|
|
23
23
|
fe as APPBAR_HEIGHT,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
Fe as APPBAR_V2_HEIGHT,
|
|
25
|
+
Me as ASK_USER_CANCELLED,
|
|
26
|
+
Dn as AUTH_CONFIG,
|
|
27
27
|
q as Account,
|
|
28
|
-
|
|
28
|
+
Be as ActivityLine,
|
|
29
29
|
Oe as AgentActivity,
|
|
30
30
|
Ue as AgentActivityV2,
|
|
31
31
|
s as AgentConfig,
|
|
@@ -46,8 +46,8 @@ export {
|
|
|
46
46
|
Ke as AiChatV2Pane,
|
|
47
47
|
Je as AppBar,
|
|
48
48
|
Xe as AppBarV2,
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
Ye as AppRail,
|
|
50
|
+
je as AppRailV2,
|
|
51
51
|
qe as AppShell,
|
|
52
52
|
Ze as AppShellV2,
|
|
53
53
|
De as ArtifactHtmlHandler,
|
|
@@ -57,7 +57,7 @@ export {
|
|
|
57
57
|
ea as AskUserSheet,
|
|
58
58
|
aa as AttachmentPreviewModal,
|
|
59
59
|
i as AuthorType,
|
|
60
|
-
|
|
60
|
+
Ar as AvatarStack,
|
|
61
61
|
ta as BillingLimitBanner,
|
|
62
62
|
sa as BoxedPart,
|
|
63
63
|
na as BrainIcon,
|
|
@@ -88,10 +88,10 @@ export {
|
|
|
88
88
|
Pa as DEFAULT_PART_RENDERERS,
|
|
89
89
|
W as DETACHED_RUN_SETTLED_STATUSES,
|
|
90
90
|
z as DETACHED_RUN_TERMINAL_STATUSES,
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
gn as DEV_SERVER_CONFIG,
|
|
92
|
+
La as DashboardIcon,
|
|
93
93
|
Da as DataExplorerIcon,
|
|
94
|
-
|
|
94
|
+
va as DelayTextComponent,
|
|
95
95
|
ma as DetachedRunBox,
|
|
96
96
|
_a as DetachedRunBoxV2,
|
|
97
97
|
ie as DetachedRunFramesHttpError,
|
|
@@ -102,91 +102,92 @@ export {
|
|
|
102
102
|
le as EventBusService,
|
|
103
103
|
p as EventType,
|
|
104
104
|
g as EventTypeDescriptions,
|
|
105
|
+
Fa as FAILED_FRIENDLY_LABEL,
|
|
105
106
|
Ma as FileIcon,
|
|
106
107
|
S as FunctionCallContent,
|
|
107
108
|
Ba as FunctionPart,
|
|
108
109
|
C as FunctionResultContent,
|
|
109
110
|
vn as GOOGLE_CLIENT_ID,
|
|
110
111
|
d as GetEventTypeFromDotNetName,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
Oa as GlobeIcon,
|
|
113
|
+
Ua as HandoffDivider,
|
|
114
|
+
ka as HistoryIcon,
|
|
114
115
|
Ae as HttpArtifactService,
|
|
115
116
|
me as HttpSessionService,
|
|
116
117
|
pe as IDLE_TIMEOUT,
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
Ha as InertEnvironmentProvider,
|
|
119
|
+
Va as InteractionOriginBadge,
|
|
119
120
|
h as InteractionOriginContent,
|
|
120
121
|
u as InteractionPartUtils,
|
|
121
122
|
ge as InteractionService,
|
|
122
123
|
E as InteractionStart,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
124
|
+
Na as JsxErrorBoundary,
|
|
125
|
+
ba as LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL,
|
|
126
|
+
wa as LastPrompts,
|
|
127
|
+
Ga as LastPromptsV2,
|
|
128
|
+
Wa as LinearBackgroundProgress,
|
|
129
|
+
za as LinearProgressBarWithMarkers,
|
|
130
|
+
Ka as ListCheckIcon,
|
|
131
|
+
Ja as LiveJsxBlock,
|
|
132
|
+
Xa as LiveTsxConfigProvider,
|
|
132
133
|
T as LlmEvent,
|
|
133
|
-
|
|
134
|
+
Ya as LlmResponseRender,
|
|
134
135
|
ja as LoadingDots,
|
|
135
136
|
Se as LocalStorageService,
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
qa as LockClosedIcon,
|
|
138
|
+
Za as LockOpenIcon,
|
|
138
139
|
Ce as MAX_CHAR_PER_TEXT_PART,
|
|
139
|
-
|
|
140
|
-
|
|
140
|
+
Qa as MOBILE_NAV_DEFAULT,
|
|
141
|
+
$a as MarkdownExtended,
|
|
141
142
|
Q as MemoryContextLabels,
|
|
142
143
|
$ as MemoryContexts,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
et as MentionPickerPanel,
|
|
145
|
+
at as MenuIcon,
|
|
146
|
+
tt as Message,
|
|
147
|
+
st as MessageScopeProvider,
|
|
148
|
+
nt as MobileDrawer,
|
|
149
|
+
rt as MobileDrawerV2,
|
|
149
150
|
R as ModelConfig,
|
|
150
151
|
I as ModelType,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
152
|
+
kn as PERSON_OR_PLACE_LEAD_ROWS,
|
|
153
|
+
ot as PanelIcon,
|
|
154
|
+
it as PaperclipIcon,
|
|
155
|
+
ct as PauseIcon,
|
|
156
|
+
lt as PenIcon,
|
|
157
|
+
pr as PersonaAvatar,
|
|
158
|
+
At as PersonaCard,
|
|
159
|
+
pt as PinIcon,
|
|
160
|
+
gt as PlusIcon,
|
|
161
|
+
St as Prompt,
|
|
162
|
+
Ct as PromptDateMarkers,
|
|
163
|
+
dt as PromptGhostHint,
|
|
163
164
|
te as PromptUtils,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
ht as PromptV2,
|
|
166
|
+
gr as ROLE_COLOR,
|
|
167
|
+
Sr as ROLE_DESC,
|
|
168
|
+
Cr as ROLE_LABEL,
|
|
169
|
+
dr as ROLE_OF,
|
|
169
170
|
P as ResponseType,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
171
|
+
ut as RotateIcon,
|
|
172
|
+
L as RunMode,
|
|
173
|
+
Et as RunProgressPanel,
|
|
174
|
+
Tt as RunProgressPanelV2,
|
|
175
|
+
Rt as RunProgressStrip,
|
|
176
|
+
It as RunProgressStripV2,
|
|
177
|
+
ir as Score,
|
|
178
|
+
Pt as SearchIcon,
|
|
179
|
+
Lt as SendIcon,
|
|
179
180
|
D as ServerEvent,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
181
|
+
Dt as SessionStateManagerService,
|
|
182
|
+
vt as SessionUsage,
|
|
183
|
+
mt as SessionUsagePanel,
|
|
184
|
+
_t as SharedSessionTranscript,
|
|
185
|
+
v as SkillLevel,
|
|
186
|
+
Hn as SortableTable,
|
|
187
|
+
xt as SparkleIcon,
|
|
188
|
+
yt as Sparkline,
|
|
189
|
+
ft as StopIcon,
|
|
190
|
+
Ft as Stopwatch,
|
|
190
191
|
m as StreamingFunctionCallUpdateContent,
|
|
191
192
|
_ as StreamingReasoningContent,
|
|
192
193
|
x as StreamingResponse,
|
|
@@ -194,162 +195,163 @@ export {
|
|
|
194
195
|
Mt as SuspendedPart,
|
|
195
196
|
de as TODO_LIST_UPDATED_EVENT,
|
|
196
197
|
Bt as TableIcon,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
Ot as TaskList,
|
|
199
|
+
Ut as TaskListV2,
|
|
200
|
+
kt as TerminalIcon,
|
|
200
201
|
f as TextContent,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
202
|
+
Ht as TextPart,
|
|
203
|
+
Vt as ThoughtPart,
|
|
204
|
+
Nt as ToolIcon,
|
|
205
|
+
bt as TrashIcon,
|
|
206
|
+
wt as TriggerDropdown,
|
|
207
|
+
Gt as TurnAwareButton,
|
|
208
|
+
Wt as UiToolDispatcher,
|
|
209
|
+
zt as UndoIcon,
|
|
210
|
+
Kt as UsersIcon,
|
|
211
|
+
Jt as V2_CHART_PALETTE,
|
|
212
|
+
hr as VOICE_RULES,
|
|
212
213
|
he as WARNING_THRESHOLD,
|
|
213
|
-
|
|
214
|
+
Xt as WaitingPart,
|
|
214
215
|
ue as WebSocketConnecionV2,
|
|
215
|
-
|
|
216
|
+
Yt as ZoomInIcon,
|
|
216
217
|
jt as ZoomOutIcon,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
218
|
+
qt as acceptsFile,
|
|
219
|
+
Qn as activatePlaceholder,
|
|
220
|
+
Zt as activitySteps,
|
|
221
|
+
$n as advanceToPlaceholder,
|
|
222
|
+
Qt as agentFromKey,
|
|
223
|
+
er as applyTriggerInsertion,
|
|
224
|
+
ur as article,
|
|
225
|
+
Er as articleFor,
|
|
226
|
+
Tr as autonomousAgent,
|
|
227
|
+
Rr as avatarAlt,
|
|
228
|
+
$t as bareToolName,
|
|
229
|
+
es as canStreamDetachedRun,
|
|
230
|
+
Vn as chipLocations,
|
|
231
|
+
Nn as chunkArray,
|
|
232
|
+
as as classifyPart,
|
|
233
|
+
ts as configureFriendlyMapping,
|
|
234
|
+
ss as configureToolOutcome,
|
|
235
|
+
ns as createAiChatEngine,
|
|
236
|
+
rs as createAiChatSessionStore,
|
|
237
|
+
os as createAiChatStore,
|
|
238
|
+
is as createChatBoxStore,
|
|
239
|
+
cs as createDetachedRunTranscriptEngine,
|
|
240
|
+
F as createEventSerializer,
|
|
241
|
+
ls as createSharedSessionTranscriptEngine,
|
|
240
242
|
Ee as createSseParser,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
+
M as createStreamingResponseSerializer,
|
|
244
|
+
As as createUiToolRegistry,
|
|
243
245
|
_e as decodeSessionEvents,
|
|
244
|
-
|
|
246
|
+
B as deserializeEvent,
|
|
245
247
|
O as deserializePayload,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
248
|
+
ps as detachedRunHeadline,
|
|
249
|
+
ar as detectTrigger,
|
|
250
|
+
gs as disposeSharedAiChatEngine,
|
|
251
|
+
Ss as engineKeyFor,
|
|
252
|
+
Cs as extendDefaultScope,
|
|
253
|
+
ds as extendModuleRegistry,
|
|
254
|
+
bn as extractInteractionId,
|
|
255
|
+
wn as extractLinkAction,
|
|
256
|
+
Gn as fetchAtMentions,
|
|
257
|
+
Ir as findPersona,
|
|
258
|
+
tr as findPlaceholder,
|
|
259
|
+
hs as formatFileSize,
|
|
260
|
+
mn as getAgentBaseUrl,
|
|
261
|
+
Sn as getAgentServerBaseUrl,
|
|
262
|
+
_n as getArtifactsBaseUrl,
|
|
261
263
|
U as getConnectionStateColor,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
264
|
+
us as getDefaultJsxScope,
|
|
265
|
+
xn as getDotNetBaseUrl,
|
|
266
|
+
Cn as getEnvVar,
|
|
267
|
+
dn as getEnvironmentInfo,
|
|
268
|
+
Es as getFriendlyLabel,
|
|
269
|
+
yn as getIconByName,
|
|
268
270
|
k as getModelVendor,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
271
|
+
Pr as getPersonaCatalog,
|
|
272
|
+
hn as getRandomUUID,
|
|
273
|
+
un as getServerBaseUrl,
|
|
274
|
+
En as getServerClientBaseUrl,
|
|
275
|
+
Ts as getSharedAiChatEngine,
|
|
276
|
+
Lr as greeting,
|
|
277
|
+
Rs as handoffAt,
|
|
278
|
+
fn as iconCategories,
|
|
279
|
+
Dr as isAgentRole,
|
|
278
280
|
K as isDetachedRunActiveStatus,
|
|
279
281
|
J as isDetachedRunSettledStatus,
|
|
280
282
|
X as isDetachedRunTerminalStatus,
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
283
|
+
Y as isDetachedRunWaitingForInput,
|
|
284
|
+
Wn as isSectionStart,
|
|
285
|
+
Tn as isServer,
|
|
286
|
+
zn as isValidInteractionId,
|
|
287
|
+
Is as itemsThatFit,
|
|
288
|
+
Fn as materialIcons,
|
|
289
|
+
Ps as openDetachedRunTranscript,
|
|
290
|
+
Ls as openSharedSessionTranscript,
|
|
291
|
+
Ds as parseClientOutput,
|
|
290
292
|
vs as parseContentBlocks,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
+
ms as parseDetachedRunConclusion,
|
|
294
|
+
_s as parseUiArgs,
|
|
293
295
|
vr as personaFromDto,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
296
|
+
mr as personaGreeting,
|
|
297
|
+
_r as personaTail,
|
|
298
|
+
Kn as placeCaret,
|
|
299
|
+
sr as placeholderAt,
|
|
300
|
+
xs as previousAgentKey,
|
|
299
301
|
Te as readDetachedRunActivity,
|
|
300
302
|
Re as reduceInteraction,
|
|
301
|
-
|
|
303
|
+
ys as registerContentTools,
|
|
302
304
|
xe as resolveAccessToken,
|
|
303
|
-
|
|
304
|
-
|
|
305
|
+
Rn as resolveApiUrl,
|
|
306
|
+
fs as resolveChatAgent,
|
|
305
307
|
H as sanitizeJsonString,
|
|
306
|
-
|
|
308
|
+
Mn as searchIcons,
|
|
307
309
|
V as serializeEvent,
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
310
|
+
Bn as setEbiContextData,
|
|
311
|
+
On as setEbiContextSessionId,
|
|
312
|
+
xr as setPersonaCatalog,
|
|
313
|
+
nn as slotDatesFor,
|
|
314
|
+
Fs as slotEnterSx,
|
|
315
|
+
Jn as splitBigLinesWithSpaces,
|
|
316
|
+
Xn as startsWithInteractionId,
|
|
315
317
|
Ie as streamDetachedRunFrames,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
+
yr as suggestionOrder,
|
|
319
|
+
Yn as swallowNextClick,
|
|
318
320
|
Pe as toDetachedRunFollowError,
|
|
319
321
|
N as toInteractionOrigin,
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
322
|
+
jn as toPredictionRows,
|
|
323
|
+
qn as tokenizeForHighlight,
|
|
324
|
+
Ms as useAgentEngine,
|
|
325
|
+
Bs as useAiChatServices,
|
|
326
|
+
Os as useAiChatSessionStore,
|
|
327
|
+
Us as useChatBoxHeight,
|
|
328
|
+
ks as useChatReadOnly,
|
|
329
|
+
rr as useChatSessions,
|
|
330
|
+
Hs as useCoarsePointer,
|
|
331
|
+
rn as useContainerRectangle,
|
|
332
|
+
Vs as useDetachedRunLiveActivity,
|
|
333
|
+
Ns as useDetachedRunResumeKey,
|
|
334
|
+
bs as useDetachedRunTranscript,
|
|
335
|
+
ws as useEnvironment,
|
|
336
|
+
Gs as useEnvironmentOptional,
|
|
337
|
+
Ws as useFirstDrawBudget,
|
|
338
|
+
on as useInterval,
|
|
339
|
+
zs as useLiveTsxMaxCharsForFull,
|
|
340
|
+
Ks as useMessageScope,
|
|
341
|
+
Js as useParkedAskUser,
|
|
342
|
+
fr as usePersona,
|
|
343
|
+
Fr as usePersonaCatalog,
|
|
344
|
+
cn as usePromptAssist,
|
|
345
|
+
Xs as useResponsiveLayout,
|
|
346
|
+
Ys as useSharedSessionTranscript,
|
|
347
|
+
ln as useStickyHighlight,
|
|
348
|
+
js as useTurnOpen,
|
|
349
|
+
qs as useVisualViewport,
|
|
350
|
+
Zs as v2Card,
|
|
351
|
+
Qs as v2Chip,
|
|
352
|
+
$s as v2IconBtn,
|
|
353
|
+
en as v2MonoMeta,
|
|
354
|
+
an as v2SectionLabel,
|
|
355
|
+
tn as v2Theme
|
|
354
356
|
};
|
|
355
357
|
//# sourceMappingURL=index.js.map
|
package/dist/services.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as r, A as s, D as t, a as c, E as o, H as n, b as i, L as A, M as S, T as d, c as v, d as E, r as T, e as D, s as m, t as H } from "./detachedRunActivity-
|
|
1
|
+
import { A as r, A as s, D as t, a as c, E as o, H as n, b as i, L as A, M as S, T as d, c as v, d as E, r as T, e as D, s as m, t as H } from "./detachedRunActivity-Cf-RPK9j.js";
|
|
2
2
|
import { A as p } from "./artifactHtmlHandler-CMQJf1cX.js";
|
|
3
3
|
import { H as _, d as l, r as f } from "./httpSessionService-B2wgAfly.js";
|
|
4
4
|
export {
|
|
@@ -20,7 +20,7 @@ import { DialogProps } from '@mui/material/Dialog';
|
|
|
20
20
|
* host-registered ask-user components (AskCreateAccount, add_passengers, …) work here unchanged.</p>
|
|
21
21
|
*/
|
|
22
22
|
export interface AskUserDialogProps {
|
|
23
|
-
/** Heading above the prompt. Defaults to a neutral
|
|
23
|
+
/** Heading above the prompt. Defaults to a neutral pt-BR label; a host can override it. */
|
|
24
24
|
title?: React.ReactNode;
|
|
25
25
|
/** Dialog width. Defaults to `'sm'`. */
|
|
26
26
|
maxWidth?: DialogProps['maxWidth'];
|
|
@@ -29,7 +29,7 @@ export interface AskUserDialogProps {
|
|
|
29
29
|
* anything behind the dialog and you want the question to stay in the way until it is dealt with.
|
|
30
30
|
*/
|
|
31
31
|
minimizable?: boolean;
|
|
32
|
-
/** Label of the restore chip while minimized. Defaults to
|
|
32
|
+
/** Label of the restore chip while minimized. Defaults to a pt-BR label; a host can override it. */
|
|
33
33
|
minimizedLabel?: string;
|
|
34
34
|
}
|
|
35
35
|
declare const AskUserDialog: React.FC<AskUserDialogProps>;
|
|
@@ -5,6 +5,8 @@ interface FriendlyPartDisplayProps {
|
|
|
5
5
|
state: FriendlyState;
|
|
6
6
|
args?: any;
|
|
7
7
|
isError?: boolean;
|
|
8
|
+
/** The call's result, once it returned — read by the host's outcome resolver (AIA Issue 2398). */
|
|
9
|
+
response?: unknown;
|
|
8
10
|
startTime?: Date;
|
|
9
11
|
endTime?: Date;
|
|
10
12
|
streamedBytes?: number;
|
|
@@ -6,6 +6,32 @@ export interface FriendlyToolEntry {
|
|
|
6
6
|
extractDetail?: (args: any) => string;
|
|
7
7
|
}
|
|
8
8
|
export declare const friendlyToolConfigRegistry: Record<string, FriendlyToolEntry>;
|
|
9
|
+
/** What an unregistered tool reads as — generic on purpose: the tool's name is never shown. */
|
|
10
|
+
export declare const FALLBACK_FRIENDLY_LABELS: Readonly<Record<FriendlyState, string>>;
|
|
11
|
+
/** A call the host's resolver read as failed, for a tool with no `responseError` of its own. */
|
|
12
|
+
export declare const FAILED_FRIENDLY_LABEL = "Esta etapa n\u00E3o foi conclu\u00EDda";
|
|
9
13
|
export declare function configureFriendlyMapping(toolName: string, mapping: FriendlyToolEntry): void;
|
|
10
14
|
export type FriendlyState = 'partial' | 'call' | 'response';
|
|
11
|
-
|
|
15
|
+
/**
|
|
16
|
+
* How a finished call ended, as the HOST reads its result (AIA Issue 2398):
|
|
17
|
+
* `done` — it did what its `response` label says; `failed` — it answered with
|
|
18
|
+
* errors (the `responseError` label); `waiting` — it returned WITHOUT acting,
|
|
19
|
+
* waiting on the person (a consent, a reason), so its label stays the `partial`
|
|
20
|
+
* one ("Preparando o cancelamento") instead of claiming the act ("Reserva
|
|
21
|
+
* cancelada") before it happened.
|
|
22
|
+
*/
|
|
23
|
+
export type ToolOutcome = 'done' | 'failed' | 'waiting';
|
|
24
|
+
/** Reads a call's result into a {@link ToolOutcome}. The result shapes are the host's, so the host supplies it. */
|
|
25
|
+
export type ToolOutcomeResolver = (response: unknown, toolName: string) => ToolOutcome;
|
|
26
|
+
/**
|
|
27
|
+
* Registers how a finished call's result is read (see {@link ToolOutcome}). Without
|
|
28
|
+
* one every returned call reads as done — the behaviour up to v0.14.4. Pass
|
|
29
|
+
* `undefined` to remove it.
|
|
30
|
+
*/
|
|
31
|
+
export declare function configureToolOutcome(resolver: ToolOutcomeResolver | undefined): void;
|
|
32
|
+
/**
|
|
33
|
+
* The label for a call in `state`. Pass the call's `response` once it returned:
|
|
34
|
+
* with a resolver registered ({@link configureToolOutcome}), a call that did not
|
|
35
|
+
* act keeps its `partial` label and one that failed reads its `responseError`.
|
|
36
|
+
*/
|
|
37
|
+
export declare function getFriendlyLabel(toolName: string, state: FriendlyState, args?: any, isError?: boolean, response?: unknown): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -26,7 +26,8 @@ export { default as AskUserDialog } from './AiChat/ChatPane/AskUserDialog';
|
|
|
26
26
|
export type { AskUserDialogProps } from './AiChat/ChatPane/AskUserDialog';
|
|
27
27
|
export { useParkedAskUser, ASK_USER_CANCELLED } from './AiChat/ChatPane/useParkedAskUser';
|
|
28
28
|
export type { ParkedAskUser } from './AiChat/ChatPane/useParkedAskUser';
|
|
29
|
-
export { configureFriendlyMapping, getFriendlyLabel } from './AiChat/ChatPane/friendlyToolConfig';
|
|
29
|
+
export { configureFriendlyMapping, getFriendlyLabel, configureToolOutcome, FAILED_FRIENDLY_LABEL } from './AiChat/ChatPane/friendlyToolConfig';
|
|
30
|
+
export type { ToolOutcome, ToolOutcomeResolver } from './AiChat/ChatPane/friendlyToolConfig';
|
|
30
31
|
export type { FriendlyState, FriendlyToolEntry } from './AiChat/ChatPane/friendlyToolConfig';
|
|
31
32
|
export { CHAT_VERBOSITY_LEVELS, activitySteps, registerContentTools, bareToolName } from './AiChat/ChatPane/verbosity';
|
|
32
33
|
export type { ChatVerbosity, VerbosityActivity, ActivityStep, ActivityStepPhase } from './AiChat/ChatPane/verbosity';
|