@aintela/chat 0.5.1 → 0.5.3
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 +4338 -4279
- package/dist/components.js.map +1 -1
- package/dist/index.js +111 -108
- package/dist/src/components/AiChat/ChatPane/parts/types.d.ts +12 -4
- package/dist/src/components/AiChat/ChatPane/verbosity.d.ts +36 -1
- package/dist/src/components/AiChat/ChatPane/verbosityContentTools.test.d.ts +1 -0
- package/dist/src/components/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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 E, L as h, M as P, 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 T, R as d, 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 b } 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
5
|
import { C as Y, P as j } from "./Prompt-DZb7OaPp.js";
|
|
6
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 Ee, APPBAR_HEIGHT as he, ASK_USER_CANCELLED as Pe, ActivityLine 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 Te, AgentActivity as de, 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 be, AskUserDialog as He, 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 Ta, LiveTsxConfigProvider as da, 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 ba, PinIcon as Ha, 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 Tt, WaitingPart as dt, ZoomInIcon as ut, ZoomOutIcon as vt, activitySteps as mt, bareToolName as Lt, classifyPart as Rt, configureFriendlyMapping as _t, createAiChatEngine as xt, createAiChatSessionStore as Mt, createAiChatSessionStore as yt, createUiToolRegistry as Dt, disposeSharedAiChatEngine as ft, engineKeyFor as Ut, extendDefaultScope as kt, extendModuleRegistry as Bt, getDefaultJsxScope as Vt, getFriendlyLabel as bt, getSharedAiChatEngine as Ht, parseClientOutput as Ft, parseContentBlocks as Nt, parseUiArgs as Ot, registerContentTools as wt, slotEnterSx as Gt, useAgentEngine as Wt, useAiChatServices as zt, useAiChatSessionStore as Jt, useCoarsePointer as Xt, useEnvironment as Kt, useEnvironmentOptional as Yt, useLiveTsxMaxCharsForFull as jt, useMessageScope as Zt, useParkedAskUser as qt, useResponsiveLayout as Qt, useTurnOpen as $t, useVisualViewport as es, v2Card as as, v2Chip as ts, v2IconBtn as ss, v2MonoMeta as os, v2SectionLabel as ns, v2Theme as rs } from "./components.js";
|
|
10
|
+
import { s as cs, u as ls, a as As, b as ps, c as Ss } from "./useContainerWidth-C7u70yDY.js";
|
|
11
|
+
import { A as Cs, D as Is, g as Es, b as hs, c as Ps, d as Ts, e as ds, f as us, i as vs, r as ms } from "./environmentUtils-VZNTCzEE.js";
|
|
12
|
+
import { ALLOWED_DOMAINS as Rs, ALLOWED_EMAILS as _s, AUTH_CONFIG as xs, GOOGLE_CLIENT_ID as Ms, getAgentBaseUrl as ys, getArtifactsBaseUrl as Ds, getDotNetBaseUrl as fs, getIconByName as Us, iconCategories as ks, materialIcons as Bs, searchIcons as Vs, setEbiContextData as bs, setEbiContextSessionId as Hs } from "./utils.js";
|
|
13
|
+
import { P as Ns, S as Os, c as ws, a as Gs, e as Ws, b as zs, f as Js, i as Xs, d as Ks, p as Ys, s as js, h as Zs, j as qs, t as Qs, k as $s } from "./predictionRows-Damfwthh.js";
|
|
14
|
+
import { a as ao, b as to, c as so, d as oo, f as no, p as ro } from "./promptTriggers-xwMJ5gRj.js";
|
|
15
|
+
import { u as co } from "./useChatSessions-C6sYF4U6.js";
|
|
16
|
+
import { Score as Ao } from "./interfaces.js";
|
|
17
17
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
Rs as ALLOWED_DOMAINS,
|
|
19
|
+
_s as ALLOWED_EMAILS,
|
|
20
|
+
Cs as ANALYTICS_AGENT_NAME,
|
|
21
21
|
Ee as APPBAR_HEIGHT,
|
|
22
22
|
he as APPBAR_V2_HEIGHT,
|
|
23
23
|
Pe as ASK_USER_CANCELLED,
|
|
24
|
-
|
|
24
|
+
xs as AUTH_CONFIG,
|
|
25
25
|
w as Account,
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
Te as ActivityLine,
|
|
27
|
+
de as AgentActivity,
|
|
28
28
|
ue as AgentActivityV2,
|
|
29
29
|
s as AgentConfig,
|
|
30
30
|
q as AgentGatewayService,
|
|
@@ -47,9 +47,9 @@ export {
|
|
|
47
47
|
Be as AppShell,
|
|
48
48
|
Ve as AppShellV2,
|
|
49
49
|
Ae as ArtifactHtmlHandler,
|
|
50
|
-
|
|
50
|
+
be as ArtifactRender,
|
|
51
51
|
r as ArtifactType,
|
|
52
|
-
|
|
52
|
+
He as AskUserDialog,
|
|
53
53
|
Fe as AskUserSheet,
|
|
54
54
|
Ne as AttachmentPreviewModal,
|
|
55
55
|
i as AuthorType,
|
|
@@ -77,7 +77,7 @@ export {
|
|
|
77
77
|
ea as CurrentMessage,
|
|
78
78
|
aa as DEFAULT_ACTIVITY_RENDERER,
|
|
79
79
|
ta as DEFAULT_PART_RENDERERS,
|
|
80
|
-
|
|
80
|
+
Is as DEV_SERVER_CONFIG,
|
|
81
81
|
sa as DashboardIcon,
|
|
82
82
|
oa as DataExplorerIcon,
|
|
83
83
|
na as DelayTextComponent,
|
|
@@ -89,7 +89,7 @@ export {
|
|
|
89
89
|
g as FunctionCallContent,
|
|
90
90
|
ca as FunctionPart,
|
|
91
91
|
C as FunctionResultContent,
|
|
92
|
-
|
|
92
|
+
Ms as GOOGLE_CLIENT_ID,
|
|
93
93
|
I as GetEventTypeFromDotNetName,
|
|
94
94
|
la as GlobeIcon,
|
|
95
95
|
Aa as HistoryIcon,
|
|
@@ -106,8 +106,8 @@ export {
|
|
|
106
106
|
Ea as LinearBackgroundProgress,
|
|
107
107
|
ha as LinearProgressBarWithMarkers,
|
|
108
108
|
Pa as ListCheckIcon,
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
Ta as LiveJsxBlock,
|
|
110
|
+
da as LiveTsxConfigProvider,
|
|
111
111
|
h as LlmEvent,
|
|
112
112
|
ua as LlmResponseRender,
|
|
113
113
|
va as LoadingDots,
|
|
@@ -126,20 +126,20 @@ export {
|
|
|
126
126
|
fa as MobileDrawer,
|
|
127
127
|
Ua as MobileDrawerV2,
|
|
128
128
|
P as ModelConfig,
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
T as ModelType,
|
|
130
|
+
Ns as PERSON_OR_PLACE_LEAD_ROWS,
|
|
131
131
|
ka as PanelIcon,
|
|
132
132
|
Ba as PaperclipIcon,
|
|
133
133
|
Va as PauseIcon,
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
ba as PenIcon,
|
|
135
|
+
Ha as PinIcon,
|
|
136
136
|
Fa as PlusIcon,
|
|
137
137
|
Na as Prompt,
|
|
138
138
|
Oa as PromptDateMarkers,
|
|
139
139
|
wa as PromptGhostHint,
|
|
140
140
|
j as PromptUtils,
|
|
141
141
|
Ga as PromptV2,
|
|
142
|
-
|
|
142
|
+
d as ResponseType,
|
|
143
143
|
Wa as RotateIcon,
|
|
144
144
|
u as RunMode,
|
|
145
145
|
za as RunProgressPanel,
|
|
@@ -147,7 +147,7 @@ export {
|
|
|
147
147
|
Xa as RunProgressStrip,
|
|
148
148
|
Ka as RunProgressStripV2,
|
|
149
149
|
J as SUB_AGENT_TERMINAL_STATUSES,
|
|
150
|
-
|
|
150
|
+
Ao as Score,
|
|
151
151
|
Ya as SearchIcon,
|
|
152
152
|
ja as SendIcon,
|
|
153
153
|
v as ServerEvent,
|
|
@@ -155,7 +155,7 @@ export {
|
|
|
155
155
|
qa as SessionUsage,
|
|
156
156
|
Qa as SessionUsagePanel,
|
|
157
157
|
m as SkillLevel,
|
|
158
|
-
|
|
158
|
+
Os as SortableTable,
|
|
159
159
|
$a as SparkleIcon,
|
|
160
160
|
et as Sparkline,
|
|
161
161
|
at as StopIcon,
|
|
@@ -181,100 +181,103 @@ export {
|
|
|
181
181
|
Et as UiToolDispatcher,
|
|
182
182
|
ht as UndoIcon,
|
|
183
183
|
Pt as UsersIcon,
|
|
184
|
-
|
|
184
|
+
Tt as V2_CHART_PALETTE,
|
|
185
185
|
re as WARNING_THRESHOLD,
|
|
186
|
-
|
|
186
|
+
dt as WaitingPart,
|
|
187
187
|
ie as WebSocketConnecionV2,
|
|
188
188
|
ut as ZoomInIcon,
|
|
189
189
|
vt as ZoomOutIcon,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
Rt as
|
|
198
|
-
_t as
|
|
199
|
-
xt as
|
|
190
|
+
ao as activatePlaceholder,
|
|
191
|
+
mt as activitySteps,
|
|
192
|
+
to as advanceToPlaceholder,
|
|
193
|
+
so as applyTriggerInsertion,
|
|
194
|
+
Lt as bareToolName,
|
|
195
|
+
ws as chipLocations,
|
|
196
|
+
Gs as chunkArray,
|
|
197
|
+
Rt as classifyPart,
|
|
198
|
+
_t as configureFriendlyMapping,
|
|
199
|
+
xt as createAiChatEngine,
|
|
200
|
+
Mt as createAiChatSessionStore,
|
|
201
|
+
yt as createAiChatStore,
|
|
200
202
|
y as createEventSerializer,
|
|
201
203
|
D as createStreamingResponseSerializer,
|
|
202
|
-
|
|
204
|
+
Dt as createUiToolRegistry,
|
|
203
205
|
ge as decodeSessionEvents,
|
|
204
206
|
f as deserializeEvent,
|
|
205
207
|
U as deserializePayload,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
208
|
+
oo as detectTrigger,
|
|
209
|
+
ft as disposeSharedAiChatEngine,
|
|
210
|
+
Ut as engineKeyFor,
|
|
211
|
+
kt as extendDefaultScope,
|
|
212
|
+
Bt as extendModuleRegistry,
|
|
213
|
+
Ws as extractInteractionId,
|
|
214
|
+
zs as extractLinkAction,
|
|
215
|
+
Js as fetchAtMentions,
|
|
216
|
+
no as findPlaceholder,
|
|
217
|
+
ys as getAgentBaseUrl,
|
|
218
|
+
Es as getAgentServerBaseUrl,
|
|
219
|
+
Ds as getArtifactsBaseUrl,
|
|
218
220
|
k as getConnectionStateColor,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
221
|
+
Vt as getDefaultJsxScope,
|
|
222
|
+
fs as getDotNetBaseUrl,
|
|
223
|
+
hs as getEnvVar,
|
|
224
|
+
Ps as getEnvironmentInfo,
|
|
225
|
+
bt as getFriendlyLabel,
|
|
226
|
+
Us as getIconByName,
|
|
225
227
|
B as getModelVendor,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
228
|
+
Ts as getRandomUUID,
|
|
229
|
+
ds as getServerBaseUrl,
|
|
230
|
+
us as getServerClientBaseUrl,
|
|
231
|
+
Ht as getSharedAiChatEngine,
|
|
232
|
+
ks as iconCategories,
|
|
233
|
+
Xs as isSectionStart,
|
|
234
|
+
vs as isServer,
|
|
233
235
|
X as isSubAgentTerminalStatus,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
236
|
+
Ks as isValidInteractionId,
|
|
237
|
+
Bs as materialIcons,
|
|
238
|
+
Ft as parseClientOutput,
|
|
239
|
+
Nt as parseContentBlocks,
|
|
240
|
+
Ot as parseUiArgs,
|
|
241
|
+
Ys as placeCaret,
|
|
242
|
+
ro as placeholderAt,
|
|
241
243
|
ce as reduceInteraction,
|
|
244
|
+
wt as registerContentTools,
|
|
242
245
|
Ce as resolveAccessToken,
|
|
243
|
-
|
|
246
|
+
ms as resolveApiUrl,
|
|
244
247
|
V as sanitizeJsonString,
|
|
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
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
248
|
+
Vs as searchIcons,
|
|
249
|
+
b as serializeEvent,
|
|
250
|
+
bs as setEbiContextData,
|
|
251
|
+
Hs as setEbiContextSessionId,
|
|
252
|
+
cs as slotDatesFor,
|
|
253
|
+
Gt as slotEnterSx,
|
|
254
|
+
js as splitBigLinesWithSpaces,
|
|
255
|
+
Zs as startsWithInteractionId,
|
|
256
|
+
qs as swallowNextClick,
|
|
257
|
+
Qs as toPredictionRows,
|
|
258
|
+
$s as tokenizeForHighlight,
|
|
259
|
+
Wt as useAgentEngine,
|
|
260
|
+
zt as useAiChatServices,
|
|
261
|
+
Jt as useAiChatSessionStore,
|
|
262
|
+
co as useChatSessions,
|
|
263
|
+
Xt as useCoarsePointer,
|
|
264
|
+
ls as useContainerRectangle,
|
|
265
|
+
Kt as useEnvironment,
|
|
266
|
+
Yt as useEnvironmentOptional,
|
|
267
|
+
As as useInterval,
|
|
268
|
+
jt as useLiveTsxMaxCharsForFull,
|
|
269
|
+
Zt as useMessageScope,
|
|
270
|
+
qt as useParkedAskUser,
|
|
271
|
+
ps as usePromptAssist,
|
|
272
|
+
Qt as useResponsiveLayout,
|
|
273
|
+
Ss as useStickyHighlight,
|
|
274
|
+
$t as useTurnOpen,
|
|
275
|
+
es as useVisualViewport,
|
|
276
|
+
as as v2Card,
|
|
277
|
+
ts as v2Chip,
|
|
278
|
+
ss as v2IconBtn,
|
|
279
|
+
os as v2MonoMeta,
|
|
280
|
+
ns as v2SectionLabel,
|
|
281
|
+
rs as v2Theme
|
|
279
282
|
};
|
|
280
283
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,7 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { InteractionPart } from '../../../../models/InteractionPart';
|
|
3
3
|
import { Interaction } from '../../../../models/Interaction';
|
|
4
4
|
import { FunctionDetails } from '../../../../models/ServerEvent';
|
|
5
|
-
import { VerbosityActivity } from '../verbosity';
|
|
5
|
+
import { ActivityStep, VerbosityActivity } from '../verbosity';
|
|
6
6
|
export type PartKind = 'text' | 'thought' | 'function' | 'waiting' | 'suspended' | 'boxed' | 'serverError' | 'uiTool' | 'askUser' | 'askAuth';
|
|
7
7
|
/**
|
|
8
8
|
* What a part renderer is handed: the part, the message it belongs to, and its
|
|
@@ -17,12 +17,20 @@ export interface PartRendererProps {
|
|
|
17
17
|
}
|
|
18
18
|
export type PartRenderer = React.ComponentType<PartRendererProps>;
|
|
19
19
|
/**
|
|
20
|
-
* What the `activity` renderer is handed
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* What the `activity` renderer is handed under the `minimum` verbosity, while the live turn has something in
|
|
21
|
+
* progress — it is drawn at the end of the message, and not at all once nothing is (the answer streams, the turn
|
|
22
|
+
* closes):
|
|
23
|
+
* - `activity`: what the agent is doing NOW — the running calls, or the thought it is in.
|
|
24
|
+
* - `steps`: the turn's internals so far, in order ({@link ActivityStep}), each call with its phase
|
|
25
|
+
* (writing / calling / complete).
|
|
26
|
+
*
|
|
27
|
+
* While the line is up the renderer stays mounted (state such as a pacing queue survives), and the library does
|
|
28
|
+
* not animate a custom one — it owns its transitions. Friendly mode comes from {@link MessageScope}, as for the
|
|
29
|
+
* part renderers.
|
|
23
30
|
*/
|
|
24
31
|
export interface ActivityRendererProps {
|
|
25
32
|
activity: VerbosityActivity;
|
|
33
|
+
steps: ActivityStep[];
|
|
26
34
|
message: Interaction;
|
|
27
35
|
}
|
|
28
36
|
export type ActivityRenderer = React.ComponentType<ActivityRendererProps>;
|
|
@@ -18,7 +18,14 @@ export declare const CHAT_VERBOSITY_LEVELS: readonly {
|
|
|
18
18
|
label: string;
|
|
19
19
|
description: string;
|
|
20
20
|
}[];
|
|
21
|
-
/**
|
|
21
|
+
/** Declare tools whose parts are content, not internals (see {@link isToolTracePart}). */
|
|
22
|
+
export declare function registerContentTools(names: readonly string[]): void;
|
|
23
|
+
/** A tool name without the server's plugin prefix: `Plugin-tool` → `tool`. */
|
|
24
|
+
export declare function bareToolName(name: string): string;
|
|
25
|
+
/** True for a part of a host-declared content tool ({@link registerContentTools}). */
|
|
26
|
+
export declare function isContentToolPart(p: InteractionPart): boolean;
|
|
27
|
+
/** A tool call that is run internals — a function part that is NOT a UI tool (a cancelled UI render counts as one)
|
|
28
|
+
* and not a host-declared content tool ({@link registerContentTools}). */
|
|
22
29
|
export declare function isToolTracePart(p: InteractionPart): boolean;
|
|
23
30
|
/** The call has not returned yet. The runtime turns a finished call's part into a FunctionResponse marked Done. */
|
|
24
31
|
export declare function isRunningCall(p: InteractionPart): boolean;
|
|
@@ -55,3 +62,31 @@ export type VerbosityActivity = {
|
|
|
55
62
|
export declare function currentActivity(parts: InteractionPart[]): VerbosityActivity | null;
|
|
56
63
|
/** The slot key of an activity: a new key is a new item, crossfaded; the same key re-renders in place. */
|
|
57
64
|
export declare function activityKey(activity: VerbosityActivity): string;
|
|
65
|
+
/** Where a tool call is: arguments streaming in, running, or returned. */
|
|
66
|
+
export type ActivityStepPhase = 'writing' | 'calling' | 'complete';
|
|
67
|
+
/**
|
|
68
|
+
* One step of a turn's run internals, in arrival order, as a host's `activity` renderer gets them. A tool call is
|
|
69
|
+
* ONE step whose `phase` moves on (writing → calling → complete); a thought is one step per run of reasoning,
|
|
70
|
+
* carrying that run's highlights. Labels are the host's: the step keeps the raw facts.
|
|
71
|
+
*/
|
|
72
|
+
export type ActivityStep = {
|
|
73
|
+
id: string;
|
|
74
|
+
kind: 'thought';
|
|
75
|
+
headlines: string[];
|
|
76
|
+
startedAt: number;
|
|
77
|
+
endedAt?: number;
|
|
78
|
+
} | {
|
|
79
|
+
id: string;
|
|
80
|
+
kind: 'tool';
|
|
81
|
+
name: string;
|
|
82
|
+
phase: ActivityStepPhase;
|
|
83
|
+
startedAt: number;
|
|
84
|
+
endedAt?: number;
|
|
85
|
+
part: InteractionPart;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* The turn's run internals as {@link ActivityStep}s, from the message's parts. Reasoning between two other parts is
|
|
89
|
+
* one thought step (the chunker's cuts do not count); a tool trace call is one tool step. UI tools are content and
|
|
90
|
+
* never steps. Pure.
|
|
91
|
+
*/
|
|
92
|
+
export declare function activitySteps(parts: InteractionPart[]): ActivityStep[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -26,8 +26,8 @@ export { useParkedAskUser, ASK_USER_CANCELLED } from './AiChat/ChatPane/useParke
|
|
|
26
26
|
export type { ParkedAskUser } from './AiChat/ChatPane/useParkedAskUser';
|
|
27
27
|
export { configureFriendlyMapping, getFriendlyLabel } from './AiChat/ChatPane/friendlyToolConfig';
|
|
28
28
|
export type { FriendlyState, FriendlyToolEntry } from './AiChat/ChatPane/friendlyToolConfig';
|
|
29
|
-
export { CHAT_VERBOSITY_LEVELS } from './AiChat/ChatPane/verbosity';
|
|
30
|
-
export type { ChatVerbosity, VerbosityActivity } from './AiChat/ChatPane/verbosity';
|
|
29
|
+
export { CHAT_VERBOSITY_LEVELS, activitySteps, registerContentTools, bareToolName } from './AiChat/ChatPane/verbosity';
|
|
30
|
+
export type { ChatVerbosity, VerbosityActivity, ActivityStep, ActivityStepPhase } from './AiChat/ChatPane/verbosity';
|
|
31
31
|
export { classifyPart, DEFAULT_PART_RENDERERS, TextPart, ThoughtPart, FunctionPart, WaitingPart, SuspendedPart, BoxedPart, UiToolDispatcher, ActivityLine, DEFAULT_ACTIVITY_RENDERER, } from './AiChat/ChatPane/parts';
|
|
32
32
|
export type { PartKind, PartRendererProps, PartRenderer, PartRendererMap, ActivityRendererProps, ActivityRenderer, } from './AiChat/ChatPane/parts';
|
|
33
33
|
export { createUiToolRegistry, parseUiArgs, parseClientOutput } from './AiChat/ChatPane/parts';
|