@aintela/chat 0.3.0 → 0.3.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.
Files changed (50) hide show
  1. package/README.md +14 -0
  2. package/dist/{atMentions-CCNBOf5W.js → atMentions-BhAwZTm1.js} +104 -88
  3. package/dist/atMentions-BhAwZTm1.js.map +1 -0
  4. package/dist/components.js +9822 -11029
  5. package/dist/components.js.map +1 -1
  6. package/dist/hooks.js +1 -1
  7. package/dist/{httpArtifactService-kXjuQtGa.js → httpArtifactService-qcYDyDh_.js} +47 -28
  8. package/dist/httpArtifactService-qcYDyDh_.js.map +1 -0
  9. package/dist/{httpSessionService-CMT6k-Nu.js → httpSessionService-DXlT2vxT.js} +33 -22
  10. package/dist/httpSessionService-DXlT2vxT.js.map +1 -0
  11. package/dist/index.js +237 -221
  12. package/dist/services.js +2 -2
  13. package/dist/src/components/AiChat/AiChatContext.d.ts +0 -3
  14. package/dist/src/components/AiChat/AiChatTypes.d.ts +0 -11
  15. package/dist/src/components/AiChat/ChatPane/ChatPane.test.d.ts +1 -0
  16. package/dist/src/components/AiChat/ChatPane/MessageAgent.d.ts +0 -1
  17. package/dist/src/components/AiChat/ChatPane/MessagePart.d.ts +5 -3
  18. package/dist/src/components/AiChat/ChatPane/MessagePart.test.d.ts +1 -0
  19. package/dist/src/components/AiChat/ChatPane/friendlyToolConfig.test.d.ts +1 -0
  20. package/dist/src/components/AiChat/ChatPane/messageAgentThoughts.test.d.ts +1 -0
  21. package/dist/src/components/AiChat/ChatPane/parts/uiToolDispatcher.test.d.ts +1 -0
  22. package/dist/src/components/AiChat/ChatPane/parts/uiToolRegistry.test.d.ts +1 -0
  23. package/dist/src/components/AiChat/index.d.ts +1 -3
  24. package/dist/src/components/index.d.ts +0 -3
  25. package/dist/src/components/v2/AiChatFloating.d.ts +3 -0
  26. package/dist/src/components/v2/PromptV2.d.ts +47 -6
  27. package/dist/src/components/v2/PromptV2.test.d.ts +1 -0
  28. package/dist/src/components/v2/icons.d.ts +1 -0
  29. package/dist/src/components/v2/index.d.ts +27 -25
  30. package/dist/src/components/v2/useVisualViewport.d.ts +20 -0
  31. package/dist/src/models/Notification.d.ts +11 -0
  32. package/dist/src/models/index.d.ts +1 -1
  33. package/dist/src/services/storageService.d.ts +18 -0
  34. package/dist/src/utils/index.d.ts +1 -0
  35. package/dist/src/utils/swallowNextClick.d.ts +16 -0
  36. package/dist/src/utils/urlParser.test.d.ts +1 -0
  37. package/dist/tests/fakes/fakeChatServices.d.ts +42 -0
  38. package/dist/{useChatSessions-CpHq0e1n.js → useChatSessions-1AAvAdPW.js} +2 -2
  39. package/dist/{useChatSessions-CpHq0e1n.js.map → useChatSessions-1AAvAdPW.js.map} +1 -1
  40. package/dist/utils.js +22 -21
  41. package/package.json +1 -1
  42. package/dist/atMentions-CCNBOf5W.js.map +0 -1
  43. package/dist/httpArtifactService-kXjuQtGa.js.map +0 -1
  44. package/dist/httpSessionService-CMT6k-Nu.js.map +0 -1
  45. package/dist/src/components/AiChat/AiChatFloating.d.ts +0 -3
  46. package/dist/src/components/AiChat/ChatPane/LastPrompts.d.ts +0 -9
  47. package/dist/src/components/AiChat/ChatPane/Prompt.d.ts +0 -9
  48. package/dist/src/components/AiChat/ChatPane/SubAgentBox.d.ts +0 -9
  49. package/dist/src/components/AiChat/ChatPane/TaskList.d.ts +0 -6
  50. package/dist/src/components/v2/AiChatFloatingV2.d.ts +0 -3
package/dist/index.js CHANGED
@@ -1,247 +1,263 @@
1
1
  import "reflect-metadata";
