@aintela/chat 0.14.7 → 0.14.9

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 (37) hide show
  1. package/dist/agent-team.d.ts +1 -1
  2. package/dist/components.d.ts +1 -1
  3. package/dist/components.js +3 -3
  4. package/dist/components.js.map +1 -1
  5. package/dist/hooks.d.ts +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/interfaces.d.ts +1 -1
  9. package/dist/models.d.ts +1 -1
  10. package/dist/{predictionRows-Damfwthh.js → predictionRows-BkBwfvt4.js} +169 -168
  11. package/dist/{predictionRows-Damfwthh.js.map → predictionRows-BkBwfvt4.js.map} +1 -1
  12. package/dist/services.d.ts +1 -1
  13. package/dist/src/ErrorBondary.d.ts +1 -1
  14. package/dist/src/components/AgentTeam/BillingLimitBanner.d.ts +1 -1
  15. package/dist/src/components/AgentTeam/ChatAgentHeader.d.ts +4 -4
  16. package/dist/src/components/AgentTeam/HandoffDivider.d.ts +1 -1
  17. package/dist/src/components/AgentTeam/PersonaAvatar.d.ts +2 -2
  18. package/dist/src/components/AiChat/ChatPane/AgentAvatar.d.ts +2 -2
  19. package/dist/src/components/AiChat/ChatPane/FloatingConnectionStatus.d.ts +1 -1
  20. package/dist/src/components/AiChat/ChatPane/GuestIcon.d.ts +2 -2
  21. package/dist/src/components/AiChat/ChatPane/parts/ReadOnlyGuard.d.ts +1 -1
  22. package/dist/src/components/Library/LinearBackgroundProgress.d.ts +1 -1
  23. package/dist/src/components/Library/LinearProgressBarWithMarkers.d.ts +1 -1
  24. package/dist/src/components/Library/SessionUsagePanel.d.ts +1 -1
  25. package/dist/src/components/Library/TurnAwareButton.d.ts +1 -1
  26. package/dist/src/components/v2/DetachedRunTaskBox.d.ts +1 -1
  27. package/dist/src/components/v2/DetachedRunTranscript.d.ts +1 -1
  28. package/dist/src/components/v2/MentionPickerPanel.d.ts +1 -1
  29. package/dist/src/components/v2/PromptDateMarkers.d.ts +1 -1
  30. package/dist/src/components/v2/PromptGhostHint.d.ts +1 -1
  31. package/dist/src/components/v2/SharedSessionTranscript.d.ts +1 -1
  32. package/dist/src/components/v2/TriggerDropdown.d.ts +1 -1
  33. package/dist/src/utils/promptHighlight.d.ts +2 -1
  34. package/dist/src/utils/promptHighlight.test.d.ts +1 -0
  35. package/dist/utils.d.ts +1 -1
  36. package/dist/utils.js +1 -1
  37. package/package.json +2 -2
@@ -10,14 +10,14 @@ export interface ChatAgentHeaderProps {
10
10
  /** "agosto" — "Cuida das suas viagens desde agosto." */
11
11
  since?: string;
12
12
  }
13
- export declare function ChatAgentHeader({ personaId, role, org, mobile, trip, since }: ChatAgentHeaderProps): import("react/jsx-runtime").JSX.Element | null;
13
+ export declare function ChatAgentHeader({ personaId, role, org, mobile, trip, since }: ChatAgentHeaderProps): import('react/jsx-runtime').JSX.Element | null;
14
14
  /** Cartão da persona: rosto 64, nome, papel, "Agente autônoma da {org}", o que faz, desde quando. */
