@aintela/chat 0.14.3 → 0.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.js +1613 -1610
- package/dist/components.js.map +1 -1
- package/dist/{detachedRunActivity-B85--SdS.js → detachedRunActivity-Cf-RPK9j.js} +41 -7
- package/dist/detachedRunActivity-Cf-RPK9j.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/services.js +1 -1
- package/dist/src/components/AiChat/ChatPane/AskUserDialog.d.ts +2 -2
- package/dist/src/components/AiChat/ChatPane/friendlyToolConfig.d.ts +2 -0
- package/dist/src/components/AiChat/ChatPane/parts/askUserPartStrings.test.d.ts +1 -0
- package/dist/src/services/servers/AgentGatewayWSAsync.d.ts +14 -0
- package/dist/src/services/servers/gatewaySessionSwitch.test.d.ts +1 -0
- package/package.json +3 -3
- package/dist/detachedRunActivity-B85--SdS.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { A as s, a as n, b as r, c as o, d as i, C as c, e as l, f as A, E as p,
|
|
|
3
3
|
import { C as w, C as G, D as W, a as z, i as K, b as J, c as X, d as j } from "./detachedRunModel-X59Pb5V-.js";
|
|
4
4
|
import { A as q, a as Z, M as Q, b as $ } from "./Memory-BUnmYGNv.js";
|
|
5
5
|
import { C as ae, P as te } from "./Prompt-DZb7OaPp.js";
|
|
6
|
-
import { A as ne, A as re, C as oe, D as ie, a as ce, E as le, H as Ae, I as pe, b as ge, L as Se, M as Ce, T as de, W as he, c as ue, d as Ee, r as Te, e as Re, s as Ie, t as Pe } from "./detachedRunActivity-
|
|
6
|
+
import { A as ne, A as re, C as oe, D as ie, a as ce, E as le, H as Ae, I as pe, b as ge, L as Se, M as Ce, T as de, W as he, c as ue, d as Ee, r as Te, e as Re, s as Ie, t as Pe } from "./detachedRunActivity-Cf-RPK9j.js";
|
|
7
7
|
import { A as De } from "./artifactHtmlHandler-CMQJf1cX.js";
|
|
8
8
|
import { H as me, d as _e, r as xe } from "./httpSessionService-B2wgAfly.js";
|
|
9
9
|
import { APPBAR_HEIGHT as fe, APPBAR_HEIGHT as Me, ASK_USER_CANCELLED as Be, ActivityLine as Fe, AgentActivity as Oe, AgentActivity as Ue, AgentRunLabel as ke, AgentTyping as He, AiChat as Ve, AiChatDrawer as Ne, AiChatFloating as be, AiChatFloating as we, AiChatPane as Ge, AiChatProvider as We, AiChatServiceContext as ze, AiChatPane as Ke, AppBar as Je, AppBar as Xe, AppRail as je, AppRail as Ye, AppShell as qe, AppShell as Ze, ArtifactRender as Qe, AskUserDialog as $e, AskUserSheet as ea, AttachmentPreviewModal as aa, BillingLimitBanner as ta, BoxedPart as sa, BrainIcon as na, CHAT_VERBOSITY_LEVELS as ra, ChartIcon as oa, ChatAgentHeader as ia, ChatBoxContext as ca, ChatIcon as la, ChatPane as Aa, ChatsHistory as pa, ChatsHistory as ga, CheckIcon as Sa, ChevronIcon as Ca, ChevronRightIcon as da, CloseIcon as ha, CodeIcon as ua, ComposerIcon as Ea, CurrentMessage as Ta, DEFAULT_ACTIVITY_RENDERER as Ra, DEFAULT_INTERACTION_ORIGIN_LABELS as Ia, DEFAULT_PART_RENDERERS as Pa, DashboardIcon as va, DataExplorerIcon as Da, DelayTextComponent as La, DetachedRunBox as ma, DetachedRunBox as _a, DetachedRunTaskBox as xa, DetachedRunTranscript as ya, EnvironmentProvider as fa, FileIcon as Ma, FunctionPart as Ba, GlobeIcon as Fa, HandoffDivider as Oa, HistoryIcon as Ua, InertEnvironmentProvider as ka, InteractionOriginBadge as Ha, JsxErrorBoundary as Va, LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL as Na, LastPrompts as ba, LastPrompts as wa, LinearBackgroundProgress as Ga, LinearProgressBarWithMarkers as Wa, ListCheckIcon as za, LiveJsxBlock as Ka, LiveTsxConfigProvider as Ja, LlmResponseRender as Xa, LoadingDots as ja, LockClosedIcon as Ya, LockOpenIcon as qa, MOBILE_NAV_DEFAULT as Za, MarkdownExtended as Qa, MentionPickerPanel as $a, MenuIcon as et, Message as at, MessageScopeProvider as tt, MobileDrawer as st, MobileDrawer as nt, PanelIcon as rt, PaperclipIcon as ot, PauseIcon as it, PenIcon as ct, PersonaCard as lt, PinIcon as At, PlusIcon as pt, Prompt as gt, PromptDateMarkers as St, PromptGhostHint as Ct, Prompt as dt, RotateIcon as ht, RunProgressPanel as ut, RunProgressPanel as Et, RunProgressStrip as Tt, RunProgressStrip as Rt, SearchIcon as It, SendIcon as Pt, SessionStateManagerService as vt, SessionUsage as Dt, SessionUsage as Lt, SharedSessionTranscript as mt, SparkleIcon as _t, Sparkline as xt, StopIcon as yt, Stopwatch as ft, SuspendedPart as Mt, TableIcon as Bt, TaskList as Ft, TaskList as Ot, TerminalIcon as Ut, TextPart as kt, ThoughtPart as Ht, ToolIcon as Vt, TrashIcon as Nt, TriggerDropdown as bt, TurnAwareButton as wt, UiToolDispatcher as Gt, UndoIcon as Wt, UsersIcon as zt, V2_CHART_PALETTE as Kt, WaitingPart as Jt, ZoomInIcon as Xt, ZoomOutIcon as jt, acceptsFile as Yt, activitySteps as qt, agentFromKey as Zt, bareToolName as Qt, canStreamDetachedRun as $t, classifyPart as es, configureFriendlyMapping as as, createAiChatEngine as ts, createAiChatSessionStore as ss, createAiChatSessionStore as ns, createChatBoxStore as rs, createDetachedRunTranscriptEngine as os, createSharedSessionTranscriptEngine as is, createUiToolRegistry as cs, detachedRunHeadline as ls, disposeSharedAiChatEngine as As, engineKeyFor as ps, extendDefaultScope as gs, extendModuleRegistry as Ss, formatFileSize as Cs, getDefaultJsxScope as ds, getFriendlyLabel as hs, getSharedAiChatEngine as us, handoffAt as Es, itemsThatFit as Ts, openDetachedRunTranscript as Rs, openSharedSessionTranscript as Is, parseClientOutput as Ps, parseContentBlocks as vs, parseDetachedRunConclusion as Ds, parseUiArgs as Ls, previousAgentKey as ms, registerContentTools as _s, resolveChatAgent as xs, slotEnterSx as ys, useAgentEngine as fs, useAiChatServices as Ms, useAiChatSessionStore as Bs, useChatBoxHeight as Fs, useChatReadOnly as Os, useCoarsePointer as Us, useDetachedRunLiveActivity as ks, useDetachedRunResumeKey as Hs, useDetachedRunTranscript as Vs, useEnvironment as Ns, useEnvironmentOptional as bs, useFirstDrawBudget as ws, useLiveTsxMaxCharsForFull as Gs, useMessageScope as Ws, useParkedAskUser as zs, useResponsiveLayout as Ks, useSharedSessionTranscript as Js, useTurnOpen as Xs, useVisualViewport as js, v2Card as Ys, v2Chip as qs, v2IconBtn as Zs, v2MonoMeta as Qs, v2SectionLabel as $s, v2Theme as en } from "./components.js";
|
package/dist/services.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as r, A as s, D as t, a as c, E as o, H as n, b as i, L as A, M as S, T as d, c as v, d as E, r as T, e as D, s as m, t as H } from "./detachedRunActivity-
|
|
1
|
+
import { A as r, A as s, D as t, a as c, E as o, H as n, b as i, L as A, M as S, T as d, c as v, d as E, r as T, e as D, s as m, t as H } from "./detachedRunActivity-Cf-RPK9j.js";
|
|
2
2
|
import { A as p } from "./artifactHtmlHandler-CMQJf1cX.js";
|
|
3
3
|
import { H as _, d as l, r as f } from "./httpSessionService-B2wgAfly.js";
|
|
4
4
|
export {
|
|
@@ -20,7 +20,7 @@ import { DialogProps } from '@mui/material/Dialog';
|
|
|
20
20
|
* host-registered ask-user components (AskCreateAccount, add_passengers, …) work here unchanged.</p>
|
|
21
21
|
*/
|
|
22
22
|
export interface AskUserDialogProps {
|
|
23
|
-
/** Heading above the prompt. Defaults to a neutral
|
|
23
|
+
/** Heading above the prompt. Defaults to a neutral pt-BR label; a host can override it. */
|
|
24
24
|
title?: React.ReactNode;
|
|
25
25
|
/** Dialog width. Defaults to `'sm'`. */
|
|
26
26
|
maxWidth?: DialogProps['maxWidth'];
|
|
@@ -29,7 +29,7 @@ export interface AskUserDialogProps {
|
|
|
29
29
|
* anything behind the dialog and you want the question to stay in the way until it is dealt with.
|
|
30
30
|
*/
|
|
31
31
|
minimizable?: boolean;
|
|
32
|
-
/** Label of the restore chip while minimized. Defaults to
|
|
32
|
+
/** Label of the restore chip while minimized. Defaults to a pt-BR label; a host can override it. */
|
|
33
33
|
minimizedLabel?: string;
|
|
34
34
|
}
|
|
35
35
|
declare const AskUserDialog: React.FC<AskUserDialogProps>;
|
|
@@ -6,6 +6,8 @@ export interface FriendlyToolEntry {
|
|
|
6
6
|
extractDetail?: (args: any) => string;
|
|
7
7
|
}
|
|
8
8
|
export declare const friendlyToolConfigRegistry: Record<string, FriendlyToolEntry>;
|
|
9
|
+
/** What an unregistered tool reads as — generic on purpose: the tool's name is never shown. */
|
|
10
|
+
export declare const FALLBACK_FRIENDLY_LABELS: Readonly<Record<FriendlyState, string>>;
|
|
9
11
|
export declare function configureFriendlyMapping(toolName: string, mapping: FriendlyToolEntry): void;
|
|
10
12
|
export type FriendlyState = 'partial' | 'call' | 'response';
|
|
11
13
|
export declare function getFriendlyLabel(toolName: string, state: FriendlyState, args?: any, isError?: boolean): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -228,6 +228,20 @@ export declare class AgentGatewayWSAsync {
|
|
|
228
228
|
* session is never swapped for another.
|
|
229
229
|
*/
|
|
230
230
|
openConnection(sessionId?: string, options?: OpenOptions): Promise<string>;
|
|
231
|
+
/**
|
|
232
|
+
* Opening `sessionId` leaves the session this gateway is on: a different id, or a fresh session (undefined) while
|
|
233
|
+
* one is held. Re-opening the same session (a resume, a redial) is not a switch, and neither is the first open.
|
|
234
|
+
*/
|
|
235
|
+
private isSessionSwitch;
|
|
236
|
+
/**
|
|
237
|
+
* Drop every piece of per-session turn state (AIA Issue 2261). The store's transcript is reset by the session
|
|
238
|
+
* record's bind, but the gateway is not: a turn of the previous conversation still open here (an `ask_user` card
|
|
239
|
+
* parked at its end, say) used to survive the switch, and the next conversation's first turn-complete handed the
|
|
240
|
+
* live message over to it — conversation A's question rendered in B, under B's agent, with A's timestamp. The
|
|
241
|
+
* status bubble of B's first send was a clone of A's interaction for the same reason, and a paused A merged B's
|
|
242
|
+
* first message into A's interaction id. Nothing here belongs to the next session, so none of it is carried over.
|
|
243
|
+
*/
|
|
244
|
+
private forgetSession;
|
|
231
245
|
closeConnection(closeTurn?: boolean): Promise<SendMessageResponse | null>;
|
|
232
246
|
/** Hang up and stop supervising the connection. `closeTurn` also closes an open turn in the store. */
|
|
233
247
|
stopStream(closeTurn?: boolean): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aintela/chat",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -134,12 +134,12 @@
|
|
|
134
134
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
135
135
|
"@vitejs/plugin-react": "^4.5.2",
|
|
136
136
|
"@vitest/coverage-v8": "^4.1.7",
|
|
137
|
-
"happy-dom": "^
|
|
137
|
+
"happy-dom": "^21.0.4",
|
|
138
138
|
"html-react-parser": "^5.2.0",
|
|
139
139
|
"js-base64": "^3.7.0",
|
|
140
140
|
"recharts": "^3.10.1",
|
|
141
141
|
"typescript": "~5.8.3",
|
|
142
|
-
"vite": "^6.
|
|
142
|
+
"vite": "^6.4.5",
|
|
143
143
|
"vite-plugin-dts": "^4.5.0",
|
|
144
144
|
"vitest": "^4.1.11"
|
|
145
145
|
}
|