2
- import { A as n, a as o, b as s, c as r, d as i, C as c, e as l, f as A, E as S, g, F as p, h as C, G as I, I as d, L as h, M as E, i as v, R as T, j as u, S as m, k as L, l as P, m as x, n as M, o as R, T as f, p as y, q as D, r as _, s as U, t as k, u as B, v as V, w as F } from "./serializer-D2W42bdT.js";
3
- import { C as N, C as H } from "./ClientMessage-DUby3KyC.js";
4
- import { A as G, a as W, M as w, b as z, S as J, i as K } from "./Memory-CjrYSkzB.js";
5
- import { C as X, P as Z } from "./Prompt-DZb7OaPp.js";
6
- import { A as Y, a as Q, E as $, H as ee, I as te, L as ae, W as ne } from "./httpArtifactService-kXjuQtGa.js";
7
- import { A as se } from "./artifactHtmlHandler-CMQJf1cX.js";
8
- import { H as ie, d as ce, r as le } from "./httpSessionService-CMT6k-Nu.js";
9
- import { APPBAR_V2_HEIGHT as Se, ASK_USER_CANCELLED as ge, AgentActivityV2 as pe, AiChat as Ce, AiChatDrawer as Ie, AiChatFloating as de, AiChatFloatingV2 as he, AiChatProvider as Ee, AiChatServiceContext as ve, AiChatV2Pane as Te, AppBarV2 as ue, AppRailV2 as me, AppShellV2 as Le, ArtifactRender as Pe, AskUserDialog as xe, AskUserSheet as Me, BoxedPart as Re, BrainIcon as fe, ChartIcon as ye, ChatIcon as De, ChatPane as _e, ChatsHistoryV2 as Ue, CheckIcon as ke, ChevronIcon as Be, ChevronRightIcon as Ve, CloseIcon as Fe, CodeIcon as be, ComposerIcon as Ne, CurrentMessage as He, DEFAULT_PART_RENDERERS as Oe, DashboardIcon as Ge, DataExplorerIcon as We, DelayTextComponent as we, EnvironmentProvider as ze, FileIcon as Je, FunctionPart as Ke, GlobeIcon as je, HistoryIcon as Xe, IDLE_TIMEOUT as Ze, InertEnvironmentProvider as qe, JsxErrorBoundary as Ye, LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL as Qe, LastPromptsV2 as $e, LinearBackgroundProgress as et, LinearProgressBarWithMarkers as tt, ListCheckIcon as at, LiveJsxBlock as nt, LiveTsxConfigProvider as ot, LlmResponseRender as st, LoadingDots as rt, LockClosedIcon as it, LockOpenIcon as ct, MOBILE_NAV_DEFAULT as lt, MarkdownExtended as At, MentionPickerPanel as St, MenuIcon as gt, Message as pt, MobileDrawerV2 as Ct, PanelIcon as It, PauseIcon as dt, PenIcon as ht, PinIcon as Et, PlusIcon as vt, PromptDateMarkers as Tt, PromptGhostHint as ut, PromptV2 as mt, RotateIcon as Lt, RunProgressPanelV2 as Pt, RunProgressStripV2 as xt, SearchIcon as Mt, SendIcon as Rt, SessionStateManagerService as ft, SparkleIcon as yt, Sparkline as Dt, StopIcon as _t, Stopwatch as Ut, SubAgentBox as kt, SubAgentBoxV2 as Bt, SuspendedPart as Vt, TableIcon as Ft, TaskListV2 as bt, TerminalIcon as Nt, TextPart as Ht, ThoughtPart as Ot, ToolIcon as Gt, TrashIcon as Wt, TriggerDropdown as wt, TurnAwareButton as zt, UiToolDispatcher as Jt, UndoIcon as Kt, UsersIcon as jt, V2_CHART_PALETTE as Xt, WARNING_THRESHOLD as Zt, WaitingPart as qt, ZoomInIcon as Yt, ZoomOutIcon as Qt, classifyPart as $t, configureFriendlyMapping as ea, createAiChatEngine as ta, createAiChatSessionStore as aa, createAiChatSessionStore as na, createUiToolRegistry as oa, disposeSharedAiChatEngine as sa, engineKeyFor as ra, extendDefaultScope as ia, extendModuleRegistry as ca, getDefaultJsxScope as la, getFriendlyLabel as Aa, getSharedAiChatEngine as Sa, parseClientOutput as ga, parseContentBlocks as pa, parseUiArgs as Ca, useAgentEngine as Ia, useAiChatServices as da, useAiChatSessionStore as ha, useCoarsePointer as Ea, useEnvironment as va, useEnvironmentOptional as Ta, useLiveTsxMaxCharsForFull as ua, useParkedAskUser as ma, useResponsiveLayout as La, useTurnOpen as Pa, v2Card as xa, v2Chip as Ma, v2IconBtn as Ra, v2MonoMeta as fa, v2SectionLabel as ya, v2Theme as Da } from "./components.js";
10
- import { u as Ua, a as ka, b as Ba } from "./useContainerWidth-B40_i-NW.js";
11
- import { A as Fa, D as ba, g as Na, b as Ha, c as Oa, d as Ga, e as Wa, f as wa, i as za, r as Ja } from "./environmentUtils-VZNTCzEE.js";
12
- import { ALLOWED_DOMAINS as ja, ALLOWED_EMAILS as Xa, AUTH_CONFIG as Za, GOOGLE_CLIENT_ID as qa, getAgentBaseUrl as Ya, getArtifactsBaseUrl as Qa, getDotNetBaseUrl as $a, getIconByName as en, iconCategories as tn, materialIcons as an, searchIcons as nn, setEbiContextData as on, setEbiContextSessionId as sn } from "./utils.js";
13
- import { S as cn, a as ln, b as An, c as Sn, d as gn, e as pn, f as Cn, g as In, h as dn, i as hn, j as En, k as vn, l as Tn, p as un, m as mn, s as Ln, o as Pn, t as xn } from "./atMentions-CCNBOf5W.js";
14
- import { u as Rn } from "./useChatSessions-CpHq0e1n.js";
15
- import { Score as yn } from "./interfaces.js";
2
+ import { A as s, a as n, b as o, c as r, d as i, C as c, e as l, f as A, E as p, g, F as S, h as C, G as I, I as h, L as d, M as u, i as E, R as P, j as T, S as v, k as m, l as L, m as R, n as x, o as M, T as y, p as f, q as D, r as _, s as k, t as B, u as U, v as V, w as b } from "./serializer-D2W42bdT.js";
3
+ import { C as H, C as N } from "./ClientMessage-DUby3KyC.js";
4
+ import { A as O, a as w, M as W, b as z, S as J, i as K } from "./Memory-CjrYSkzB.js";
5
+ import { C as q, P as X } from "./Prompt-DZb7OaPp.js";
6
+ import { A as Y, a as Q, E as $, H as ee, I as ae, L as te, W as se } from "./httpArtifactService-qcYDyDh_.js";
7
+ import { A as oe } from "./artifactHtmlHandler-CMQJf1cX.js";
8
+ import { H as ie, d as ce, r as le } from "./httpSessionService-DXlT2vxT.js";
9
+ import { APPBAR_HEIGHT as pe, APPBAR_HEIGHT as ge, ASK_USER_CANCELLED as Se, AgentActivity as Ce, AgentActivity as Ie, AiChat as he, AiChatDrawer as de, AiChatFloating as ue, AiChatFloating as Ee, AiChatPane as Pe, AiChatProvider as Te, AiChatServiceContext as ve, AiChatPane as me, AppBar as Le, AppBar as Re, AppRail as xe, AppRail as Me, AppShell as ye, AppShell as fe, ArtifactRender as De, AskUserDialog as _e, AskUserSheet as ke, BoxedPart as Be, BrainIcon as Ue, ChartIcon as Ve, ChatIcon as be, ChatPane as Fe, ChatsHistory as He, ChatsHistory as Ne, CheckIcon as Ge, ChevronIcon as Oe, ChevronRightIcon as we, CloseIcon as We, CodeIcon as ze, ComposerIcon as Je, CurrentMessage as Ke, DEFAULT_PART_RENDERERS as je, DashboardIcon as qe, DataExplorerIcon as Xe, DelayTextComponent as Ze, EnvironmentProvider as Ye, FileIcon as Qe, FunctionPart as $e, GlobeIcon as ea, HistoryIcon as aa, IDLE_TIMEOUT as ta, InertEnvironmentProvider as sa, JsxErrorBoundary as na, LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL as oa, LastPrompts as ra, LastPrompts as ia, LinearBackgroundProgress as ca, LinearProgressBarWithMarkers as la, ListCheckIcon as Aa, LiveJsxBlock as pa, LiveTsxConfigProvider as ga, LlmResponseRender as Sa, LoadingDots as Ca, LockClosedIcon as Ia, LockOpenIcon as ha, MOBILE_NAV_DEFAULT as da, MarkdownExtended as ua, MentionPickerPanel as Ea, MenuIcon as Pa, Message as Ta, MobileDrawer as va, MobileDrawer as ma, PanelIcon as La, PaperclipIcon as Ra, PauseIcon as xa, PenIcon as Ma, PinIcon as ya, PlusIcon as fa, Prompt as Da, PromptDateMarkers as _a, PromptGhostHint as ka, Prompt as Ba, RotateIcon as Ua, RunProgressPanel as Va, RunProgressPanel as ba, RunProgressStrip as Fa, RunProgressStrip as Ha, SearchIcon as Na, SendIcon as Ga, SessionStateManagerService as Oa, SparkleIcon as wa, Sparkline as Wa, StopIcon as za, Stopwatch as Ja, SubAgentBox as Ka, SubAgentBox as ja, SuspendedPart as qa, TableIcon as Xa, TaskList as Za, TaskList as Ya, TerminalIcon as Qa, TextPart as $a, ThoughtPart as et, ToolIcon as at, TrashIcon as tt, TriggerDropdown as st, TurnAwareButton as nt, UiToolDispatcher as ot, UndoIcon as rt, UsersIcon as it, V2_CHART_PALETTE as ct, WARNING_THRESHOLD as lt, WaitingPart as At, ZoomInIcon as pt, ZoomOutIcon as gt, classifyPart as St, configureFriendlyMapping as Ct, createAiChatEngine as It, createAiChatSessionStore as ht, createAiChatSessionStore as dt, createUiToolRegistry as ut, disposeSharedAiChatEngine as Et, engineKeyFor as Pt, extendDefaultScope as Tt, extendModuleRegistry as vt, getDefaultJsxScope as mt, getFriendlyLabel as Lt, getSharedAiChatEngine as Rt, parseClientOutput as xt, parseContentBlocks as Mt, parseUiArgs as yt, useAgentEngine as ft, useAiChatServices as Dt, useAiChatSessionStore as _t, useCoarsePointer as kt, useEnvironment as Bt, useEnvironmentOptional as Ut, useLiveTsxMaxCharsForFull as Vt, useParkedAskUser as bt, useResponsiveLayout as Ft, useTurnOpen as Ht, useVisualViewport as Nt, v2Card as Gt, v2Chip as Ot, v2IconBtn as wt, v2MonoMeta as Wt, v2SectionLabel as zt, v2Theme as Jt } from "./components.js";
10
+ import { u as jt, a as qt, b as Xt } from "./useContainerWidth-B40_i-NW.js";
11
+ import { A as Yt, D as Qt, g as $t, b as es, c as as, d as ts, e as ss, f as ns, i as os, r as rs } from "./environmentUtils-VZNTCzEE.js";
12
+ import { ALLOWED_DOMAINS as cs, ALLOWED_EMAILS as ls, AUTH_CONFIG as As, GOOGLE_CLIENT_ID as ps, getAgentBaseUrl as gs, getArtifactsBaseUrl as Ss, getDotNetBaseUrl as Cs, getIconByName as Is, iconCategories as hs, materialIcons as ds, searchIcons as us, setEbiContextData as Es, setEbiContextSessionId as Ps } from "./utils.js";
13
+ import { S as vs, a as ms, b as Ls, c as Rs, d as xs, e as Ms, f as ys, g as fs, h as Ds, i as _s, j as ks, k as Bs, l as Us, p as Vs, m as bs, s as Fs, o as Hs, q as Ns, t as Gs } from "./atMentions-BhAwZTm1.js";
14
+ import { u as ws } from "./useChatSessions-1AAvAdPW.js";
15
+ import { Score as zs } from "./interfaces.js";
16
16
  export {
17
- ja as ALLOWED_DOMAINS,
18
- Xa as ALLOWED_EMAILS,
19
- Fa as ANALYTICS_AGENT_NAME,
20
- Se as APPBAR_V2_HEIGHT,
21
- ge as ASK_USER_CANCELLED,
22
- Za as AUTH_CONFIG,
23
- G as Account,
24
- pe as AgentActivityV2,
25
- n as AgentConfig,
17
+ cs as ALLOWED_DOMAINS,
18
+ ls as ALLOWED_EMAILS,
19
+ Yt as ANALYTICS_AGENT_NAME,
20
+ pe as APPBAR_HEIGHT,
21
+ ge as APPBAR_V2_HEIGHT,
22
+ Se as ASK_USER_CANCELLED,
23
+ As as AUTH_CONFIG,
24
+ O as Account,
25
+ Ce as AgentActivity,
26
+ Ie as AgentActivityV2,
27
+ s as AgentConfig,
26
28
  Y as AgentGatewayService,
27
29
  Q as AgentGatewayWSAsync,
28
- W as AgentKind,
29
- o as AgentMode,
30
- s as AgentType,
31
- Ce as AiChat,
32
- Ie as AiChatDrawer,
33
- de as AiChatFloating,
34
- he as AiChatFloatingV2,
35
- Ee as AiChatProvider,
30
+ w as AgentKind,
31
+ n as AgentMode,
32
+ o as AgentType,
33
+ he as AiChat,
34
+ de as AiChatDrawer,
35
+ ue as AiChatFloating,
36
+ Ee as AiChatFloatingV2,
37
+ Pe as AiChatPane,
38
+ Te as AiChatProvider,
36
39
  ve as AiChatServiceContext,
37
- Te as AiChatV2Pane,
38
- ue as AppBarV2,
39
- me as AppRailV2,
40
- Le as AppShellV2,
41
- se as ArtifactHtmlHandler,
42
- Pe as ArtifactRender,
40
+ me as AiChatV2Pane,
41
+ Le as AppBar,
42
+ Re as AppBarV2,
43
+ xe as AppRail,
44
+ Me as AppRailV2,
45
+ ye as AppShell,
46
+ fe as AppShellV2,
47
+ oe as ArtifactHtmlHandler,
48
+ De as ArtifactRender,
43
49
  r as ArtifactType,
44
- xe as AskUserDialog,
45
- Me as AskUserSheet,
50
+ _e as AskUserDialog,
51
+ ke as AskUserSheet,
46
52
  i as AuthorType,
47
- Re as BoxedPart,
48
- fe as BrainIcon,
49
- ye as ChartIcon,
53
+ Be as BoxedPart,
54
+ Ue as BrainIcon,
55
+ Ve as ChartIcon,
50
56
  c as ChatAction,
51
57
  l as ChatEventType,
52
- De as ChatIcon,
58
+ be as ChatIcon,
53
59
  A as ChatMessageContent,
54
- _e as ChatPane,
55
- Ue as ChatsHistoryV2,
56
- ke as CheckIcon,
57
- Be as ChevronIcon,
58
- Ve as ChevronRightIcon,
59
- N as ClientMessage,
60
- H as ClientMessageClass,
61
- Fe as CloseIcon,
62
- be as CodeIcon,
63
- Ne as ComposerIcon,
64
- X as ConnectionState,
65
- He as CurrentMessage,
66
- Oe as DEFAULT_PART_RENDERERS,
67
- ba as DEV_SERVER_CONFIG,
68
- Ge as DashboardIcon,
69
- We as DataExplorerIcon,
70
- we as DelayTextComponent,
71
- ze as EnvironmentProvider,
60
+ Fe as ChatPane,
61
+ He as ChatsHistory,
62
+ Ne as ChatsHistoryV2,
63
+ Ge as CheckIcon,
64
+ Oe as ChevronIcon,
65
+ we as ChevronRightIcon,
66
+ H as ClientMessage,
67
+ N as ClientMessageClass,
68
+ We as CloseIcon,
69
+ ze as CodeIcon,
70
+ Je as ComposerIcon,
71
+ q as ConnectionState,
72
+ Ke as CurrentMessage,
73
+ je as DEFAULT_PART_RENDERERS,
74
+ Qt as DEV_SERVER_CONFIG,
75
+ qe as DashboardIcon,
76
+ Xe as DataExplorerIcon,
77
+ Ze as DelayTextComponent,
78
+ Ye as EnvironmentProvider,
72
79
  $ as EventBusService,
73
- S as EventType,
80
+ p as EventType,
74
81
  g as EventTypeDescriptions,
75
- Je as FileIcon,
76
- p as FunctionCallContent,
77
- Ke as FunctionPart,
82
+ Qe as FileIcon,
83
+ S as FunctionCallContent,
84
+ $e as FunctionPart,
78
85
  C as FunctionResultContent,
79
- qa as GOOGLE_CLIENT_ID,
86
+ ps as GOOGLE_CLIENT_ID,
80
87
  I as GetEventTypeFromDotNetName,
81
- je as GlobeIcon,
82
- Xe as HistoryIcon,
88
+ ea as GlobeIcon,
89
+ aa as HistoryIcon,
83
90
  ee as HttpArtifactService,
84
91
  ie as HttpSessionService,
85
- Ze as IDLE_TIMEOUT,
86
- qe as InertEnvironmentProvider,
87
- d as InteractionPartUtils,
88
- te as InteractionService,
89
- Ye as JsxErrorBoundary,
90
- Qe as LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL,
91
- $e as LastPromptsV2,
92
- et as LinearBackgroundProgress,
93
- tt as LinearProgressBarWithMarkers,
94
- at as ListCheckIcon,
95
- nt as LiveJsxBlock,
96
- ot as LiveTsxConfigProvider,
97
- h as LlmEvent,
98
- st as LlmResponseRender,
99
- rt as LoadingDots,
100
- ae as LocalStorageService,
101
- it as LockClosedIcon,
102
- ct as LockOpenIcon,
103
- lt as MOBILE_NAV_DEFAULT,
104
- At as MarkdownExtended,
105
- w as MemoryContextLabels,
92
+ ta as IDLE_TIMEOUT,
93
+ sa as InertEnvironmentProvider,
94
+ h as InteractionPartUtils,
95
+ ae as InteractionService,
96
+ na as JsxErrorBoundary,
97
+ oa as LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL,
98
+ ra as LastPrompts,
99
+ ia as LastPromptsV2,
100
+ ca as LinearBackgroundProgress,
101
+ la as LinearProgressBarWithMarkers,
102
+ Aa as ListCheckIcon,
103
+ pa as LiveJsxBlock,
104
+ ga as LiveTsxConfigProvider,
105
+ d as LlmEvent,
106
+ Sa as LlmResponseRender,
107
+ Ca as LoadingDots,
108
+ te as LocalStorageService,
109
+ Ia as LockClosedIcon,
110
+ ha as LockOpenIcon,
111
+ da as MOBILE_NAV_DEFAULT,
112
+ ua as MarkdownExtended,
113
+ W as MemoryContextLabels,
106
114
  z as MemoryContexts,
107
- St as MentionPickerPanel,
108
- gt as MenuIcon,
109
- pt as Message,
110
- Ct as MobileDrawerV2,
111
- E as ModelConfig,
112
- v as ModelType,
113
- It as PanelIcon,
114
- dt as PauseIcon,
115
- ht as PenIcon,
116
- Et as PinIcon,
117
- vt as PlusIcon,
118
- Tt as PromptDateMarkers,
119
- ut as PromptGhostHint,
120
- Z as PromptUtils,
121
- mt as PromptV2,
122
- T as ResponseType,
123
- Lt as RotateIcon,
124
- u as RunMode,
125
- Pt as RunProgressPanelV2,
126
- xt as RunProgressStripV2,
115
+ Ea as MentionPickerPanel,
116
+ Pa as MenuIcon,
117
+ Ta as Message,
118
+ va as MobileDrawer,
119
+ ma as MobileDrawerV2,
120
+ u as ModelConfig,
121
+ E as ModelType,
122
+ La as PanelIcon,
123
+ Ra as PaperclipIcon,
124
+ xa as PauseIcon,
125
+ Ma as PenIcon,
126
+ ya as PinIcon,
127
+ fa as PlusIcon,
128
+ Da as Prompt,
129
+ _a as PromptDateMarkers,
130
+ ka as PromptGhostHint,
131
+ X as PromptUtils,
132
+ Ba as PromptV2,
133
+ P as ResponseType,
134
+ Ua as RotateIcon,
135
+ T as RunMode,
136
+ Va as RunProgressPanel,
137
+ ba as RunProgressPanelV2,
138
+ Fa as RunProgressStrip,
139
+ Ha as RunProgressStripV2,
127
140
  J as SUB_AGENT_TERMINAL_STATUSES,
128
- yn as Score,
129
- Mt as SearchIcon,
130
- Rt as SendIcon,
131
- m as ServerEvent,
132
- ft as SessionStateManagerService,
133
- L as SkillLevel,
134
- cn as SortableTable,
135
- yt as SparkleIcon,
136
- Dt as Sparkline,
137
- _t as StopIcon,
138
- Ut as Stopwatch,
139
- P as StreamingFunctionCallUpdateContent,
140
- x as StreamingReasoningContent,
141
- M as StreamingResponse,
142
- R as StreamingTextContent,
143
- kt as SubAgentBox,
144
- Bt as SubAgentBoxV2,
145
- Vt as SuspendedPart,
146
- Ft as TableIcon,
147
- bt as TaskListV2,
148
- Nt as TerminalIcon,
149
- f as TextContent,
150
- Ht as TextPart,
151
- Ot as ThoughtPart,
152
- Gt as ToolIcon,
153
- Wt as TrashIcon,
154
- wt as TriggerDropdown,
155
- zt as TurnAwareButton,
156
- Jt as UiToolDispatcher,
157
- Kt as UndoIcon,
158
- jt as UsersIcon,
159
- Xt as V2_CHART_PALETTE,
160
- Zt as WARNING_THRESHOLD,
161
- qt as WaitingPart,
162
- ne as WebSocketConnecionV2,
163
- Yt as ZoomInIcon,
164
- Qt as ZoomOutIcon,
165
- ln as activatePlaceholder,
166
- An as advanceToPlaceholder,
167
- Sn as applyTriggerInsertion,
168
- gn as chipLocations,
169
- pn as chunkArray,
170
- $t as classifyPart,
171
- ea as configureFriendlyMapping,
172
- ta as createAiChatEngine,
173
- aa as createAiChatSessionStore,
174
- na as createAiChatStore,
175
- y as createEventSerializer,
141
+ zs as Score,
142
+ Na as SearchIcon,
143
+ Ga as SendIcon,
144
+ v as ServerEvent,
145
+ Oa as SessionStateManagerService,
146
+ m as SkillLevel,
147
+ vs as SortableTable,
148
+ wa as SparkleIcon,
149
+ Wa as Sparkline,
150
+ za as StopIcon,
151
+ Ja as Stopwatch,
152
+ L as StreamingFunctionCallUpdateContent,
153
+ R as StreamingReasoningContent,
154
+ x as StreamingResponse,
155
+ M as StreamingTextContent,
156
+ Ka as SubAgentBox,
157
+ ja as SubAgentBoxV2,
158
+ qa as SuspendedPart,
159
+ Xa as TableIcon,
160
+ Za as TaskList,
161
+ Ya as TaskListV2,
162
+ Qa as TerminalIcon,
163
+ y as TextContent,
164
+ $a as TextPart,
165
+ et as ThoughtPart,
166
+ at as ToolIcon,
167
+ tt as TrashIcon,
168
+ st as TriggerDropdown,
169
+ nt as TurnAwareButton,
170
+ ot as UiToolDispatcher,
171
+ rt as UndoIcon,
172
+ it as UsersIcon,
173
+ ct as V2_CHART_PALETTE,
174
+ lt as WARNING_THRESHOLD,
175
+ At as WaitingPart,
176
+ se as WebSocketConnecionV2,
177
+ pt as ZoomInIcon,
178
+ gt as ZoomOutIcon,
179
+ ms as activatePlaceholder,
180
+ Ls as advanceToPlaceholder,
181
+ Rs as applyTriggerInsertion,
182
+ xs as chipLocations,
183
+ Ms as chunkArray,
184
+ St as classifyPart,
185
+ Ct as configureFriendlyMapping,
186
+ It as createAiChatEngine,
187
+ ht as createAiChatSessionStore,
188
+ dt as createAiChatStore,
189
+ f as createEventSerializer,
176
190
  D as createStreamingResponseSerializer,
177
- oa as createUiToolRegistry,
191
+ ut as createUiToolRegistry,
178
192
  ce as decodeSessionEvents,
179
193
  _ as deserializeEvent,
180
- U as deserializePayload,
181
- Cn as detectTrigger,
182
- sa as disposeSharedAiChatEngine,
183
- ra as engineKeyFor,
184
- ia as extendDefaultScope,
185
- ca as extendModuleRegistry,
186
- In as extractInteractionId,
187
- dn as extractLinkAction,
188
- hn as fetchAtMentions,
189
- En as findPlaceholder,
190
- Ya as getAgentBaseUrl,
191
- Na as getAgentServerBaseUrl,
192
- Qa as getArtifactsBaseUrl,
193
- k as getConnectionStateColor,
194
- la as getDefaultJsxScope,
195
- $a as getDotNetBaseUrl,
196
- Ha as getEnvVar,
197
- Oa as getEnvironmentInfo,
198
- Aa as getFriendlyLabel,
199
- en as getIconByName,
200
- B as getModelVendor,
201
- Ga as getRandomUUID,
202
- Wa as getServerBaseUrl,
203
- wa as getServerClientBaseUrl,
204
- Sa as getSharedAiChatEngine,
205
- tn as iconCategories,
206
- vn as isSectionStart,
207
- za as isServer,
194
+ k as deserializePayload,
195
+ ys as detectTrigger,
196
+ Et as disposeSharedAiChatEngine,
197
+ Pt as engineKeyFor,
198
+ Tt as extendDefaultScope,
199
+ vt as extendModuleRegistry,
200
+ fs as extractInteractionId,
201
+ Ds as extractLinkAction,
202
+ _s as fetchAtMentions,
203
+ ks as findPlaceholder,
204
+ gs as getAgentBaseUrl,
205
+ $t as getAgentServerBaseUrl,
206
+ Ss as getArtifactsBaseUrl,
207
+ B as getConnectionStateColor,
208
+ mt as getDefaultJsxScope,
209
+ Cs as getDotNetBaseUrl,
210
+ es as getEnvVar,
211
+ as as getEnvironmentInfo,
212
+ Lt as getFriendlyLabel,
213
+ Is as getIconByName,
214
+ U as getModelVendor,
215
+ ts as getRandomUUID,
216
+ ss as getServerBaseUrl,
217
+ ns as getServerClientBaseUrl,
218
+ Rt as getSharedAiChatEngine,
219
+ hs as iconCategories,
220
+ Bs as isSectionStart,
221
+ os as isServer,
208
222
  K as isSubAgentTerminalStatus,
209
- Tn as isValidInteractionId,
210
- an as materialIcons,
211
- ga as parseClientOutput,
212
- pa as parseContentBlocks,
213
- Ca as parseUiArgs,
214
- un as placeCaret,
215
- mn as placeholderAt,
223
+ Us as isValidInteractionId,
224
+ ds as materialIcons,
225
+ xt as parseClientOutput,
226
+ Mt as parseContentBlocks,
227
+ yt as parseUiArgs,
228
+ Vs as placeCaret,
229
+ bs as placeholderAt,
216
230
  le as resolveAccessToken,
217
- Ja as resolveApiUrl,
231
+ rs as resolveApiUrl,
218
232
  V as sanitizeJsonString,
219
- nn as searchIcons,
220
- F as serializeEvent,
221
- on as setEbiContextData,
222
- sn as setEbiContextSessionId,
223
- Ln as splitBigLinesWithSpaces,
224
- Pn as startsWithInteractionId,
225
- xn as tokenizeForHighlight,
226
- Ia as useAgentEngine,
227
- da as useAiChatServices,
228
- ha as useAiChatSessionStore,
229
- Rn as useChatSessions,
230
- Ea as useCoarsePointer,
231
- Ua as useContainerRectangle,
232
- va as useEnvironment,
233
- Ta as useEnvironmentOptional,
234
- ka as useInterval,
235
- ua as useLiveTsxMaxCharsForFull,
236
- ma as useParkedAskUser,
237
- Ba as usePromptAssist,
238
- La as useResponsiveLayout,
239
- Pa as useTurnOpen,
240
- xa as v2Card,
241
- Ma as v2Chip,
242
- Ra as v2IconBtn,
243
- fa as v2MonoMeta,
244
- ya as v2SectionLabel,
245
- Da as v2Theme
233
+ us as searchIcons,
234
+ b as serializeEvent,
235
+ Es as setEbiContextData,
236
+ Ps as setEbiContextSessionId,
237
+ Fs as splitBigLinesWithSpaces,
238
+ Hs as startsWithInteractionId,
239
+ Ns as swallowNextClick,
240
+ Gs as tokenizeForHighlight,
241
+ ft as useAgentEngine,
242
+ Dt as useAiChatServices,
243
+ _t as useAiChatSessionStore,
244
+ ws as useChatSessions,
245
+ kt as useCoarsePointer,
246
+ jt as useContainerRectangle,
247
+ Bt as useEnvironment,
248
+ Ut as useEnvironmentOptional,
249
+ qt as useInterval,
250
+ Vt as useLiveTsxMaxCharsForFull,
251
+ bt as useParkedAskUser,
252
+ Xt as usePromptAssist,
253
+ Ft as useResponsiveLayout,
254
+ Ht as useTurnOpen,
255
+ Nt as useVisualViewport,
256
+ Gt as v2Card,
257
+ Ot as v2Chip,
258
+ wt as v2IconBtn,
259
+ Wt as v2MonoMeta,
260
+ zt as v2SectionLabel,
261
+ Jt as v2Theme
246
262
  };
