@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.
- package/README.md +14 -0
- package/dist/{atMentions-CCNBOf5W.js → atMentions-BhAwZTm1.js} +104 -88
- package/dist/atMentions-BhAwZTm1.js.map +1 -0
- package/dist/components.js +9822 -11029
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{httpArtifactService-kXjuQtGa.js → httpArtifactService-qcYDyDh_.js} +47 -28
- package/dist/httpArtifactService-qcYDyDh_.js.map +1 -0
- package/dist/{httpSessionService-CMT6k-Nu.js → httpSessionService-DXlT2vxT.js} +33 -22
- package/dist/httpSessionService-DXlT2vxT.js.map +1 -0
- package/dist/index.js +237 -221
- package/dist/services.js +2 -2
- package/dist/src/components/AiChat/AiChatContext.d.ts +0 -3
- package/dist/src/components/AiChat/AiChatTypes.d.ts +0 -11
- package/dist/src/components/AiChat/ChatPane/ChatPane.test.d.ts +1 -0
- package/dist/src/components/AiChat/ChatPane/MessageAgent.d.ts +0 -1
- package/dist/src/components/AiChat/ChatPane/MessagePart.d.ts +5 -3
- package/dist/src/components/AiChat/ChatPane/MessagePart.test.d.ts +1 -0
- package/dist/src/components/AiChat/ChatPane/friendlyToolConfig.test.d.ts +1 -0
- package/dist/src/components/AiChat/ChatPane/messageAgentThoughts.test.d.ts +1 -0
- package/dist/src/components/AiChat/ChatPane/parts/uiToolDispatcher.test.d.ts +1 -0
- package/dist/src/components/AiChat/ChatPane/parts/uiToolRegistry.test.d.ts +1 -0
- package/dist/src/components/AiChat/index.d.ts +1 -3
- package/dist/src/components/index.d.ts +0 -3
- package/dist/src/components/v2/AiChatFloating.d.ts +3 -0
- package/dist/src/components/v2/PromptV2.d.ts +47 -6
- package/dist/src/components/v2/PromptV2.test.d.ts +1 -0
- package/dist/src/components/v2/icons.d.ts +1 -0
- package/dist/src/components/v2/index.d.ts +27 -25
- package/dist/src/components/v2/useVisualViewport.d.ts +20 -0
- package/dist/src/models/Notification.d.ts +11 -0
- package/dist/src/models/index.d.ts +1 -1
- package/dist/src/services/storageService.d.ts +18 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/swallowNextClick.d.ts +16 -0
- package/dist/src/utils/urlParser.test.d.ts +1 -0
- package/dist/tests/fakes/fakeChatServices.d.ts +42 -0
- package/dist/{useChatSessions-CpHq0e1n.js → useChatSessions-1AAvAdPW.js} +2 -2
- package/dist/{useChatSessions-CpHq0e1n.js.map → useChatSessions-1AAvAdPW.js.map} +1 -1
- package/dist/utils.js +22 -21
- package/package.json +1 -1
- package/dist/atMentions-CCNBOf5W.js.map +0 -1
- package/dist/httpArtifactService-kXjuQtGa.js.map +0 -1
- package/dist/httpSessionService-CMT6k-Nu.js.map +0 -1
- package/dist/src/components/AiChat/AiChatFloating.d.ts +0 -3
- package/dist/src/components/AiChat/ChatPane/LastPrompts.d.ts +0 -9
- package/dist/src/components/AiChat/ChatPane/Prompt.d.ts +0 -9
- package/dist/src/components/AiChat/ChatPane/SubAgentBox.d.ts +0 -9
- package/dist/src/components/AiChat/ChatPane/TaskList.d.ts +0 -6
- 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
|
|
3
|
-
import { C as
|
|
4
|
-
import { A as
|
|
5
|
-
import { C as
|
|
6
|
-
import { A as Y, a as Q, E as $, H as ee, I as
|
|
7
|
-
import { A as
|
|
8
|
-
import { H as ie, d as ce, r as le } from "./httpSessionService-
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
11
|
-
import { A as
|
|
12
|
-
import { ALLOWED_DOMAINS as
|
|
13
|
-
import { S as
|
|
14
|
-
import { u as
|
|
15
|
-
import { Score as
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
ge as
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
45
|
-
|
|
50
|
+
_e as AskUserDialog,
|
|
51
|
+
ke as AskUserSheet,
|
|
46
52
|
i as AuthorType,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
Be as BoxedPart,
|
|
54
|
+
Ue as BrainIcon,
|
|
55
|
+
Ve as ChartIcon,
|
|
50
56
|
c as ChatAction,
|
|
51
57
|
l as ChatEventType,
|
|
52
|
-
|
|
58
|
+
be as ChatIcon,
|
|
53
59
|
A as ChatMessageContent,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
H as
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
80
|
+
p as EventType,
|
|
74
81
|
g as EventTypeDescriptions,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
82
|
+
Qe as FileIcon,
|
|
83
|
+
S as FunctionCallContent,
|
|
84
|
+
$e as FunctionPart,
|
|
78
85
|
C as FunctionResultContent,
|
|
79
|
-
|
|
86
|
+
ps as GOOGLE_CLIENT_ID,
|
|
80
87
|
I as GetEventTypeFromDotNetName,
|
|
81
|
-
|
|
82
|
-
|
|
88
|
+
ea as GlobeIcon,
|
|
89
|
+
aa as HistoryIcon,
|
|
83
90
|
ee as HttpArtifactService,
|
|
84
91
|
ie as HttpSessionService,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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
|
-
|
|
191
|
+
ut as createUiToolRegistry,
|
|
178
192
|
ce as decodeSessionEvents,
|
|
179
193
|
_ as deserializeEvent,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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
|
-
|
|
231
|
+
rs as resolveApiUrl,
|
|
218
232
|
V as sanitizeJsonString,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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-
|
|
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-
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
|
11
|
-
* back to the built-ins — `useContext` returns undefined rather than
|
|
12
|
-
* throwing
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 '
|
|
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';
|