15
15
  export declare function PersonaCard({ personaId, role, org, since }: {
16
16
  personaId: PersonaId;
17
17
  role: AgentRole;
18
18
  org: string;
19
19
  since?: string;
20
- }): import("react/jsx-runtime").JSX.Element | null;
20
+ }): import('react/jsx-runtime').JSX.Element | null;
21
21
  /**
22
22
  * Rótulo da sequência de mensagens do agente: avatar (28 desktop / 24 mobile) + "ANA · 09:42" em mono.
23
23
  * Aparece uma vez por sequência; raciocínio, ferramenta e resposta ficam na mesma coluna.
@@ -26,9 +26,9 @@ export declare function AgentRunLabel({ personaId, time, mobile }: {
26
26
  personaId: PersonaId;
27
27
  time?: string;
28
28
  mobile?: boolean;
29
- }): import("react/jsx-runtime").JSX.Element | null;
29
+ }): import('react/jsx-runtime').JSX.Element | null;
30
30
  /** "Ana está escrevendo" — avatar + três pontos pulsando. */
31
31
  export declare function AgentTyping({ personaId, mobile }: {
32
32
  personaId: PersonaId;
33
33
  mobile?: boolean;
34
- }): import("react/jsx-runtime").JSX.Element | null;
34
+ }): import('react/jsx-runtime').JSX.Element | null;
@@ -10,4 +10,4 @@ export declare function HandoffDivider({ from, to, toRole, mobile }: {
10
10
  to: PersonaId;
11
11
  toRole: AgentRole;
12
12
  mobile?: boolean;
13
- }): import("react/jsx-runtime").JSX.Element | null;
13
+ }): import('react/jsx-runtime').JSX.Element | null;
@@ -17,10 +17,10 @@ export interface PersonaAvatarProps {
17
17
  ring?: boolean;
18
18
  dimmed?: boolean;
19
19
  }
20
- export declare function PersonaAvatar({ persona, size, role, pin, ring, dimmed }: PersonaAvatarProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function PersonaAvatar({ persona, size, role, pin, ring, dimmed }: PersonaAvatarProps): import('react/jsx-runtime').JSX.Element;
21
21
  /** Pilha de avatares sobrepostos (linha "quem entra" do formulário de contratação). */
22
22
  export declare function AvatarStack({ ids, size, max }: {
23
23
  ids: PersonaId[];
24
24
  size?: number;
25
25
  max?: number;
26
- }): import("react/jsx-runtime").JSX.Element;
26
+ }): import('react/jsx-runtime').JSX.Element;
@@ -7,7 +7,7 @@ export interface AgentIconProps {
7
7
  color?: string;
8
8
  style?: React.CSSProperties;
9
9
  }