247
263
  //# sourceMappingURL=index.js.map
package/dist/services.js CHANGED
@@ -1,6 +1,6 @@
1
- import { A as t, a as s, E as r, H as o, I as c, L as n, W as i } from "./httpArtifactService-kXjuQtGa.js";
1
+ import { A as t, a as s, E as r, H as o, I as c, L as n, W as i } from "./httpArtifactService-qcYDyDh_.js";
2
2
  import { A as v } from "./artifactHtmlHandler-CMQJf1cX.js";
3
- import { H, d as f, r as p } from "./httpSessionService-CMT6k-Nu.js";
3
+ import { H, d as f, r as p } from "./httpSessionService-DXlT2vxT.js";
4
4
  export {
5
5
  t as AgentGatewayService,
6
6
  s as AgentGatewayWSAsync,
@@ -27,9 +27,6 @@ export interface AiChatContextState {
27
27
  showToolCalls: boolean;
28
28
  showModelSelector: boolean;
29
29
  showSessionInfo: boolean;
30
- showTaskList: boolean;
31
- showSubAgents: boolean;
32
- compactPrompt: boolean;
33
30
  showConnectionState: boolean;
34
31
  hidePromptInput: boolean;
35
32
  /**
@@ -155,17 +155,6 @@ export interface AiChatBaseProps extends AiChatStyleProps {
155
155
  showStickyHeader?: boolean;
156
156
  showModelSelector?: boolean;
157
157
  showSessionInfo?: boolean;
158
- /** Show the live TodoList ("tasks for this turn") above the input. Defaults to true. */
159
- showTaskList?: boolean;
160
- /** Show sub-agent sub-conversations inside agent messages. Defaults to true. */
161
- showSubAgents?: boolean;
162
- /**
163
- * Use the minimal v2 prompt (`PromptV2`) — single sparkle/options
164
- * icon on the left, autosize input, rotated send. Defaults to
165
- * `true` (v2 surface). Legacy v1 chat surfaces opt back into the
166
- * full Prompt component by passing `compactPrompt={false}`.
167
- */
168
- compactPrompt?: boolean;
169
158
  /**
170
159
  * Show the v1 ConnectionState chip in the chat header. Defaults to
171
160
  * `false` because the v2 RunProgressPanel owns the connection-state
@@ -14,7 +14,6 @@ interface MessageAgentProps {
14
14
  appendWaitingPart: boolean;
15
15
  messagesRef?: React.RefObject<Map<string, HTMLDivElement>>;
16
16
  isConnectionOpen: boolean;
17
- showSubAgents?: boolean;
18
17
  preview: boolean;
19
18
  container: string;
20
19
  friendlyMode?: boolean;
@@ -7,9 +7,11 @@ import { PartRendererProps } from './parts';
7
7
  * The consumer override hook reads `partRenderers` off the AiChat services
8
8
  * context (set via `<AiChat partRenderers={...} />`). When no override is
9
9
  * provided for a given kind, the built-in `DEFAULT_PART_RENDERERS[kind]`
10
- * renders. Used outside an AiChatProvider, the dispatcher silently falls
11
- * back to the built-ins — `useContext` returns undefined rather than
12
- * throwing, so this stays usable for isolated rendering / tests.
10
+ * renders. Used outside an AiChatProvider, the dispatcher itself silently
11
+ * falls back to the built-ins — `useContext` returns undefined rather than
12
+ * throwing. Note that several BUILT-INS do require the services (TextPart's
13
+ * markdown renderer among them), so "usable standalone" holds for this
14
+ * dispatcher, not for every kind it can resolve.
13
15
  */
14
16
  declare const MessagePart: React.FC<PartRendererProps>;
15
17
  export default MessagePart;
@@ -2,12 +2,10 @@ export { default as AiChat } from './AiChat';
2
2
  export { default as ChatPane } from './ChatPane/ChatPane';
3
3
  export { AiChatProvider } from './AiChatProvider';
4
4
  export { AiChatDrawer } from './AiChatDrawer';
5
- export { AiChatFloating } from './AiChatFloating';
5
+ export { AiChatFloating } from '../v2/AiChatFloating';
6
6
  export type { AiChatProps, AiChatHandle, AiChatStyleProps, AiChatDrawerProps, AiChatFloatingProps, SendMessageOptions, SendMessageUi, UserMessageRendererProps } from './AiChatTypes';
7
7
  export { useAiChatServices, useAiChatSessionStore } from './AiChatContext';
8
8
  export { createAiChatSessionStore } from './AiChatSessionStore';
9
9
  export type { SubAgentState } from './stateConfiguration';
10
- export type { SubAgentBoxProps } from './ChatPane/SubAgentBox';
11
- export { default as SubAgentBox } from './ChatPane/SubAgentBox';
12
10
  export type { FriendlyToolEntry } from './ChatPane/friendlyToolConfig';
13
11
  export { configureFriendlyMapping } from './ChatPane/friendlyToolConfig';
@@ -3,7 +3,6 @@ export { default as ChatPane } from './AiChat/ChatPane/ChatPane';
3
3
  export { default as CurrentMessage } from './AiChat/ChatPane/CurrentMessage';
4
4
  export { AiChatProvider } from './AiChat/AiChatProvider';
5
5
  export { AiChatDrawer } from './AiChat/AiChatDrawer';
6
- export { AiChatFloating } from './AiChat/AiChatFloating';
7
6
  export { AiChatServiceContext, useAiChatServices, useAiChatSessionStore, } from './AiChat/AiChatContext';
8
7
  export { useTurnOpen } from './AiChat/useTurnOpen';
9
8
  export type { AiChatContextState as AiChatServices } from './AiChat/AiChatContext';
@@ -17,8 +16,6 @@ export type { AiChatEngine, AiChatEngineConfig } from './AiChat/aiChatEngine';
17
16
  export { useAgentEngine, engineKeyFor, getSharedAiChatEngine, disposeSharedAiChatEngine, } from './AiChat/useAgentEngine';
18
17
  export type { LiveSession, UseAgentEngineOptions } from './AiChat/useAgentEngine';
19
18
  export { default as Message } from './AiChat/ChatPane/Message';
20
- export { default as SubAgentBox } from './AiChat/ChatPane/SubAgentBox';
21
- export type { SubAgentBoxProps } from './AiChat/ChatPane/SubAgentBox';
22
19
  export { default as AskUserSheet } from './AiChat/ChatPane/AskUserSheet';
23
20
  export type { AskUserSheetProps } from './AiChat/ChatPane/AskUserSheet';
24
21
  export { default as AskUserDialog } from './AiChat/ChatPane/AskUserDialog';
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { AiChatFloatingProps, AiChatHandle } from '../AiChat/AiChatTypes';
3
+ export declare const AiChatFloating: React.ForwardRefExoticComponent<AiChatFloatingProps & React.RefAttributes<AiChatHandle>>;