@aintela/chat 0.2.15 → 0.2.16

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
@@ -1,27 +1,27 @@
1
1
  import "reflect-metadata";
2
- import { C as s, F as o, a as n, I as r, L as i, S as c, b as l, c as S, d as C, e as A, T as p, f as d, g as I, h as g, i as v, s as E, j as m } from "./serializer-DyHZxlAG.js";
3
- import { A as T, a as u, C as L, M as x, b as P, S as R, i as U } from "./Memory-DjLZqgbF.js";
2
+ import { C as s, F as n, a as o, I as r, L as i, S as c, b as l, c as S, d as C, e as p, T as A, f as d, g, h as I, i as v, s as E, j as m } from "./serializer-DyHZxlAG.js";
3
+ import { A as T, a as u, C as L, M as x, b as P, S as R, i as f } from "./Memory-DjLZqgbF.js";
4
4
  import { C as y, C as M } from "./ClientMessage-EKgfuTp8.js";
5
5
  import { C as B, P as D } from "./Prompt-DZb7OaPp.js";
6
- import { A as b, a as F, b as N, c as k, d as G, e as H, C as O, f as W, D as w, E as z, g as J, G as j, h as q, M as K, i as X, R as Y, j as Q, S as Z, l as $, m as ee, n as ae, o as te, p as se, q as oe, r as ne, s as re, t as ie, u as ce } from "./environmentUtils-BaKw5_VD.js";
7
- import { A as Se, a as Ce, E as Ae, H as pe, I as de, L as Ie, W as ge } from "./httpArtifactService-BAR60Gu1.js";
6
+ import { A as F, a as b, b as N, c as k, d as G, e as H, C as O, f as W, D as w, E as z, g as J, G as j, h as q, M as K, i as X, R as Y, j as Q, S as Z, l as $, m as ee, n as ae, o as te, p as se, q as ne, r as oe, s as re, t as ie, u as ce } from "./environmentUtils-BaKw5_VD.js";
7
+ import { A as Se, a as Ce, E as pe, H as Ae, I as de, L as ge, W as Ie } from "./httpArtifactService-BAR60Gu1.js";
8
8
  import { A as Ee } from "./artifactHtmlHandler-CMQJf1cX.js";
9
9
  import { H as he, d as Te } from "./httpSessionService-5Kr__oQL.js";
