@aintela/chat 0.4.20 → 0.4.22

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/hooks.js CHANGED
@@ -1,4 +1,4 @@
1
- import { u as a, a as t, b as o } from "./useContainerWidth-DKSIf5HQ.js";
1
+ import { u as a, a as t, b as o } from "./useContainerWidth-CMv4G1Po.js";
2
2
  import { u } from "./useChatSessions-BzgPYfyj.js";
3
3
  export {
4
4
  u as useChatSessions,
package/dist/index.js CHANGED
@@ -7,10 +7,10 @@ import { A as Y, a as Q, E as $, H as ee, I as ae, L as te, W as se } from "./ht
7
7
  import { A as oe } from "./artifactHtmlHandler-CMQJf1cX.js";
8
8
  import { H as ie, d as ce, r as le } from "./httpSessionService-B3CxFtl1.js";
9
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 Pe, AiChatFloating as Ee, AiChatPane as ue, AiChatProvider as ve, AiChatServiceContext as Te, 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 Ue, AskUserSheet as _e, AttachmentPreviewModal as ke, BoxedPart as Be, BrainIcon as Ve, ChartIcon as be, ChatIcon as Fe, ChatPane as He, ChatsHistory as Ne, ChatsHistory as we, CheckIcon as Ge, ChevronIcon as Oe, ChevronRightIcon as We, CloseIcon as ze, CodeIcon as Je, ComposerIcon as Ke, CurrentMessage as je, DEFAULT_PART_RENDERERS as qe, DashboardIcon as Xe, DataExplorerIcon as Ze, DelayTextComponent as Ye, EnvironmentProvider as Qe, 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, LastPrompts as ia, LastPrompts as ca, LinearBackgroundProgress as la, LinearProgressBarWithMarkers as Aa, ListCheckIcon as pa, LiveJsxBlock as ga, LiveTsxConfigProvider as Sa, LlmResponseRender as Ca, LoadingDots as Ia, LockClosedIcon as ha, LockOpenIcon as da, MOBILE_NAV_DEFAULT as Pa, MarkdownExtended as Ea, MentionPickerPanel as ua, MenuIcon as va, Message as Ta, MobileDrawer as ma, MobileDrawer as La, PanelIcon as Ra, PaperclipIcon as xa, PauseIcon as Ma, PenIcon as ya, PinIcon as fa, PlusIcon as Da, Prompt as Ua, PromptDateMarkers as _a, PromptGhostHint as ka, Prompt as Ba, RotateIcon as Va, RunProgressPanel as ba, RunProgressPanel as Fa, RunProgressStrip as Ha, RunProgressStrip as Na, SearchIcon as wa, SendIcon as Ga, SessionStateManagerService as Oa, SessionUsage as Wa, SessionUsage as za, SparkleIcon as Ja, Sparkline as Ka, StopIcon as ja, Stopwatch as qa, SubAgentBox as Xa, SubAgentBox as Za, SuspendedPart as Ya, TableIcon as Qa, TaskList as $a, TaskList as et, TerminalIcon as at, TextPart as tt, ThoughtPart as st, ToolIcon as nt, TrashIcon as ot, TriggerDropdown as rt, TurnAwareButton as it, UiToolDispatcher as ct, UndoIcon as lt, UsersIcon as At, V2_CHART_PALETTE as pt, WARNING_THRESHOLD as gt, WaitingPart as St, ZoomInIcon as Ct, ZoomOutIcon as It, classifyPart as ht, configureFriendlyMapping as dt, createAiChatEngine as Pt, createAiChatSessionStore as Et, createAiChatSessionStore as ut, createUiToolRegistry as vt, disposeSharedAiChatEngine as Tt, engineKeyFor as mt, extendDefaultScope as Lt, extendModuleRegistry as Rt, getDefaultJsxScope as xt, getFriendlyLabel as Mt, getSharedAiChatEngine as yt, parseClientOutput as ft, parseContentBlocks as Dt, parseUiArgs as Ut, slotEnterSx as _t, useAgentEngine as kt, useAiChatServices as Bt, useAiChatSessionStore as Vt, useCoarsePointer as bt, useEnvironment as Ft, useEnvironmentOptional as Ht, useLiveTsxMaxCharsForFull as Nt, useParkedAskUser as wt, useResponsiveLayout as Gt, useTurnOpen as Ot, useVisualViewport as Wt, v2Card as zt, v2Chip as Jt, v2IconBtn as Kt, v2MonoMeta as jt, v2SectionLabel as qt, v2Theme as Xt } from "./components.js";
10
- import { u as Yt, a as Qt, b as $t } from "./useContainerWidth-DKSIf5HQ.js";
10
+ import { u as Yt, a as Qt, b as $t } from "./useContainerWidth-CMv4G1Po.js";
11
11
  import { A as as, D as ts, g as ss, b as ns, c as os, d as rs, e as is, f as cs, i as ls, r as As } from "./environmentUtils-VZNTCzEE.js";