10
- export declare function AgentIcon({ variant, size, strokeWidth, color, style, }: AgentIconProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function AgentIcon({ variant, size, strokeWidth, color, style, }: AgentIconProps): import('react/jsx-runtime').JSX.Element;
11
11
  export type AgentAvatarTone = 'lime' | 'ink' | 'chrome';
12
12
  export interface AgentAvatarProps {
13
13
  variant?: AgentIconVariant;
@@ -15,5 +15,5 @@ export interface AgentAvatarProps {
15
15
  size?: number;
16
16
  style?: React.CSSProperties;
17
17
  }
18
- export declare function AgentAvatar({ variant, tone, size, style, }: AgentAvatarProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function AgentAvatar({ variant, tone, size, style, }: AgentAvatarProps): import('react/jsx-runtime').JSX.Element;
19
19
  export default AgentAvatar;
@@ -4,5 +4,5 @@ interface FloatingConnectionStatusProps {
4
4
  attemps?: number;
5
5
  connectionState?: ConnectionState;
6
6
  }
7
- declare function FloatingConnectionStatus({ isStreamOpen, attemps, connectionState }: FloatingConnectionStatusProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function FloatingConnectionStatus({ isStreamOpen, attemps, connectionState }: FloatingConnectionStatusProps): import('react/jsx-runtime').JSX.Element;
8
8
  export default FloatingConnectionStatus;
@@ -7,7 +7,7 @@ export interface GuestIconProps {
7
7
  color?: string;
8
8
  style?: React.CSSProperties;
9
9
  }
10
- export declare function GuestIcon({ variant, size, strokeWidth, color, style, }: GuestIconProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function GuestIcon({ variant, size, strokeWidth, color, style, }: GuestIconProps): import('react/jsx-runtime').JSX.Element;
11
11
  export type GuestAvatarTone = 'ink' | 'soft' | 'empty' | 'revertedInk';
12
12
  export interface GuestAvatarProps {
13
13
  variant?: GuestIconVariant;
@@ -15,5 +15,5 @@ export interface GuestAvatarProps {
15
15
  size?: number;
16
16
  style?: React.CSSProperties;
17
17
  }
18
- export declare function GuestAvatar({ variant, tone, size, style, }: GuestAvatarProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function GuestAvatar({ variant, tone, size, style, }: GuestAvatarProps): import('react/jsx-runtime').JSX.Element;
19
19
  export default GuestIcon;
@@ -6,4 +6,4 @@ import { default as React } from 'react';
6
6
  */
7
7
  export declare function ReadOnlyGuard({ children }: {
8
8
  children: React.ReactNode;
9
- }): import("react/jsx-runtime").JSX.Element;
9
+ }): import('react/jsx-runtime').JSX.Element;
@@ -4,5 +4,5 @@ export interface LinerBackgroundProgressProps {
4
4
  unCompletedColor: string;
5
5
  children: React.ReactNode;
6
6
  }
7
- declare function LinerBackgroundProgress({ value, children, completedColor, unCompletedColor }: LinerBackgroundProgressProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function LinerBackgroundProgress({ value, children, completedColor, unCompletedColor }: LinerBackgroundProgressProps): import('react/jsx-runtime').JSX.Element;
8
8
  export default LinerBackgroundProgress;
@@ -10,5 +10,5 @@ export interface LinearProgressBarWithMarkersProps {
10
10
  markers: Marker[];
11
11
  sx: SxProps;
12
12
  }
13
- declare function LinearProgressBarWithMarkers({ value, valueBuffer, markers, sx }: LinearProgressBarWithMarkersProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function LinearProgressBarWithMarkers({ value, valueBuffer, markers, sx }: LinearProgressBarWithMarkersProps): import('react/jsx-runtime').JSX.Element;
14
14
  export default LinearProgressBarWithMarkers;
@@ -10,5 +10,5 @@
10
10
  * a shortcut) because a token gauge is noise to a traveller booking a flight and gold to
11
11
  * whoever is testing compaction.
12
12
  */
13
- export declare function SessionUsagePanel(): import("react/jsx-runtime").JSX.Element;
13
+ export declare function SessionUsagePanel(): import('react/jsx-runtime').JSX.Element;
14
14
  export default SessionUsagePanel;
@@ -42,5 +42,5 @@ export interface TurnAwareButtonProps extends Omit<ButtonProps, 'onClick'> {
42
42
  * The decision logic lives in `turnAwareButtonState.ts` (pure, unit-tested);
43
43
  * this component is the React/MUI shell around it.
44
44
  */
45
- export declare function TurnAwareButton({ onClick, waitingTitle, hideSpinner, disabled, children, endIcon, sx, ...buttonProps }: TurnAwareButtonProps): import("react/jsx-runtime").JSX.Element;
45
+ export declare function TurnAwareButton({ onClick, waitingTitle, hideSpinner, disabled, children, endIcon, sx, ...buttonProps }: TurnAwareButtonProps): import('react/jsx-runtime').JSX.Element;
46
46
  export default TurnAwareButton;
@@ -61,7 +61,7 @@ export interface DetachedRunTaskBoxProps extends DetachedRunStreamAuth {
61
61
  * stopped to ask, and the answer resumes it on the same id, so the box keeps reading it, slowly. A failed read is
62
62
  * shown quietly and retried — a box that goes blank because one request failed reads as the task having vanished.</p>
63
63
  */
64
- export declare function DetachedRunTaskBox({ runId, name, initialStatus, fetchRun, pollIntervalMs, waitingPollMs, renderConclusion, label, onSettled, baseUrl, fetchImpl, getToken, onUnauthorized, user, getUser, uiTools, partRenderers, transcriptProps, transcriptHeight, }: DetachedRunTaskBoxProps): import("react/jsx-runtime").JSX.Element;
64
+ export declare function DetachedRunTaskBox({ runId, name, initialStatus, fetchRun, pollIntervalMs, waitingPollMs, renderConclusion, label, onSettled, baseUrl, fetchImpl, getToken, onUnauthorized, user, getUser, uiTools, partRenderers, transcriptProps, transcriptHeight, }: DetachedRunTaskBoxProps): import('react/jsx-runtime').JSX.Element;
65
65
  type StepEntry = {
66
66
  item: TodoItem;
67
67
  } | {
@@ -85,5 +85,5 @@ export interface DetachedRunTranscriptProps extends UseDetachedRunTranscriptOpti
85
85
  *
86
86
  * <p>Give it a definite height, like `ChatPane`: the transcript scrolls inside it.</p>
87
87
  */
88
- export declare function DetachedRunTranscript(props: DetachedRunTranscriptProps): import("react/jsx-runtime").JSX.Element;
88
+ export declare function DetachedRunTranscript(props: DetachedRunTranscriptProps): import('react/jsx-runtime').JSX.Element;
89
89
  export default DetachedRunTranscript;
@@ -40,4 +40,4 @@ export interface MentionPickerPanelProps {
40
40
  */
41
41
  placement?: 'auto' | 'below';
42
42
  }
43
- export declare function MentionPickerPanel({ open, anchorEl, startAtTopOfEl, items, loading, onSelect, personLabel, locationLabel, hotelLabel, emptyLabel, slotLabel, maxHeightVh, bottomInset, placement, }: MentionPickerPanelProps): import("react/jsx-runtime").JSX.Element | null;
43
+ export declare function MentionPickerPanel({ open, anchorEl, startAtTopOfEl, items, loading, onSelect, personLabel, locationLabel, hotelLabel, emptyLabel, slotLabel, maxHeightVh, bottomInset, placement, }: MentionPickerPanelProps): import('react/jsx-runtime').JSX.Element | null;
@@ -12,4 +12,4 @@ export type PromptDateMarker = {
12
12
  export declare function PromptDateMarkers({ markers, forceTooltipText, }: {
13
13
  markers: PromptDateMarker[];
14
14
  forceTooltipText: string;
15
- }): import("react/jsx-runtime").JSX.Element;
15
+ }): import('react/jsx-runtime').JSX.Element;
@@ -14,4 +14,4 @@ export interface PromptGhostHintProps {
14
14
  /** Match the host textarea's font size so the phantom sits on the text baseline. */
15
15
  fontSize?: number;
16
16
  }
17
- export declare function PromptGhostHint({ kind, onAccept, compact, midSentence, fontSize }: PromptGhostHintProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function PromptGhostHint({ kind, onAccept, compact, midSentence, fontSize }: PromptGhostHintProps): import('react/jsx-runtime').JSX.Element;
@@ -72,5 +72,5 @@ export interface SharedSessionTranscriptProps extends UseSharedSessionTranscript
72
72
  * answer — with no prompt. Presentation props (`uiTools`, `partRenderers`, `showPersona`, …) pass through to
73
73
  * `<AiChat>`. Give it a definite height, like `ChatPane`.
74
74
  */
75
- export declare function SharedSessionTranscript(props: SharedSessionTranscriptProps): import("react/jsx-runtime").JSX.Element;
75
+ export declare function SharedSessionTranscript(props: SharedSessionTranscriptProps): import('react/jsx-runtime').JSX.Element;
76
76
  export default SharedSessionTranscript;
@@ -61,4 +61,4 @@ export interface TriggerDropdownProps<T extends DropdownItem = DropdownItem> {
61
61
  * the browser fires `pointercancel` the moment it claims the gesture for scrolling, which is the authoritative
62
62
  * "this was a scroll, not a tap" signal. The slop check is a belt-and-braces for a shaky finger.
63
63
  */
64
- export declare function TriggerDropdown<T extends DropdownItem = DropdownItem>({ items, highlight, onHighlight, onSelect, loading, personLabel, locationLabel, hotelLabel, touch, emptyLabel, keyHints, queryEcho, slotLabel, trailingNote, sx, }: TriggerDropdownProps<T>): import("react/jsx-runtime").JSX.Element;
64
+ export declare function TriggerDropdown<T extends DropdownItem = DropdownItem>({ items, highlight, onHighlight, onSelect, loading, personLabel, locationLabel, hotelLabel, touch, emptyLabel, keyHints, queryEcho, slotLabel, trailingNote, sx, }: TriggerDropdownProps<T>): import('react/jsx-runtime').JSX.Element;
@@ -5,7 +5,8 @@ export type HighlightToken = {
5
5
  /**
6
6
  * Splits `text` into a flat list of runs so the overlay can paint chip styling around `/cmd` / `@user` / `#date`
7
7
  * tokens while keeping surrounding text plain. Boundary rule mirrors the autocomplete trigger detection (trigger
8
- * char at line start or after whitespace), so a `/` inside `http://` or `@` inside an email stays plain.
8
+ * char at line start or after whitespace), so a `/` inside `http://` or `@` inside an email stays plain. Sentence
9
+ * punctuation right after a token ("@Brasília,") is painted plain, outside the chip.
9
10
  * `[bracketed placeholders]` (#447) pre-empt the whitespace walk — they may contain spaces and become their own
10
11
  * `placeholder` runs, which hosts paint as "fill me" chips (and may make tappable).
11
12
  */
@@ -0,0 +1 @@
1
+ export {};
package/dist/utils.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './src/utils/index'
1
+ export * from './src/utils/index.js'
2
2
  export {}
package/dist/utils.js CHANGED
@@ -2,7 +2,7 @@ var u = Object.defineProperty;
2
2
  var a = (e, t) => u(e, "name", { value: t, configurable: !0 });
3
3
  import { a as c, b as s } from "./environmentUtils-VZNTCzEE.js";
4
4
  import { A as k, D as U, g as x, c as M, d as R, e as V, f as G, i as W, r as H } from "./environmentUtils-VZNTCzEE.js";
5
- import { P as Y, S as Z, c as j, a as z, e as Q, b as $, f as q, i as J, d as X, p as ee, s as te, h as oe, j as ae, t as re, k as ie } from "./predictionRows-Damfwthh.js";
5
+ import { P as Y, S as Z, c as j, a as z, e as Q, b as $, f as q, i as J, d as X, p as ee, s as te, h as oe, j as ae, t as re, k as ie } from "./predictionRows-BkBwfvt4.js";
6
6
  import { a as se, b as le, c as ce, d as de, f as ue, p as me } from "./promptTriggers-xwMJ5gRj.js";
7
7
  const m = "https://agent.tripapi.com.br", p = "http://localagent:8000", S = /* @__PURE__ */ a((e) => new URLSearchParams(e.location.search).get("local") === "true" ? p : c() ?? m, "getAgentBaseUrl"), f = "https://storage.googleapis.com/aibi_artifacts_bucket", I = /* @__PURE__ */ a(() => f, "getArtifactsBaseUrl"), n = {}, h = (n == null ? void 0 : n.VITE_CADDY) == "true";
8
8
  function w() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aintela/chat",
3
- "version": "0.14.7",
3
+ "version": "0.14.9",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -140,7 +140,7 @@
140
140
  "recharts": "^3.10.1",
141
141
  "typescript": "~5.8.3",
142
142
  "vite": "^6.4.5",
143
- "vite-plugin-dts": "^4.5.0",
143
+ "vite-plugin-dts": "^5.1.2",
144
144
  "vitest": "^4.1.11"
145
145
  }
146
146
  }