@aintela/chat 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6,22 +6,22 @@ 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 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";
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
- vs as ALLOWED_DOMAINS,
19
- ms as ALLOWED_EMAILS,
20
- ps as ANALYTICS_AGENT_NAME,
18
+ ms as ALLOWED_DOMAINS,
19
+ Ls as ALLOWED_EMAILS,
20
+ Ss 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
- Ls as AUTH_CONFIG,
24
+ Rs as AUTH_CONFIG,
25
25
  w as Account,
26
26
  de as ActivityLine,
27
27
  Te as AgentActivity,
@@ -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
- Ss as DEV_SERVER_CONFIG,
80
+ gs 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
- Rs as GOOGLE_CLIENT_ID,
92
+ _s as GOOGLE_CLIENT_ID,
93
93
  I as GetEventTypeFromDotNetName,
94
94
  la as GlobeIcon,
95
95
  Aa as HistoryIcon,
@@ -127,7 +127,7 @@ export {
127
127
  Ua as MobileDrawerV2,
128
128
  P as ModelConfig,
129
129
  d as ModelType,
130
- Hs as PERSON_OR_PLACE_LEAD_ROWS,
130
+ bs as PERSON_OR_PLACE_LEAD_ROWS,
131
131
  ka as PanelIcon,
132
132
  Ba as PaperclipIcon,
133
133
  Va as PauseIcon,
@@ -147,7 +147,7 @@ export {
147
147
  Xa as RunProgressStrip,
148
148
  Ka as RunProgressStripV2,
149
149
  J as SUB_AGENT_TERMINAL_STATUSES,
150
- io as Score,
150
+ co 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
- bs as SortableTable,
158
+ Fs as SortableTable,
159
159
  $a as SparkleIcon,
160
160
  et as Sparkline,
161
161
  at as StopIcon,
@@ -187,94 +187,95 @@ export {
187
187
  ie as WebSocketConnecionV2,
188
188
  ut as ZoomInIcon,
189
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,
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,
200
201
  y as createEventSerializer,
201
202
  D as createStreamingResponseSerializer,
202
- Mt as createUiToolRegistry,
203
+ yt as createUiToolRegistry,
203
204
  ge as decodeSessionEvents,
204
205
  f as deserializeEvent,
205
206
  U as deserializePayload,
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,
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,
218
219
  k as getConnectionStateColor,
219
- kt as getDefaultJsxScope,
220
- Ms as getDotNetBaseUrl,
221
- Cs as getEnvVar,
222
- Is as getEnvironmentInfo,
223
- Bt as getFriendlyLabel,
224
- ys as getIconByName,
220
+ Bt as getDefaultJsxScope,
221
+ ys as getDotNetBaseUrl,
222
+ Is as getEnvVar,
223
+ Es as getEnvironmentInfo,
224
+ Vt as getFriendlyLabel,
225
+ Ds as getIconByName,
225
226
  B as getModelVendor,
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,
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,
233
234
  X as isSubAgentTerminalStatus,
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,
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,
241
242
  ce as reduceInteraction,
242
243
  Ce as resolveAccessToken,
243
- Ts as resolveApiUrl,
244
+ us as resolveApiUrl,
244
245
  V as sanitizeJsonString,
245
- Us as searchIcons,
246
+ ks as searchIcons,
246
247
  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
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
279
280
  };
280
281
  //# 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: the `minimum` verbosity's one-line view of a live turn — the running
21
- * tool calls, or the thought the agent is in with its latest highlight — and the message it belongs to. Friendly
22
- * mode comes from {@link MessageScope}, as for the part renderers.
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>;
@@ -55,3 +55,31 @@ export type VerbosityActivity = {
55
55
  export declare function currentActivity(parts: InteractionPart[]): VerbosityActivity | null;
56
56
  /** The slot key of an activity: a new key is a new item, crossfaded; the same key re-renders in place. */
57
57
  export declare function activityKey(activity: VerbosityActivity): string;
58
+ /** Where a tool call is: arguments streaming in, running, or returned. */
59
+ export type ActivityStepPhase = 'writing' | 'calling' | 'complete';
60
+ /**
61
+ * One step of a turn's run internals, in arrival order, as a host's `activity` renderer gets them. A tool call is
62
+ * ONE step whose `phase` moves on (writing → calling → complete); a thought is one step per run of reasoning,
63
+ * carrying that run's highlights. Labels are the host's: the step keeps the raw facts.
64
+ */
65
+ export type ActivityStep = {
66
+ id: string;
67
+ kind: 'thought';
68
+ headlines: string[];
69
+ startedAt: number;
70
+ endedAt?: number;
71
+ } | {
72
+ id: string;
73
+ kind: 'tool';
74
+ name: string;
75
+ phase: ActivityStepPhase;
76
+ startedAt: number;
77
+ endedAt?: number;
78
+ part: InteractionPart;
79
+ };
80
+ /**
81
+ * The turn's run internals as {@link ActivityStep}s, from the message's parts. Reasoning between two other parts is
82
+ * one thought step (the chunker's cuts do not count); a tool trace call is one tool step. UI tools are content and
83
+ * never steps. Pure.
84
+ */
85
+ export declare function activitySteps(parts: InteractionPart[]): ActivityStep[];
@@ -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 } 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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aintela/chat",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"