12
12
  import { ALLOWED_DOMAINS as gs, ALLOWED_EMAILS as Ss, AUTH_CONFIG as Cs, GOOGLE_CLIENT_ID as Is, getAgentBaseUrl as hs, getArtifactsBaseUrl as ds, getDotNetBaseUrl as Ps, getIconByName as Es, iconCategories as us, materialIcons as vs, searchIcons as Ts, setEbiContextData as ms, setEbiContextSessionId as Ls } from "./utils.js";
13
- import { S as xs, a as Ms, b as ys, c as fs, d as Ds, e as Us, f as _s, g as ks, h as Bs, i as Vs, j as bs, k as Fs, l as Hs, p as Ns, m as ws, s as Gs, o as Os, q as Ws, t as zs, r as Js } from "./predictionRows-BDZtjaRZ.js";
13
+ import { S as xs, a as Ms, b as ys, c as fs, d as Ds, e as Us, f as _s, g as ks, h as Bs, i as Vs, j as bs, k as Fs, l as Hs, p as Ns, m as ws, s as Gs, o as Os, q as Ws, t as zs, r as Js } from "./predictionRows-CtyrlEUr.js";
14
14
  import { u as js } from "./useChatSessions-BzgPYfyj.js";
15
15
  import { Score as Xs } from "./interfaces.js";
16
16
  export {
@@ -2,7 +2,7 @@ var x = Object.defineProperty;
2
2
  var $ = (o, e, t) => e in o ? x(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var d = (o, e) => x(o, "name", { value: e, configurable: !0 });
4
4
  var E = (o, e, t) => $(o, typeof e != "symbol" ? e + "" : e, t);
5
- const N = /^[a-z][a-z0-9+.-]*:\/\//i, F = /* @__PURE__ */ d((o, e, t) => {
5
+ const N = /^[a-z][a-z0-9+.-]*:\/\//i, B = /* @__PURE__ */ d((o, e, t) => {
6
6
  let s = "URL", n = null, i = null, r = null;
7
7
  if (o[0] == "#") {
8
8
  const a = o.indexOf("-"), l = o.slice(1, a);
@@ -19,7 +19,7 @@ const N = /^[a-z][a-z0-9+.-]*:\/\//i, F = /* @__PURE__ */ d((o, e, t) => {
19
19
  }, "extractLinkAction"), D = /* @__PURE__ */ d((o, e) => Array.from(
20
20
  { length: Math.ceil(o.length / e) },
21
21
  (t, s) => o.slice(s * e, s * e + e)
22
- ), "chunkArray"), B = /* @__PURE__ */ d((o) => {
22
+ ), "chunkArray"), F = /* @__PURE__ */ d((o) => {
23
23
  o = o.replaceAll("\\n", `
24
24
  `);
25
25
  const e = 90, t = o.split(" "), s = [];
@@ -935,15 +935,15 @@ async function ee(o, { onAtQuery: e, onAtPersonQuery: t }, {
935
935
  hotelConfidence: a = 0,
936
936
  hotelNameConfidence: l = 0
937
937
  } = {}) {
938
- const [c, u] = await Promise.all([
938
+ const c = s >= i && s >= n, [u, p] = await Promise.all([
939
939
  e ? e(o, { vertical: r, hotelConfidence: a, hotelNameConfidence: l }).catch(() => []) : Promise.resolve([]),
940
- t ? t(o).catch(() => []) : Promise.resolve([])
941
- ]), p = u.map((h) => h.kind ? h : { ...h, kind: "person" });
940
+ t ? t(o, { leading: c }).catch(() => []) : Promise.resolve([])
941
+ ]), h = p.map((f) => f.kind ? f : { ...f, kind: "person" });
942
942
  if (e && t) {
943
- const h = p.map((m) => ({ ...m, group: "person" })), f = c.map((m) => ({ ...m, group: m.kind === "hotel" ? "hotel" : "location" }));
944
- return s >= i && s >= n ? [...h, ...f] : [...f, ...h];
943
+ const f = h.map((m) => ({ ...m, group: "person" })), g = u.map((m) => ({ ...m, group: m.kind === "hotel" ? "hotel" : "location" }));
944
+ return c ? [...f, ...g] : [...g, ...f];
945
945
  }
946
- return [...p, ...c];
946
+ return [...h, ...u];
947
947
  }
948
948
  d(ee, "fetchAtMentions");
949
949
  function te(o, e) {
@@ -975,7 +975,7 @@ export {
975
975
  D as e,
976
976
  Z as f,
977
977
  M as g,
978
- F as h,
978
+ B as h,
979
979
  ee as i,
980
980
  w as j,
981
981
  te as k,
@@ -986,7 +986,7 @@ export {
986
986
  j as p,
987
987
  K as q,
988
988
  X as r,
989
- B as s,
989
+ F as s,
990
990
  se as t
991
991
  };
992
- //# sourceMappingURL=predictionRows-BDZtjaRZ.js.map
992
+ //# sourceMappingURL=predictionRows-CtyrlEUr.js.map