10
- import { APPBAR_V2_HEIGHT as Le, AgentActivityV2 as xe, AiChat as Pe, AiChatDrawer as Re, AiChatFloating as Ue, AiChatFloatingV2 as fe, AiChatProvider as ye, AiChatServiceContext as Me, AiChatV2Pane as _e, AppBarV2 as Be, AppRailV2 as De, AppShellV2 as Ve, ArtifactRender as be, BoxedPart as Fe, BrainIcon as Ne, ChartIcon as ke, ChatIcon as Ge, ChatPane as He, ChatsHistoryV2 as Oe, CheckIcon as We, ChevronIcon as we, ChevronRightIcon as ze, CloseIcon as Je, CodeIcon as je, ComposerIcon as qe, DEFAULT_PART_RENDERERS as Ke, DashboardIcon as Xe, DataExplorerIcon as Ye, DelayTextComponent as Qe, EnvironmentProvider as Ze, FileIcon as $e, FunctionPart as ea, GlobeIcon as aa, HistoryIcon as ta, IDLE_TIMEOUT as sa, InertEnvironmentProvider as oa, JsxErrorBoundary as na, LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL as ra, LastPromptsV2 as ia, LinearBackgroundProgress as ca, LinearProgressBarWithMarkers as la, ListCheckIcon as Sa, LiveJsxBlock as Ca, LiveTsxConfigProvider as Aa, LlmResponseRender as pa, LoadingDots as da, LockClosedIcon as Ia, LockOpenIcon as ga, MOBILE_NAV_DEFAULT as va, MarkdownExtended as Ea, MenuIcon as ma, Message as ha, MobileDrawerV2 as Ta, PanelIcon as ua, PauseIcon as La, PinIcon as xa, PlusIcon as Pa, PromptV2 as Ra, RunProgressPanelV2 as Ua, RunProgressStripV2 as fa, SearchIcon as ya, SendIcon as Ma, SessionStateManagerService as _a, SparkleIcon as Ba, Sparkline as Da, StopIcon as Va, Stopwatch as ba, SubAgentBox as Fa, SubAgentBoxV2 as Na, SuspendedPart as ka, TableIcon as Ga, TaskListV2 as Ha, TerminalIcon as Oa, TextPart as Wa, ThoughtPart as wa, ToolIcon as za, TrashIcon as Ja, UiToolDispatcher as ja, UsersIcon as qa, V2_CHART_PALETTE as Ka, WARNING_THRESHOLD as Xa, WaitingPart as Ya, classifyPart as Qa, createAiChatSessionStore as Za, createAiChatSessionStore as $a, createUiToolRegistry as et, extendDefaultScope as at, extendModuleRegistry as tt, getDefaultJsxScope as st, parseClientOutput as ot, parseContentBlocks as nt, parseUiArgs as rt, useAiChatServices as it, useAiChatSessionStore as ct, useEnvironment as lt, useEnvironmentOptional as St, useLiveTsxMaxCharsForFull as Ct, useResponsiveLayout as At, v2Card as pt, v2Chip as dt, v2IconBtn as It, v2MonoMeta as gt, v2SectionLabel as vt, v2Theme as Et } from "./components.js";
11
- import { u as ht, a as Tt, b as ut } from "./useContainerWidth-Df2PmSoC.js";
12
- import { A as xt, a as Pt, b as Rt, G as Ut, d as ft, c as yt, e as Mt, f as _t, g as Bt, h as Dt, i as Vt, j as bt, k as Ft, l as Nt, m as kt, n as Gt, o as Ht, p as Ot, q as Wt, r as wt, s as zt, t as Jt, u as jt, v as qt } from "./auth-CcTgInbY.js";
13
- import { S as Xt, c as Yt, e as Qt, a as Zt, i as $t, p as es, b as as, s as ts, g as ss } from "./sortable-table-DgQHxWIh.js";
14
- import { u as ns } from "./useChatSessions-DttlifVk.js";
15
- import { Score as is } from "./interfaces.js";
10
+ import { APPBAR_V2_HEIGHT as Le, AgentActivityV2 as xe, AiChat as Pe, AiChatDrawer as Re, AiChatFloating as fe, AiChatFloatingV2 as Ue, AiChatProvider as ye, AiChatServiceContext as Me, AiChatV2Pane as _e, AppBarV2 as Be, AppRailV2 as De, AppShellV2 as Ve, ArtifactRender as Fe, BoxedPart as be, BrainIcon as Ne, ChartIcon as ke, ChatIcon as Ge, ChatPane as He, ChatsHistoryV2 as Oe, CheckIcon as We, ChevronIcon as we, ChevronRightIcon as ze, CloseIcon as Je, CodeIcon as je, ComposerIcon as qe, DEFAULT_PART_RENDERERS as Ke, DashboardIcon as Xe, DataExplorerIcon as Ye, DelayTextComponent as Qe, EnvironmentProvider as Ze, FileIcon as $e, FunctionPart as ea, GlobeIcon as aa, HistoryIcon as ta, IDLE_TIMEOUT as sa, InertEnvironmentProvider as na, JsxErrorBoundary as oa, LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL as ra, LastPromptsV2 as ia, LinearBackgroundProgress as ca, LinearProgressBarWithMarkers as la, ListCheckIcon as Sa, LiveJsxBlock as Ca, LiveTsxConfigProvider as pa, LlmResponseRender as Aa, LoadingDots as da, LockClosedIcon as ga, LockOpenIcon as Ia, MOBILE_NAV_DEFAULT as va, MarkdownExtended as Ea, MenuIcon as ma, Message as ha, MobileDrawerV2 as Ta, PanelIcon as ua, PauseIcon as La, PinIcon as xa, PlusIcon as Pa, PromptV2 as Ra, RunProgressPanelV2 as fa, RunProgressStripV2 as Ua, SearchIcon as ya, SendIcon as Ma, SessionStateManagerService as _a, SparkleIcon as Ba, Sparkline as Da, StopIcon as Va, Stopwatch as Fa, SubAgentBox as ba, SubAgentBoxV2 as Na, SuspendedPart as ka, TableIcon as Ga, TaskListV2 as Ha, TerminalIcon as Oa, TextPart as Wa, ThoughtPart as wa, ToolIcon as za, TrashIcon as Ja, UiToolDispatcher as ja, UsersIcon as qa, V2_CHART_PALETTE as Ka, WARNING_THRESHOLD as Xa, WaitingPart as Ya, classifyPart as Qa, configureFriendlyMapping as Za, createAiChatSessionStore as $a, createAiChatSessionStore as et, createUiToolRegistry as at, extendDefaultScope as tt, extendModuleRegistry as st, getDefaultJsxScope as nt, getFriendlyLabel as ot, parseClientOutput as rt, parseContentBlocks as it, parseUiArgs as ct, useAiChatServices as lt, useAiChatSessionStore as St, useEnvironment as Ct, useEnvironmentOptional as pt, useLiveTsxMaxCharsForFull as At, useResponsiveLayout as dt, v2Card as gt, v2Chip as It, v2IconBtn as vt, v2MonoMeta as Et, v2SectionLabel as mt, v2Theme as ht } from "./components.js";
11
+ import { u as ut, a as Lt, b as xt } from "./useContainerWidth-Df2PmSoC.js";
12
+ import { A as Rt, a as ft, b as Ut, G as yt, d as Mt, c as _t, e as Bt, f as Dt, g as Vt, h as Ft, i as bt, j as Nt, k as kt, l as Gt, m as Ht, n as Ot, o as Wt, p as wt, q as zt, r as Jt, s as jt, t as qt, u as Kt, v as Xt } from "./auth-CcTgInbY.js";
13
+ import { S as Qt, c as Zt, e as $t, a as es, i as as, p as ts, b as ss, s as ns, g as os } from "./sortable-table-DgQHxWIh.js";
14
+ import { u as is } from "./useChatSessions-DttlifVk.js";
15
+ import { Score as ls } from "./interfaces.js";
16
16
  export {
17
- xt as ALLOWED_DOMAINS,
18
- Pt as ALLOWED_EMAILS,
19
- b as ANALYTICS_AGENT_NAME,
17
+ Rt as ALLOWED_DOMAINS,
18
+ ft as ALLOWED_EMAILS,
19
+ F as ANALYTICS_AGENT_NAME,
20
20
  Le as APPBAR_V2_HEIGHT,
21
- Rt as AUTH_CONFIG,
21
+ Ut as AUTH_CONFIG,
22
22
  T as Account,
23
23
  xe as AgentActivityV2,
24
- F as AgentConfig,
24
+ b as AgentConfig,
25
25
  Se as AgentGatewayService,
26
26
  Ce as AgentGatewayWSAsync,
27
27
  u as AgentKind,
@@ -29,8 +29,8 @@ export {
29
29
  k as AgentType,
30
30
  Pe as AiChat,
31
31
  Re as AiChatDrawer,
32
- Ue as AiChatFloating,
33
- fe as AiChatFloatingV2,
32
+ fe as AiChatFloating,
33
+ Ue as AiChatFloatingV2,
34
34
  ye as AiChatProvider,
35
35
  Me as AiChatServiceContext,
36
36
  _e as AiChatV2Pane,
@@ -38,10 +38,10 @@ export {
38
38
  De as AppRailV2,
39
39
  Ve as AppShellV2,
40
40
  Ee as ArtifactHtmlHandler,
41
- be as ArtifactRender,
41
+ Fe as ArtifactRender,
42
42
  G as ArtifactType,
43
43
  H as AuthorType,
44
- Fe as BoxedPart,
44
+ be as BoxedPart,
45
45
  Ne as BrainIcon,
46
46
  ke as ChartIcon,
47
47
  O as ChatAction,
@@ -66,38 +66,38 @@ export {
66
66
  Ye as DataExplorerIcon,
67
67
  Qe as DelayTextComponent,
68
68
  Ze as EnvironmentProvider,
69
- Ae as EventBusService,
69
+ pe as EventBusService,
70
70
  z as EventType,
71
71
  J as EventTypeDescriptions,
72
72
  $e as FileIcon,
73
- o as FunctionCallContent,
73
+ n as FunctionCallContent,
74
74
  ea as FunctionPart,
75
- n as FunctionResultContent,
76
- Ut as GOOGLE_CLIENT_ID,
75
+ o as FunctionResultContent,
76
+ yt as GOOGLE_CLIENT_ID,
77
77
  j as GetEventTypeFromDotNetName,
78
78
  q as GetEventTypeFromPythonName,
79
79
  aa as GlobeIcon,
80
80
  ta as HistoryIcon,
81
- pe as HttpArtifactService,
81
+ Ae as HttpArtifactService,
82
82
  he as HttpSessionService,
83
83
  sa as IDLE_TIMEOUT,
84
- oa as InertEnvironmentProvider,
84
+ na as InertEnvironmentProvider,
85
85
  r as InteractionPartUtils,
86
86
  de as InteractionService,
87
- na as JsxErrorBoundary,
87
+ oa as JsxErrorBoundary,
88
88
  ra as LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL,
89
89
  ia as LastPromptsV2,
90
90
  ca as LinearBackgroundProgress,
91
91
  la as LinearProgressBarWithMarkers,
92
92
  Sa as ListCheckIcon,
93
93
  Ca as LiveJsxBlock,
94
- Aa as LiveTsxConfigProvider,
94
+ pa as LiveTsxConfigProvider,
95
95
  i as LlmEvent,
96
- pa as LlmResponseRender,
96
+ Aa as LlmResponseRender,
97
97
  da as LoadingDots,
98
- Ie as LocalStorageService,
99
- Ia as LockClosedIcon,
100
- ga as LockOpenIcon,
98
+ ge as LocalStorageService,
99
+ ga as LockClosedIcon,
100
+ Ia as LockOpenIcon,
101
101
  va as MOBILE_NAV_DEFAULT,
102
102
  Ea as MarkdownExtended,
103
103
  x as MemoryContextLabels,
@@ -115,31 +115,31 @@ export {
115
115
  Ra as PromptV2,
116
116
  Y as ResponseType,
117
117
  Q as RunMode,
118
- Ua as RunProgressPanelV2,
119
- fa as RunProgressStripV2,
118
+ fa as RunProgressPanelV2,
119
+ Ua as RunProgressStripV2,
120
120
  R as SUB_AGENT_TERMINAL_STATUSES,
121
- is as Score,
121
+ ls as Score,
122
122
  ya as SearchIcon,
123
123
  Ma as SendIcon,
124
124
  c as ServerEvent,
125
125
  _a as SessionStateManagerService,
126
126
  Z as SkillLevel,
127
- Xt as SortableTable,
127
+ Qt as SortableTable,
128
128
  Ba as SparkleIcon,
129
129
  Da as Sparkline,
130
130
  Va as StopIcon,
131
- ba as Stopwatch,
131
+ Fa as Stopwatch,
132
132
  l as StreamingFunctionCallUpdateContent,
133
133
  S as StreamingReasoningContent,
134
134
  C as StreamingResponse,
135
- A as StreamingTextContent,
136
- Fa as SubAgentBox,
135
+ p as StreamingTextContent,
136
+ ba as SubAgentBox,
137
137
  Na as SubAgentBoxV2,
138
138
  ka as SuspendedPart,
139
139
  Ga as TableIcon,
140
140
  Ha as TaskListV2,
141
141
  Oa as TerminalIcon,
142
- p as TextContent,
142
+ A as TextContent,
143
143
  Wa as TextPart,
144
144
  wa as ThoughtPart,
145
145
  za as ToolIcon,
@@ -149,78 +149,80 @@ export {
149
149
  Ka as V2_CHART_PALETTE,
150
150
  Xa as WARNING_THRESHOLD,
151
151
  Ya as WaitingPart,
152
- ge as WebSocketConnecionV2,
153
- Yt as chunkArray,
152
+ Ie as WebSocketConnecionV2,
153
+ Zt as chunkArray,
154
154
  Qa as classifyPart,
155
- Za as createAiChatSessionStore,
156
- $a as createAiChatStore,
155
+ Za as configureFriendlyMapping,
156
+ $a as createAiChatSessionStore,
157
+ et as createAiChatStore,
157
158
  d as createEventSerializer,
158
- I as createStreamingResponseSerializer,
159
- et as createUiToolRegistry,
160
- ft as dateReviver,
161
- yt as decodeBase64,
159
+ g as createStreamingResponseSerializer,
160
+ at as createUiToolRegistry,
161
+ Mt as dateReviver,
162
+ _t as decodeBase64,
162
163
  Te as decodeSessionEvents,
163
- Mt as decodeUri,
164
- _t as decodeUriFromPython,
165
- g as deserializeEvent,
164
+ Bt as decodeUri,
165
+ Dt as decodeUriFromPython,
166
+ I as deserializeEvent,
166
167
  v as deserializePayload,
167
- Bt as encodeBase64,
168
- Dt as encodeUri,
169
- at as extendDefaultScope,
170
- tt as extendModuleRegistry,
171
- Qt as extractInteractionId,
172
- Zt as extractLinkAction,
173
- Vt as getAgentBaseUrl,
168
+ Vt as encodeBase64,
169
+ Ft as encodeUri,
170
+ tt as extendDefaultScope,
171
+ st as extendModuleRegistry,
172
+ $t as extractInteractionId,
173
+ es as extractLinkAction,
174
+ bt as getAgentBaseUrl,
174
175
  $ as getAgentServerBaseUrl,
175
- bt as getArtifactsBaseUrl,
176
+ Nt as getArtifactsBaseUrl,
176
177
  ee as getConnectionStateColor,
177
- st as getDefaultJsxScope,
178
- Ft as getDotNetBaseUrl,
178
+ nt as getDefaultJsxScope,
179
+ kt as getDotNetBaseUrl,
179
180
  ae as getEnvVar,
180
181
  te as getEnvironmentInfo,
181
- Nt as getIconByName,
182
+ ot as getFriendlyLabel,
183
+ Gt as getIconByName,
182
184
  se as getModelVendor,
183
- oe as getRandomUUID,
184
- ne as getServerBaseUrl,
185
+ ne as getRandomUUID,
186
+ oe as getServerBaseUrl,
185
187
  re as getServerClientBaseUrl,
186
- kt as iconCategories,
187
- Gt as isBase64Encoded,
188
+ Ht as iconCategories,
189
+ Ot as isBase64Encoded,
188
190
  ie as isServer,
189
- U as isSubAgentTerminalStatus,
190
- Ht as isUriEncoded,
191
- $t as isValidInteractionId,
192
- Ot as isValidUri,
193
- Wt as materialIcons,
194
- es as parseAndValidateArtifactUrl,
195
- wt as parseArtifactFromJson,
196
- ot as parseClientOutput,
197
- nt as parseContentBlocks,
198
- as as parseKnownNumbers,
199
- rt as parseUiArgs,
200
- zt as parseUriParams,
191
+ f as isSubAgentTerminalStatus,
192
+ Wt as isUriEncoded,
193
+ as as isValidInteractionId,
194
+ wt as isValidUri,
195
+ zt as materialIcons,
196
+ ts as parseAndValidateArtifactUrl,
197
+ Jt as parseArtifactFromJson,
198
+ rt as parseClientOutput,
199
+ it as parseContentBlocks,
200
+ ss as parseKnownNumbers,
201
+ ct as parseUiArgs,
202
+ jt as parseUriParams,
201
203
  ce as resolveApiUrl,
202
204
  E as sanitizeJsonString,
203
- Jt as searchIcons,
205
+ qt as searchIcons,
204
206
  m as serializeEvent,
205
- jt as setEbiContextData,
206
- qt as setEbiContextSessionId,
207
- ts as splitBigLinesWithSpaces,
208
- ss as startsWithInteractionId,
209
- it as useAiChatServices,
210
- ct as useAiChatSessionStore,
211
- ns as useChatSessions,
212
- ht as useContainerRectangle,
213
- Tt as useContainerWidth,
214
- lt as useEnvironment,
215
- St as useEnvironmentOptional,
216
- ut as useInterval,
217
- Ct as useLiveTsxMaxCharsForFull,
218
- At as useResponsiveLayout,
219
- pt as v2Card,
220
- dt as v2Chip,
221
- It as v2IconBtn,
222
- gt as v2MonoMeta,
223
- vt as v2SectionLabel,
224
- Et as v2Theme
207
+ Kt as setEbiContextData,
208
+ Xt as setEbiContextSessionId,
209
+ ns as splitBigLinesWithSpaces,
210
+ os as startsWithInteractionId,
211
+ lt as useAiChatServices,
212
+ St as useAiChatSessionStore,
213
+ is as useChatSessions,
214
+ ut as useContainerRectangle,
215
+ Lt as useContainerWidth,
216
+ Ct as useEnvironment,
217
+ pt as useEnvironmentOptional,
218
+ xt as useInterval,
219
+ At as useLiveTsxMaxCharsForFull,
220
+ dt as useResponsiveLayout,
221
+ gt as v2Card,
222
+ It as v2Chip,
223
+ vt as v2IconBtn,
224
+ Et as v2MonoMeta,
225
+ mt as v2SectionLabel,
226
+ ht as v2Theme
225
227
  };
226
228
  //# sourceMappingURL=index.js.map
@@ -13,6 +13,8 @@ export { SessionStateManagerService, IDLE_TIMEOUT, WARNING_THRESHOLD, } from './
13
13
  export { default as Message } from './AiChat/ChatPane/Message';
14
14
  export { default as SubAgentBox } from './AiChat/ChatPane/SubAgentBox';
15
15
  export type { SubAgentBoxProps } from './AiChat/ChatPane/SubAgentBox';
16
+ export { configureFriendlyMapping, getFriendlyLabel } from './AiChat/ChatPane/friendlyToolConfig';
17
+ export type { FriendlyState, FriendlyToolEntry } from './AiChat/ChatPane/friendlyToolConfig';
16
18
  export { classifyPart, DEFAULT_PART_RENDERERS, TextPart, ThoughtPart, FunctionPart, WaitingPart, SuspendedPart, BoxedPart, UiToolDispatcher, } from './AiChat/ChatPane/parts';
17
19
  export type { PartKind, PartRendererProps, PartRenderer, PartRendererMap, } from './AiChat/ChatPane/parts';
18
20
  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.2.15",
3
+ "version": "0.2.16",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"