wimui 0.65.2 → 0.66.0

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/ai.cjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./components/ai/PromptInput/PromptInput.cjs"),t=require("./components/ai/ThoughtProcess/ThoughtProcess.cjs"),n=require("./components/ai/AIResponseFeedback/AIResponseFeedback.cjs"),r=require("./components/ai/SourceCitation/SourceCitation.cjs"),i=require("./components/ai/CodeBlock/CodeBlock.cjs"),a=require("./components/ai/Terminal/Terminal.cjs"),o=require("./components/ai/AgentStatus/AgentStatus.cjs"),s=require("./components/ai/VoiceVisualizer/VoiceVisualizer.cjs"),c=require("./components/ai/ModelSelector/ModelSelector.cjs"),l=require("./components/ai/ThreadList/ThreadList.cjs"),u=require("./components/ai/UsageMeter/UsageMeter.cjs"),d=require("./components/ai/ChatUI/ChatUI.cjs"),f=require("./components/ai/ArtifactsOverlay/ArtifactsOverlay.cjs");exports.AIResponseFeedback=n.AIResponseFeedback,exports.AgentStatus=o.AgentStatus,exports.ArtifactsOverlay=f.ArtifactsOverlay,exports.ChatAvatar=d.ChatAvatar,exports.ChatContainer=d.ChatContainer,exports.ChatInput=d.ChatInput,exports.ChatInputArea=d.ChatInputArea,exports.ChatMessage=d.ChatMessage,exports.ChatMessageList=d.ChatMessageList,exports.CodeBlock=i.CodeBlock,exports.ConversationList=l.ConversationList,exports.ModelSelector=c.ModelSelector,exports.PromptInput=e.PromptInput,exports.SourceCitation=r.SourceCitation,exports.SourceCitationList=r.SourceCitationList,exports.Terminal=a.Terminal,exports.ThoughtProcess=t.ThoughtProcess,exports.ThoughtStep=t.ThoughtStep,exports.ThreadList=l.ThreadList,exports.TokenCounter=u.TokenCounter,exports.UsageMeter=u.UsageMeter,exports.VoiceVisualizer=s.VoiceVisualizer;
2
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./components/ai/PromptInput/PromptInput.cjs"),t=require("./components/ai/ThoughtProcess/ThoughtProcess.cjs"),n=require("./components/ai/AIResponseFeedback/AIResponseFeedback.cjs"),r=require("./components/ai/SourceCitation/SourceCitation.cjs"),i=require("./components/ai/CodeBlock/CodeBlock.cjs"),a=require("./components/ai/Terminal/Terminal.cjs"),o=require("./components/ai/AgentStatus/AgentStatus.cjs"),s=require("./components/ai/VoiceVisualizer/VoiceVisualizer.cjs"),c=require("./components/ai/ModelSelector/ModelSelector.cjs"),l=require("./components/ai/ThreadList/ThreadList.cjs"),u=require("./components/ai/UsageMeter/UsageMeter.cjs"),d=require("./components/ai/ChatUI/ChatUI.cjs"),f=require("./components/ai/ArtifactsOverlay/ArtifactsOverlay.cjs");exports.AIResponseFeedback=n.AIResponseFeedback,exports.AgentStatus=o.AgentStatus,exports.ArtifactsOverlay=f.ArtifactsOverlay,exports.ChatAvatar=d.ChatAvatar,exports.ChatContainer=d.ChatContainer,exports.ChatInput=d.ChatInput,exports.ChatInputArea=d.ChatInputArea,exports.ChatMessage=d.ChatMessage,exports.ChatMessageList=d.ChatMessageList,exports.ChatSystemMessage=d.ChatSystemMessage,exports.ChatToolCall=d.ChatToolCall,exports.CodeBlock=i.CodeBlock,exports.ConversationList=l.ConversationList,exports.ModelSelector=c.ModelSelector,exports.PromptInput=e.PromptInput,exports.SourceCitation=r.SourceCitation,exports.SourceCitationList=r.SourceCitationList,exports.Terminal=a.Terminal,exports.ThoughtProcess=t.ThoughtProcess,exports.ThoughtStep=t.ThoughtStep,exports.ThreadList=l.ThreadList,exports.TokenCounter=u.TokenCounter,exports.UsageMeter=u.UsageMeter,exports.VoiceVisualizer=s.VoiceVisualizer;
package/dist/ai.js CHANGED
@@ -10,6 +10,6 @@ import { VoiceVisualizer as l } from "./components/ai/VoiceVisualizer/VoiceVisua
10
10
  import { ModelSelector as u } from "./components/ai/ModelSelector/ModelSelector.js";
11
11
  import { ConversationList as d, ThreadList as f } from "./components/ai/ThreadList/ThreadList.js";
12
12
  import { TokenCounter as p, UsageMeter as m } from "./components/ai/UsageMeter/UsageMeter.js";
13
- import { ChatAvatar as h, ChatContainer as g, ChatInput as _, ChatInputArea as v, ChatMessage as y, ChatMessageList as b } from "./components/ai/ChatUI/ChatUI.js";
14
- import { ArtifactsOverlay as x } from "./components/ai/ArtifactsOverlay/ArtifactsOverlay.js";
15
- export { r as AIResponseFeedback, c as AgentStatus, x as ArtifactsOverlay, h as ChatAvatar, g as ChatContainer, _ as ChatInput, v as ChatInputArea, y as ChatMessage, b as ChatMessageList, o as CodeBlock, d as ConversationList, u as ModelSelector, e as PromptInput, i as SourceCitation, a as SourceCitationList, s as Terminal, t as ThoughtProcess, n as ThoughtStep, f as ThreadList, p as TokenCounter, m as UsageMeter, l as VoiceVisualizer };
13
+ import { ChatAvatar as h, ChatContainer as g, ChatInput as _, ChatInputArea as v, ChatMessage as y, ChatMessageList as b, ChatSystemMessage as x, ChatToolCall as S } from "./components/ai/ChatUI/ChatUI.js";
14
+ import { ArtifactsOverlay as C } from "./components/ai/ArtifactsOverlay/ArtifactsOverlay.js";
15
+ export { r as AIResponseFeedback, c as AgentStatus, C as ArtifactsOverlay, h as ChatAvatar, g as ChatContainer, _ as ChatInput, v as ChatInputArea, y as ChatMessage, b as ChatMessageList, x as ChatSystemMessage, S as ChatToolCall, o as CodeBlock, d as ConversationList, u as ModelSelector, e as PromptInput, i as SourceCitation, a as SourceCitationList, s as Terminal, t as ThoughtProcess, n as ThoughtStep, f as ThreadList, p as TokenCounter, m as UsageMeter, l as VoiceVisualizer };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../i18n/useWimTranslation.cjs"),n=require("../../../i18n/generated/common.cjs"),r=require("../../_internal/composeEventHandlers.cjs"),i=require("../../../icon/paperclip.cjs"),a=require("../../../icon/send.cjs"),o=require("../../media/Icon/Icon.cjs"),s=require("../../../hooks/useAutoResize.cjs"),c=require("./chat-ui.module.cjs");let l=require("react");l=e.__toESM(l,1);let u=require("classnames");u=e.__toESM(u,1);let d=require("react/jsx-runtime");var f=({children:e,className:t,...n})=>(0,d.jsx)(`div`,{className:(0,u.default)(`wim-chat-ui`,c.default.container,t),...n,children:e}),p=(0,l.forwardRef)(({children:e,className:t,...n},r)=>(0,d.jsx)(`div`,{ref:r,className:(0,u.default)(c.default.messageList,t),...n,children:e}));p.displayName=`ChatMessageList`;var m=({children:e,position:t=`left`,variant:n=`default`,showAvatar:r=!0,avatar:i,timestamp:a,senderName:o,isTyping:s=!1,actions:l,actionsVisible:f=!0,className:p,...m})=>(0,d.jsxs)(`div`,{className:(0,u.default)(c.default.message,c.default[t],c.default[n],{[c.default.hasAvatar]:r},p),...m,children:[r&&t===`left`&&(0,d.jsx)(`div`,{className:c.default.messageAvatar,children:i}),(0,d.jsxs)(`div`,{className:c.default.contentWrapper,children:[o&&(0,d.jsx)(`div`,{className:c.default.sender,children:o}),(0,d.jsx)(`div`,{className:(0,u.default)(c.default.bubble,{[c.default.typing]:s}),children:s?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`span`,{className:c.default.typingDot}),(0,d.jsx)(`span`,{className:c.default.typingDot}),(0,d.jsx)(`span`,{className:c.default.typingDot})]}):e}),l&&(0,d.jsx)(`div`,{className:(0,u.default)(c.default.actions,{[c.default.hoverOnly]:!f}),children:l}),a&&(0,d.jsx)(`div`,{className:c.default.timestamp,children:a})]}),r&&t===`right`&&(0,d.jsx)(`div`,{className:c.default.messageAvatar,children:i})]}),h=({children:e,className:t,...n})=>(0,d.jsx)(`div`,{className:(0,u.default)(c.default.inputArea,t),...n,children:e}),g=(0,l.forwardRef)(({onSend:e,onAttach:u,sendButtonLabel:f,sendButtonIcon:p=a.default,showSendButton:m=!0,showAttach:g=!1,maxRows:_=8,className:v,...y},b)=>{let{t:x}=t.useWimTranslation(n.commonNs),[S,C]=l.default.useState(``),w=y.value!==void 0,T=w?y.value:S,E=s.useAutoResize(T,_);l.default.useImperativeHandle(b,()=>E.current);let D=!!f,O=()=>{e&&(e(T),w||C(``))},k=e=>{w||C(e.target.value),y.onChange?.(e)},A=e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),O())};return(0,d.jsx)(h,{className:v,children:(0,d.jsxs)(`div`,{className:c.default.fieldContainer,children:[g&&(0,d.jsx)(`button`,{type:`button`,className:c.default.attachButton,onClick:u,"aria-label":x(`a11y.attach_file`),children:(0,d.jsx)(o.Icon,{component:i.default,size:`sm`})}),(0,d.jsx)(`textarea`,{ref:E,className:c.default.field,value:T,placeholder:y.placeholder||`Type a message...`,rows:1,...y,onChange:k,onKeyDown:r.composeEventHandlers(y.onKeyDown,A)}),m&&(0,d.jsx)(`button`,{className:c.default.sendButton,onClick:O,disabled:!T.trim(),type:`button`,"aria-label":f||x(`chat.send`),children:D?f:(0,d.jsx)(o.Icon,{component:p,size:`sm`})})]})})});g.displayName=`ChatInput`;var _=({src:e,alt:r,fallback:i,size:a=`md`,tone:o=`s18`,className:s,...f})=>{let[p,m]=l.default.useState(!1),{t:h}=t.useWimTranslation(n.commonNs),g=r||h(`chat.user_avatar`);return(0,d.jsx)(`div`,{className:(0,u.default)(c.default.avatar,c.default[a],c.default[o],s),...f,children:e&&!p?(0,d.jsx)(`img`,{src:e,alt:g,className:c.default.image,onError:()=>m(!0)}):(0,d.jsx)(`div`,{className:c.default.fallback,children:i||g.charAt(0).toUpperCase()})})};exports.ChatAvatar=_,exports.ChatContainer=f,exports.ChatInput=g,exports.ChatInputArea=h,exports.ChatMessage=m,exports.ChatMessageList=p;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../i18n/useWimTranslation.cjs"),n=require("../../../i18n/generated/common.cjs"),r=require("../../_internal/composeEventHandlers.cjs"),i=require("../../../icon/alert-circle.cjs"),a=require("../../../icon/alert-triangle.cjs"),o=require("../../../icon/check.cjs"),s=require("../../../icon/chevron-right.cjs"),c=require("../../../icon/hourglass.cjs"),l=require("../../../icon/paperclip.cjs"),u=require("../../../icon/send.cjs"),d=require("../../media/Icon/Icon.cjs"),f=require("../../../i18n/generated/form.cjs"),p=require("../../../hooks/useAutoResize.cjs"),m=require("./chat-ui.module.cjs");let h=require("react");h=e.__toESM(h,1);let g=require("classnames");g=e.__toESM(g,1);let _=require("react/jsx-runtime");var v=({children:e,className:t,...n})=>(0,_.jsx)(`div`,{className:(0,g.default)(`wim-chat-ui`,m.default.container,t),...n,children:e}),y=(0,h.forwardRef)(({children:e,className:t,...n},r)=>(0,_.jsx)(`div`,{ref:r,className:(0,g.default)(m.default.messageList,t),...n,children:e}));y.displayName=`ChatMessageList`;var b=({children:e,position:t=`left`,variant:n=`default`,showAvatar:r=!0,avatar:i,timestamp:a,metadata:o,senderName:s,isTyping:c=!1,actions:l,actionsVisible:u=!0,className:d,...f})=>(0,_.jsxs)(`div`,{className:(0,g.default)(m.default.message,m.default[t],m.default[n],{[m.default.hasAvatar]:r},d),...f,children:[r&&t===`left`&&(0,_.jsx)(`div`,{className:m.default.messageAvatar,children:i}),(0,_.jsxs)(`div`,{className:m.default.contentWrapper,children:[s&&(0,_.jsx)(`div`,{className:m.default.sender,children:s}),(0,_.jsx)(`div`,{className:(0,g.default)(m.default.bubble,{[m.default.typing]:c}),children:c?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`span`,{className:m.default.typingDot}),(0,_.jsx)(`span`,{className:m.default.typingDot}),(0,_.jsx)(`span`,{className:m.default.typingDot})]}):e}),l&&(0,_.jsx)(`div`,{className:(0,g.default)(m.default.actions,{[m.default.hoverOnly]:!u}),children:l}),(a||o)&&(0,_.jsxs)(`div`,{className:m.default.timestamp,children:[a,a&&o&&` · `,o]})]}),r&&t===`right`&&(0,_.jsx)(`div`,{className:m.default.messageAvatar,children:i})]}),x={waiting:c.default,done:o.default,error:i.default},S=({name:e,status:r=`done`,summary:i,input:a,output:o,defaultExpanded:c=!1,className:l,...u})=>{let{t:p}=t.useWimTranslation([n.commonNs,f.formNs]),[v,y]=h.default.useState(c),b=(0,h.useId)(),S=a!=null||o!=null,C=r===`running`?null:x[r],w=(0,_.jsxs)(_.Fragment,{children:[S&&(0,_.jsx)(d.Icon,{component:s.default,size:`sm`,className:(0,g.default)(m.default.toolChevron,v&&m.default.expanded),"aria-hidden":`true`}),(0,_.jsx)(`code`,{className:m.default.toolName,children:e}),i&&(0,_.jsx)(`span`,{className:m.default.toolSummary,children:i}),(0,_.jsxs)(`span`,{className:(0,g.default)(m.default.toolStatus,m.default[r]),children:[C?(0,_.jsx)(d.Icon,{component:C,size:`xs`,"aria-hidden":`true`}):(0,_.jsx)(`span`,{className:m.default.toolSpinner,"aria-hidden":`true`}),p(`agent_status.${r}`)]})]});return(0,_.jsxs)(`div`,{className:(0,g.default)(m.default.toolCall,l),"aria-busy":r===`running`||void 0,...u,children:[S?(0,_.jsx)(`button`,{type:`button`,className:m.default.toolHeader,"aria-expanded":v,"aria-controls":b,onClick:()=>y(e=>!e),children:w}):(0,_.jsx)(`div`,{className:m.default.toolHeader,children:w}),S&&(0,_.jsxs)(`div`,{id:b,className:m.default.toolBody,hidden:!v,children:[a!=null&&(0,_.jsxs)(`div`,{className:m.default.toolSection,children:[(0,_.jsx)(`div`,{className:m.default.toolLabel,children:p(`chat.tool_input`)}),typeof a==`string`?(0,_.jsx)(`pre`,{className:m.default.toolCode,tabIndex:0,children:a}):a]}),o!=null&&(0,_.jsxs)(`div`,{className:m.default.toolSection,children:[(0,_.jsx)(`div`,{className:m.default.toolLabel,children:p(`chat.tool_output`)}),typeof o==`string`?(0,_.jsx)(`pre`,{className:m.default.toolCode,tabIndex:0,children:o}):o]})]})]})},C={warning:a.default,danger:i.default},w=({children:e,intent:t=`default`,action:n,className:r,...i})=>{let a=C[t];return(0,_.jsxs)(`div`,{className:(0,g.default)(m.default.system,m.default[t],r),...i,children:[(0,_.jsxs)(`span`,{className:m.default.systemText,children:[a&&(0,_.jsx)(d.Icon,{component:a,size:`xs`,"aria-hidden":`true`}),(0,_.jsx)(`span`,{children:e})]}),n&&(0,_.jsx)(`span`,{className:m.default.systemAction,children:n})]})},T=({children:e,className:t,...n})=>(0,_.jsx)(`div`,{className:(0,g.default)(m.default.inputArea,t),...n,children:e}),E=(0,h.forwardRef)(({onSend:e,onAttach:i,sendButtonLabel:a,sendButtonIcon:o=u.default,showSendButton:s=!0,showAttach:c=!1,maxRows:f=8,className:g,...v},y)=>{let{t:b}=t.useWimTranslation(n.commonNs),[x,S]=h.default.useState(``),C=v.value!==void 0,w=C?v.value:x,E=p.useAutoResize(w,f);h.default.useImperativeHandle(y,()=>E.current);let D=!!a,O=()=>{e&&(e(w),C||S(``))},k=e=>{C||S(e.target.value),v.onChange?.(e)},A=e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),O())};return(0,_.jsx)(T,{className:g,children:(0,_.jsxs)(`div`,{className:m.default.fieldContainer,children:[c&&(0,_.jsx)(`button`,{type:`button`,className:m.default.attachButton,onClick:i,"aria-label":b(`a11y.attach_file`),children:(0,_.jsx)(d.Icon,{component:l.default,size:`sm`})}),(0,_.jsx)(`textarea`,{ref:E,className:m.default.field,value:w,placeholder:v.placeholder||`Type a message...`,rows:1,...v,onChange:k,onKeyDown:r.composeEventHandlers(v.onKeyDown,A)}),s&&(0,_.jsx)(`button`,{className:m.default.sendButton,onClick:O,disabled:!w.trim(),type:`button`,"aria-label":a||b(`chat.send`),children:D?a:(0,_.jsx)(d.Icon,{component:o,size:`sm`})})]})})});E.displayName=`ChatInput`;var D=({src:e,alt:r,fallback:i,size:a=`md`,tone:o=`s18`,className:s,...c})=>{let[l,u]=h.default.useState(!1),{t:d}=t.useWimTranslation(n.commonNs),f=r||d(`chat.user_avatar`);return(0,_.jsx)(`div`,{className:(0,g.default)(m.default.avatar,m.default[a],m.default[o],s),...c,children:e&&!l?(0,_.jsx)(`img`,{src:e,alt:f,className:m.default.image,onError:()=>u(!0)}):(0,_.jsx)(`div`,{className:m.default.fallback,children:i||f.charAt(0).toUpperCase()})})};exports.ChatAvatar=D,exports.ChatContainer=v,exports.ChatInput=E,exports.ChatInputArea=T,exports.ChatMessage=b,exports.ChatMessageList=y,exports.ChatSystemMessage=w,exports.ChatToolCall=S;
@@ -33,6 +33,11 @@ export interface ChatMessageProps extends React.ComponentPropsWithoutRef<"div">
33
33
  avatar?: React.ReactNode;
34
34
  /** Timestamp text shown below the message */
35
35
  timestamp?: string;
36
+ /**
37
+ * Details about how the message was produced (model, token count, latency),
38
+ * shown on the same line as `timestamp` in the same small, secondary text.
39
+ */
40
+ metadata?: React.ReactNode;
36
41
  /** Sender name shown above the message */
37
42
  senderName?: string;
38
43
  /** Whether to show the typing indicator instead of content */
@@ -56,7 +61,84 @@ export interface ChatMessageProps extends React.ComponentPropsWithoutRef<"div">
56
61
  /** Additional class names */
57
62
  className?: string;
58
63
  }
59
- export declare const ChatMessage: ({ children, position, variant, showAvatar, avatar, timestamp, senderName, isTyping, actions, actionsVisible, className, ...props }: ChatMessageProps) => React.ReactElement;
64
+ export declare const ChatMessage: ({ children, position, variant, showAvatar, avatar, timestamp, metadata, senderName, isTyping, actions, actionsVisible, className, ...props }: ChatMessageProps) => React.ReactElement;
65
+ /**
66
+ * 状態の語は `AgentStatus` と同じ(T363)。ツールの呼び出しに「考え中」「待機」は無いので外す。
67
+ * `Extract<AgentStatusValue, …>` と書くと、docgen と prop の API スナップショットが型の式を
68
+ * そのまま記録して、値の一覧が出ない。同じファイルに値を書き、部分集合であることは下の型で保つ。
69
+ */
70
+ export type ChatToolCallStatus = "waiting" | "running" | "done" | "error";
71
+ export interface ChatToolCallProps extends Omit<React.ComponentPropsWithoutRef<"div">, "children"> {
72
+ /** Name of the tool that was called, shown in a monospace face (e.g. `search_incidents`) */
73
+ name: string;
74
+ /**
75
+ * State of the call. Uses the same words as `AgentStatus`; `waiting` is a call
76
+ * that is waiting on something before it runs, such as the user's approval.
77
+ * @default "done"
78
+ */
79
+ status?: ChatToolCallStatus;
80
+ /** One-line summary shown next to the name (e.g. "6 incidents found") */
81
+ summary?: React.ReactNode;
82
+ /**
83
+ * Arguments the tool was called with. Shown when expanded. A string is shown
84
+ * as preformatted monospace text; pass a `CodeBlock` for highlighting or a copy
85
+ * button (it brings its own frame inside this one).
86
+ */
87
+ input?: React.ReactNode;
88
+ /** What the tool returned, or the error it failed with. Shown when expanded. Strings are shown as for `input`. */
89
+ output?: React.ReactNode;
90
+ /** Whether `input` and `output` are shown on first render. */
91
+ defaultExpanded?: boolean;
92
+ /** Additional class names */
93
+ className?: string;
94
+ }
95
+ /**
96
+ * One call the assistant made to a tool, with its arguments and result.
97
+ *
98
+ * Where it sits next to its neighbours: `ThoughtProcess` is the model's own
99
+ * reasoning written as steps, `AgentStatus` is the whole agent's state on one
100
+ * line, and `ChatToolCall` is one action against the outside world and what
101
+ * came back. Place it inside a `ChatMessage` or directly in `ChatMessageList`.
102
+ *
103
+ * The status is part of the toggle's name ("search_incidents … Done"). A change
104
+ * of status is not announced: it is not something the user did, and a run of
105
+ * tool calls would keep talking over the conversation.
106
+ *
107
+ * Composition Contract:
108
+ * - Managed by: App consumption
109
+ * - Scroll lock: No
110
+ */
111
+ export declare const ChatToolCall: ({ name, status, summary, input, output, defaultExpanded, className, ...props }: ChatToolCallProps) => React.ReactElement;
112
+ /** `FeedbackIntent` の部分集合(上の `ChatToolCallStatus` と同じ理由で、値を書いて型で保つ)。 */
113
+ export type ChatSystemMessageIntent = "default" | "warning" | "danger";
114
+ export interface ChatSystemMessageProps extends React.ComponentPropsWithoutRef<"div"> {
115
+ /** The notice (e.g. "Switched to a faster model", "No answer arrived") */
116
+ children: React.ReactNode;
117
+ /**
118
+ * `warning` and `danger` add an icon as well as colour, so the difference does
119
+ * not rest on colour alone.
120
+ * @default "default"
121
+ */
122
+ intent?: ChatSystemMessageIntent;
123
+ /** An action that belongs next to the notice, such as a retry button */
124
+ action?: React.ReactNode;
125
+ /** Additional class names */
126
+ className?: string;
127
+ }
128
+ /**
129
+ * A notice in the transcript that nobody said: the conversation started, the
130
+ * model changed, an answer never arrived. A `ChatMessage` would put it in a
131
+ * speech bubble with a sender, which is wrong for something nobody said.
132
+ *
133
+ * Place it in `ChatMessageList` between messages so it shares the list's
134
+ * spacing. It does not announce itself; when the notice is the result of
135
+ * something the user did, announce it from the app.
136
+ *
137
+ * Composition Contract:
138
+ * - Managed by: App consumption
139
+ * - Scroll lock: No
140
+ */
141
+ export declare const ChatSystemMessage: ({ children, intent, action, className, ...props }: ChatSystemMessageProps) => React.ReactElement;
60
142
  export interface ChatInputAreaProps extends React.ComponentPropsWithoutRef<"div"> {
61
143
  children: React.ReactNode;
62
144
  className?: string;
@@ -2,111 +2,214 @@
2
2
  import { useWimTranslation as e } from "../../../i18n/useWimTranslation.js";
3
3
  import { commonNs as t } from "../../../i18n/generated/common.js";
4
4
  import { composeEventHandlers as n } from "../../_internal/composeEventHandlers.js";
5
- import r from "../../../icon/paperclip.js";
6
- import i from "../../../icon/send.js";
7
- import { Icon as a } from "../../media/Icon/Icon.js";
8
- import { useAutoResize as o } from "../../../hooks/useAutoResize.js";
9
- import s from "./chat-ui.module.js";
10
- import c, { forwardRef as l } from "react";
11
- import u from "classnames";
12
- import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
5
+ import r from "../../../icon/alert-circle.js";
6
+ import i from "../../../icon/alert-triangle.js";
7
+ import a from "../../../icon/check.js";
8
+ import o from "../../../icon/chevron-right.js";
9
+ import s from "../../../icon/hourglass.js";
10
+ import c from "../../../icon/paperclip.js";
11
+ import l from "../../../icon/send.js";
12
+ import { Icon as u } from "../../media/Icon/Icon.js";
13
+ import { formNs as d } from "../../../i18n/generated/form.js";
14
+ import { useAutoResize as f } from "../../../hooks/useAutoResize.js";
15
+ import p from "./chat-ui.module.js";
16
+ import m, { forwardRef as h, useId as g } from "react";
17
+ import _ from "classnames";
18
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
13
19
  //#region src/components/ai/ChatUI/ChatUI.tsx
14
- var m = ({ children: e, className: t, ...n }) => /* @__PURE__ */ f("div", {
15
- className: u("wim-chat-ui", s.container, t),
20
+ var x = ({ children: e, className: t, ...n }) => /* @__PURE__ */ y("div", {
21
+ className: _("wim-chat-ui", p.container, t),
16
22
  ...n,
17
23
  children: e
18
- }), h = l(({ children: e, className: t, ...n }, r) => /* @__PURE__ */ f("div", {
24
+ }), S = h(({ children: e, className: t, ...n }, r) => /* @__PURE__ */ y("div", {
19
25
  ref: r,
20
- className: u(s.messageList, t),
26
+ className: _(p.messageList, t),
21
27
  ...n,
22
28
  children: e
23
29
  }));
24
- h.displayName = "ChatMessageList";
25
- var g = ({ children: e, position: t = "left", variant: n = "default", showAvatar: r = !0, avatar: i, timestamp: a, senderName: o, isTyping: c = !1, actions: l, actionsVisible: m = !0, className: h, ...g }) => /* @__PURE__ */ p("div", {
26
- className: u(s.message, s[t], s[n], { [s.hasAvatar]: r }, h),
27
- ...g,
30
+ S.displayName = "ChatMessageList";
31
+ var C = ({ children: e, position: t = "left", variant: n = "default", showAvatar: r = !0, avatar: i, timestamp: a, metadata: o, senderName: s, isTyping: c = !1, actions: l, actionsVisible: u = !0, className: d, ...f }) => /* @__PURE__ */ b("div", {
32
+ className: _(p.message, p[t], p[n], { [p.hasAvatar]: r }, d),
33
+ ...f,
28
34
  children: [
29
- r && t === "left" && /* @__PURE__ */ f("div", {
30
- className: s.messageAvatar,
35
+ r && t === "left" && /* @__PURE__ */ y("div", {
36
+ className: p.messageAvatar,
31
37
  children: i
32
38
  }),
33
- /* @__PURE__ */ p("div", {
34
- className: s.contentWrapper,
39
+ /* @__PURE__ */ b("div", {
40
+ className: p.contentWrapper,
35
41
  children: [
36
- o && /* @__PURE__ */ f("div", {
37
- className: s.sender,
38
- children: o
42
+ s && /* @__PURE__ */ y("div", {
43
+ className: p.sender,
44
+ children: s
39
45
  }),
40
- /* @__PURE__ */ f("div", {
41
- className: u(s.bubble, { [s.typing]: c }),
42
- children: c ? /* @__PURE__ */ p(d, { children: [
43
- /* @__PURE__ */ f("span", { className: s.typingDot }),
44
- /* @__PURE__ */ f("span", { className: s.typingDot }),
45
- /* @__PURE__ */ f("span", { className: s.typingDot })
46
+ /* @__PURE__ */ y("div", {
47
+ className: _(p.bubble, { [p.typing]: c }),
48
+ children: c ? /* @__PURE__ */ b(v, { children: [
49
+ /* @__PURE__ */ y("span", { className: p.typingDot }),
50
+ /* @__PURE__ */ y("span", { className: p.typingDot }),
51
+ /* @__PURE__ */ y("span", { className: p.typingDot })
46
52
  ] }) : e
47
53
  }),
48
- l && /* @__PURE__ */ f("div", {
49
- className: u(s.actions, { [s.hoverOnly]: !m }),
54
+ l && /* @__PURE__ */ y("div", {
55
+ className: _(p.actions, { [p.hoverOnly]: !u }),
50
56
  children: l
51
57
  }),
52
- a && /* @__PURE__ */ f("div", {
53
- className: s.timestamp,
54
- children: a
58
+ (a || o) && /* @__PURE__ */ b("div", {
59
+ className: p.timestamp,
60
+ children: [
61
+ a,
62
+ a && o && " · ",
63
+ o
64
+ ]
55
65
  })
56
66
  ]
57
67
  }),
58
- r && t === "right" && /* @__PURE__ */ f("div", {
59
- className: s.messageAvatar,
68
+ r && t === "right" && /* @__PURE__ */ y("div", {
69
+ className: p.messageAvatar,
60
70
  children: i
61
71
  })
62
72
  ]
63
- }), _ = ({ children: e, className: t, ...n }) => /* @__PURE__ */ f("div", {
64
- className: u(s.inputArea, t),
73
+ }), w = {
74
+ waiting: s,
75
+ done: a,
76
+ error: r
77
+ }, T = ({ name: n, status: r = "done", summary: i, input: a, output: s, defaultExpanded: c = !1, className: l, ...f }) => {
78
+ let { t: h } = e([t, d]), [x, S] = m.useState(c), C = g(), T = a != null || s != null, E = r === "running" ? null : w[r], D = /* @__PURE__ */ b(v, { children: [
79
+ T && /* @__PURE__ */ y(u, {
80
+ component: o,
81
+ size: "sm",
82
+ className: _(p.toolChevron, x && p.expanded),
83
+ "aria-hidden": "true"
84
+ }),
85
+ /* @__PURE__ */ y("code", {
86
+ className: p.toolName,
87
+ children: n
88
+ }),
89
+ i && /* @__PURE__ */ y("span", {
90
+ className: p.toolSummary,
91
+ children: i
92
+ }),
93
+ /* @__PURE__ */ b("span", {
94
+ className: _(p.toolStatus, p[r]),
95
+ children: [E ? /* @__PURE__ */ y(u, {
96
+ component: E,
97
+ size: "xs",
98
+ "aria-hidden": "true"
99
+ }) : /* @__PURE__ */ y("span", {
100
+ className: p.toolSpinner,
101
+ "aria-hidden": "true"
102
+ }), h(`agent_status.${r}`)]
103
+ })
104
+ ] });
105
+ return /* @__PURE__ */ b("div", {
106
+ className: _(p.toolCall, l),
107
+ "aria-busy": r === "running" || void 0,
108
+ ...f,
109
+ children: [T ? /* @__PURE__ */ y("button", {
110
+ type: "button",
111
+ className: p.toolHeader,
112
+ "aria-expanded": x,
113
+ "aria-controls": C,
114
+ onClick: () => S((e) => !e),
115
+ children: D
116
+ }) : /* @__PURE__ */ y("div", {
117
+ className: p.toolHeader,
118
+ children: D
119
+ }), T && /* @__PURE__ */ b("div", {
120
+ id: C,
121
+ className: p.toolBody,
122
+ hidden: !x,
123
+ children: [a != null && /* @__PURE__ */ b("div", {
124
+ className: p.toolSection,
125
+ children: [/* @__PURE__ */ y("div", {
126
+ className: p.toolLabel,
127
+ children: h("chat.tool_input")
128
+ }), typeof a == "string" ? /* @__PURE__ */ y("pre", {
129
+ className: p.toolCode,
130
+ tabIndex: 0,
131
+ children: a
132
+ }) : a]
133
+ }), s != null && /* @__PURE__ */ b("div", {
134
+ className: p.toolSection,
135
+ children: [/* @__PURE__ */ y("div", {
136
+ className: p.toolLabel,
137
+ children: h("chat.tool_output")
138
+ }), typeof s == "string" ? /* @__PURE__ */ y("pre", {
139
+ className: p.toolCode,
140
+ tabIndex: 0,
141
+ children: s
142
+ }) : s]
143
+ })]
144
+ })]
145
+ });
146
+ }, E = {
147
+ warning: i,
148
+ danger: r
149
+ }, D = ({ children: e, intent: t = "default", action: n, className: r, ...i }) => {
150
+ let a = E[t];
151
+ return /* @__PURE__ */ b("div", {
152
+ className: _(p.system, p[t], r),
153
+ ...i,
154
+ children: [/* @__PURE__ */ b("span", {
155
+ className: p.systemText,
156
+ children: [a && /* @__PURE__ */ y(u, {
157
+ component: a,
158
+ size: "xs",
159
+ "aria-hidden": "true"
160
+ }), /* @__PURE__ */ y("span", { children: e })]
161
+ }), n && /* @__PURE__ */ y("span", {
162
+ className: p.systemAction,
163
+ children: n
164
+ })]
165
+ });
166
+ }, O = ({ children: e, className: t, ...n }) => /* @__PURE__ */ y("div", {
167
+ className: _(p.inputArea, t),
65
168
  ...n,
66
169
  children: e
67
- }), v = l(({ onSend: l, onAttach: u, sendButtonLabel: d, sendButtonIcon: m = i, showSendButton: h = !0, showAttach: g = !1, maxRows: v = 8, className: y, ...b }, x) => {
68
- let { t: S } = e(t), [C, w] = c.useState(""), T = b.value !== void 0, E = T ? b.value : C, D = o(E, v);
69
- c.useImperativeHandle(x, () => D.current);
70
- let O = !!d, k = () => {
71
- l && (l(E), T || w(""));
170
+ }), k = h(({ onSend: r, onAttach: i, sendButtonLabel: a, sendButtonIcon: o = l, showSendButton: s = !0, showAttach: d = !1, maxRows: h = 8, className: g, ..._ }, v) => {
171
+ let { t: x } = e(t), [S, C] = m.useState(""), w = _.value !== void 0, T = w ? _.value : S, E = f(T, h);
172
+ m.useImperativeHandle(v, () => E.current);
173
+ let D = !!a, k = () => {
174
+ r && (r(T), w || C(""));
72
175
  }, A = (e) => {
73
- T || w(e.target.value), b.onChange?.(e);
176
+ w || C(e.target.value), _.onChange?.(e);
74
177
  }, j = (e) => {
75
178
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), k());
76
179
  };
77
- return /* @__PURE__ */ f(_, {
78
- className: y,
79
- children: /* @__PURE__ */ p("div", {
80
- className: s.fieldContainer,
180
+ return /* @__PURE__ */ y(O, {
181
+ className: g,
182
+ children: /* @__PURE__ */ b("div", {
183
+ className: p.fieldContainer,
81
184
  children: [
82
- g && /* @__PURE__ */ f("button", {
185
+ d && /* @__PURE__ */ y("button", {
83
186
  type: "button",
84
- className: s.attachButton,
85
- onClick: u,
86
- "aria-label": S("a11y.attach_file"),
87
- children: /* @__PURE__ */ f(a, {
88
- component: r,
187
+ className: p.attachButton,
188
+ onClick: i,
189
+ "aria-label": x("a11y.attach_file"),
190
+ children: /* @__PURE__ */ y(u, {
191
+ component: c,
89
192
  size: "sm"
90
193
  })
91
194
  }),
92
- /* @__PURE__ */ f("textarea", {
93
- ref: D,
94
- className: s.field,
95
- value: E,
96
- placeholder: b.placeholder || "Type a message...",
195
+ /* @__PURE__ */ y("textarea", {
196
+ ref: E,
197
+ className: p.field,
198
+ value: T,
199
+ placeholder: _.placeholder || "Type a message...",
97
200
  rows: 1,
98
- ...b,
201
+ ..._,
99
202
  onChange: A,
100
- onKeyDown: n(b.onKeyDown, j)
203
+ onKeyDown: n(_.onKeyDown, j)
101
204
  }),
102
- h && /* @__PURE__ */ f("button", {
103
- className: s.sendButton,
205
+ s && /* @__PURE__ */ y("button", {
206
+ className: p.sendButton,
104
207
  onClick: k,
105
- disabled: !E.trim(),
208
+ disabled: !T.trim(),
106
209
  type: "button",
107
- "aria-label": d || S("chat.send"),
108
- children: O ? d : /* @__PURE__ */ f(a, {
109
- component: m,
210
+ "aria-label": a || x("chat.send"),
211
+ children: D ? a : /* @__PURE__ */ y(u, {
212
+ component: o,
110
213
  size: "sm"
111
214
  })
112
215
  })
@@ -114,22 +217,22 @@ var g = ({ children: e, position: t = "left", variant: n = "default", showAvatar
114
217
  })
115
218
  });
116
219
  });
117
- v.displayName = "ChatInput";
118
- var y = ({ src: n, alt: r, fallback: i, size: a = "md", tone: o = "s18", className: l, ...d }) => {
119
- let [p, m] = c.useState(!1), { t: h } = e(t), g = r || h("chat.user_avatar");
120
- return /* @__PURE__ */ f("div", {
121
- className: u(s.avatar, s[a], s[o], l),
122
- ...d,
123
- children: n && !p ? /* @__PURE__ */ f("img", {
220
+ k.displayName = "ChatInput";
221
+ var A = ({ src: n, alt: r, fallback: i, size: a = "md", tone: o = "s18", className: s, ...c }) => {
222
+ let [l, u] = m.useState(!1), { t: d } = e(t), f = r || d("chat.user_avatar");
223
+ return /* @__PURE__ */ y("div", {
224
+ className: _(p.avatar, p[a], p[o], s),
225
+ ...c,
226
+ children: n && !l ? /* @__PURE__ */ y("img", {
124
227
  src: n,
125
- alt: g,
126
- className: s.image,
127
- onError: () => m(!0)
128
- }) : /* @__PURE__ */ f("div", {
129
- className: s.fallback,
130
- children: i || g.charAt(0).toUpperCase()
228
+ alt: f,
229
+ className: p.image,
230
+ onError: () => u(!0)
231
+ }) : /* @__PURE__ */ y("div", {
232
+ className: p.fallback,
233
+ children: i || f.charAt(0).toUpperCase()
131
234
  })
132
235
  });
133
236
  };
134
237
  //#endregion
135
- export { y as ChatAvatar, m as ChatContainer, v as ChatInput, _ as ChatInputArea, g as ChatMessage, h as ChatMessageList };
238
+ export { A as ChatAvatar, x as ChatContainer, k as ChatInput, O as ChatInputArea, C as ChatMessage, S as ChatMessageList, D as ChatSystemMessage, T as ChatToolCall };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_container_774t4_23`,t=`_messageList_774t4_39`,n=`_message_774t4_39`,r=`_left_774t4_71`,i=`_right_774t4_76`,a=`_contentWrapper_774t4_81`,o=`_sent_774t4_84`,s=`_received_774t4_87`,c=`_messageAvatar_774t4_90`,l=`_sender_774t4_99`,u=`_bubble_774t4_104`,d=`_typing_774t4_115`,f=`_typingDot_774t4_122`,p=`_actions_774t4_146`,m=`_hoverOnly_774t4_153`,h=`_hasAvatar_774t4_171`,g=`_timestamp_774t4_211`,_=`_inputArea_774t4_216`,v=`_fieldContainer_774t4_229`,y=`_field_774t4_229`,b=`_sendButton_774t4_278`,x=`_attachButton_774t4_305`,S=`_avatar_774t4_327`,C=`_sm_774t4_340`,w=`_md_774t4_345`,T=`_lg_774t4_350`,E=`_s1_774t4_358`,D=`_s3_774t4_362`,O=`_s5_774t4_366`,k=`_s7_774t4_370`,A=`_s10_774t4_374`,j=`_s12_774t4_378`,M=`_s14_774t4_382`,N=`_s16_774t4_386`,P=`_s18_774t4_390`,F=`_s20_774t4_394`,I=`_s22_774t4_398`,L=`_s24_774t4_402`,R=`_image_774t4_406`,z=`_fallback_774t4_411`,B={container:e,messageList:t,message:n,left:r,right:i,contentWrapper:a,sent:o,received:s,messageAvatar:c,sender:l,bubble:u,typing:d,typingDot:f,"chat-typing":`_chat-typing_774t4_1`,actions:p,hoverOnly:m,hasAvatar:h,timestamp:g,inputArea:_,fieldContainer:v,field:y,sendButton:b,attachButton:x,avatar:S,sm:C,md:w,lg:T,s1:E,s3:D,s5:O,s7:k,s10:A,s12:j,s14:M,s16:N,s18:P,s20:F,s22:I,s24:L,image:R,fallback:z};exports.actions=p,exports.attachButton=x,exports.avatar=S,exports.bubble=u,exports.container=e,exports.contentWrapper=a,exports.default=B,exports.fallback=z,exports.field=y,exports.fieldContainer=v,exports.hasAvatar=h,exports.hoverOnly=m,exports.image=R,exports.inputArea=_,exports.left=r,exports.lg=T,exports.md=w,exports.message=n,exports.messageAvatar=c,exports.messageList=t,exports.received=s,exports.right=i,exports.s1=E,exports.s10=A,exports.s12=j,exports.s14=M,exports.s16=N,exports.s18=P,exports.s20=F,exports.s22=I,exports.s24=L,exports.s3=D,exports.s5=O,exports.s7=k,exports.sendButton=b,exports.sender=l,exports.sent=o,exports.sm=C,exports.timestamp=g,exports.typing=d,exports.typingDot=f;
2
+ var e=`_container_1pjll_49`,t=`_messageList_1pjll_65`,n=`_message_1pjll_65`,r=`_left_1pjll_97`,i=`_right_1pjll_102`,a=`_contentWrapper_1pjll_107`,o=`_sent_1pjll_110`,s=`_received_1pjll_113`,c=`_messageAvatar_1pjll_116`,l=`_sender_1pjll_125`,u=`_bubble_1pjll_130`,d=`_typing_1pjll_141`,f=`_typingDot_1pjll_148`,p=`_actions_1pjll_172`,m=`_hoverOnly_1pjll_179`,h=`_hasAvatar_1pjll_197`,g=`_timestamp_1pjll_237`,_=`_toolCall_1pjll_244`,v=`_toolHeader_1pjll_250`,y=`_toolChevron_1pjll_289`,b=`_expanded_1pjll_294`,x=`_toolName_1pjll_297`,S=`_toolSummary_1pjll_307`,C=`_toolStatus_1pjll_314`,w=`_done_1pjll_322`,T=`_error_1pjll_325`,E=`_toolSpinner_1pjll_328`,D=`_toolBody_1pjll_346`,O=`_toolSection_1pjll_356`,k=`_toolCode_1pjll_363`,A=`_toolLabel_1pjll_384`,j=`_system_1pjll_390`,M=`_warning_1pjll_402`,N=`_danger_1pjll_405`,P=`_systemText_1pjll_408`,F=`_systemAction_1pjll_413`,I=`_inputArea_1pjll_416`,L=`_fieldContainer_1pjll_429`,R=`_field_1pjll_429`,z=`_sendButton_1pjll_478`,B=`_attachButton_1pjll_505`,V=`_avatar_1pjll_527`,H=`_sm_1pjll_540`,U=`_md_1pjll_545`,W=`_lg_1pjll_550`,G=`_s1_1pjll_558`,K=`_s3_1pjll_562`,q=`_s5_1pjll_566`,J=`_s7_1pjll_570`,Y=`_s10_1pjll_574`,X=`_s12_1pjll_578`,Z=`_s14_1pjll_582`,Q=`_s16_1pjll_586`,$=`_s18_1pjll_590`,ee=`_s20_1pjll_594`,te=`_s22_1pjll_598`,ne=`_s24_1pjll_602`,re=`_image_1pjll_606`,ie=`_fallback_1pjll_611`,ae={container:e,messageList:t,message:n,left:r,right:i,contentWrapper:a,sent:o,received:s,messageAvatar:c,sender:l,bubble:u,typing:d,typingDot:f,"chat-typing":`_chat-typing_1pjll_1`,actions:p,hoverOnly:m,hasAvatar:h,timestamp:g,toolCall:_,toolHeader:v,toolChevron:y,expanded:b,toolName:x,toolSummary:S,toolStatus:C,done:w,error:T,toolSpinner:E,"chat-tool-spin":`_chat-tool-spin_1pjll_1`,toolBody:D,toolSection:O,toolCode:k,toolLabel:A,system:j,warning:M,danger:N,systemText:P,systemAction:F,inputArea:I,fieldContainer:L,field:R,sendButton:z,attachButton:B,avatar:V,sm:H,md:U,lg:W,s1:G,s3:K,s5:q,s7:J,s10:Y,s12:X,s14:Z,s16:Q,s18:$,s20:ee,s22:te,s24:ne,image:re,fallback:ie};exports.actions=p,exports.attachButton=B,exports.avatar=V,exports.bubble=u,exports.container=e,exports.contentWrapper=a,exports.danger=N,exports.default=ae,exports.done=w,exports.error=T,exports.expanded=b,exports.fallback=ie,exports.field=R,exports.fieldContainer=L,exports.hasAvatar=h,exports.hoverOnly=m,exports.image=re,exports.inputArea=I,exports.left=r,exports.lg=W,exports.md=U,exports.message=n,exports.messageAvatar=c,exports.messageList=t,exports.received=s,exports.right=i,exports.s1=G,exports.s10=Y,exports.s12=X,exports.s14=Z,exports.s16=Q,exports.s18=$,exports.s20=ee,exports.s22=te,exports.s24=ne,exports.s3=K,exports.s5=q,exports.s7=J,exports.sendButton=z,exports.sender=l,exports.sent=o,exports.sm=H,exports.system=j,exports.systemAction=F,exports.systemText=P,exports.timestamp=g,exports.toolBody=D,exports.toolCall=_,exports.toolChevron=y,exports.toolCode=k,exports.toolHeader=v,exports.toolLabel=A,exports.toolName=x,exports.toolSection=O,exports.toolSpinner=E,exports.toolStatus=C,exports.toolSummary=S,exports.typing=d,exports.typingDot=f,exports.warning=M;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  //#region src/components/ai/ChatUI/chat-ui.module.scss
3
- var e = "_container_774t4_23", t = "_messageList_774t4_39", n = "_message_774t4_39", r = "_left_774t4_71", i = "_right_774t4_76", a = "_contentWrapper_774t4_81", o = "_sent_774t4_84", s = "_received_774t4_87", c = "_messageAvatar_774t4_90", l = "_sender_774t4_99", u = "_bubble_774t4_104", d = "_typing_774t4_115", f = "_typingDot_774t4_122", p = "_actions_774t4_146", m = "_hoverOnly_774t4_153", h = "_hasAvatar_774t4_171", g = "_timestamp_774t4_211", _ = "_inputArea_774t4_216", v = "_fieldContainer_774t4_229", y = "_field_774t4_229", b = "_sendButton_774t4_278", x = "_attachButton_774t4_305", S = "_avatar_774t4_327", C = "_sm_774t4_340", w = "_md_774t4_345", T = "_lg_774t4_350", E = "_s1_774t4_358", D = "_s3_774t4_362", O = "_s5_774t4_366", k = "_s7_774t4_370", A = "_s10_774t4_374", j = "_s12_774t4_378", M = "_s14_774t4_382", N = "_s16_774t4_386", P = "_s18_774t4_390", F = "_s20_774t4_394", I = "_s22_774t4_398", L = "_s24_774t4_402", R = "_image_774t4_406", z = "_fallback_774t4_411", B = {
3
+ var e = "_container_1pjll_49", t = "_messageList_1pjll_65", n = "_message_1pjll_65", r = "_left_1pjll_97", i = "_right_1pjll_102", a = "_contentWrapper_1pjll_107", o = "_sent_1pjll_110", s = "_received_1pjll_113", c = "_messageAvatar_1pjll_116", l = "_sender_1pjll_125", u = "_bubble_1pjll_130", d = "_typing_1pjll_141", f = "_typingDot_1pjll_148", p = "_actions_1pjll_172", m = "_hoverOnly_1pjll_179", h = "_hasAvatar_1pjll_197", g = "_timestamp_1pjll_237", _ = "_toolCall_1pjll_244", v = "_toolHeader_1pjll_250", y = "_toolChevron_1pjll_289", b = "_expanded_1pjll_294", x = "_toolName_1pjll_297", S = "_toolSummary_1pjll_307", C = "_toolStatus_1pjll_314", w = "_done_1pjll_322", T = "_error_1pjll_325", E = "_toolSpinner_1pjll_328", D = "_toolBody_1pjll_346", O = "_toolSection_1pjll_356", k = "_toolCode_1pjll_363", A = "_toolLabel_1pjll_384", j = "_system_1pjll_390", M = "_warning_1pjll_402", N = "_danger_1pjll_405", P = "_systemText_1pjll_408", F = "_systemAction_1pjll_413", I = "_inputArea_1pjll_416", L = "_fieldContainer_1pjll_429", R = "_field_1pjll_429", z = "_sendButton_1pjll_478", B = "_attachButton_1pjll_505", V = "_avatar_1pjll_527", H = "_sm_1pjll_540", U = "_md_1pjll_545", W = "_lg_1pjll_550", G = "_s1_1pjll_558", K = "_s3_1pjll_562", q = "_s5_1pjll_566", J = "_s7_1pjll_570", Y = "_s10_1pjll_574", X = "_s12_1pjll_578", Z = "_s14_1pjll_582", Q = "_s16_1pjll_586", $ = "_s18_1pjll_590", ee = "_s20_1pjll_594", te = "_s22_1pjll_598", ne = "_s24_1pjll_602", re = "_image_1pjll_606", ie = "_fallback_1pjll_611", ae = {
4
4
  container: e,
5
5
  messageList: t,
6
6
  message: n,
@@ -14,34 +14,54 @@ var e = "_container_774t4_23", t = "_messageList_774t4_39", n = "_message_774t4_
14
14
  bubble: u,
15
15
  typing: d,
16
16
  typingDot: f,
17
- "chat-typing": "_chat-typing_774t4_1",
17
+ "chat-typing": "_chat-typing_1pjll_1",
18
18
  actions: p,
19
19
  hoverOnly: m,
20
20
  hasAvatar: h,
21
21
  timestamp: g,
22
- inputArea: _,
23
- fieldContainer: v,
24
- field: y,
25
- sendButton: b,
26
- attachButton: x,
27
- avatar: S,
28
- sm: C,
29
- md: w,
30
- lg: T,
31
- s1: E,
32
- s3: D,
33
- s5: O,
34
- s7: k,
35
- s10: A,
36
- s12: j,
37
- s14: M,
38
- s16: N,
39
- s18: P,
40
- s20: F,
41
- s22: I,
42
- s24: L,
43
- image: R,
44
- fallback: z
22
+ toolCall: _,
23
+ toolHeader: v,
24
+ toolChevron: y,
25
+ expanded: b,
26
+ toolName: x,
27
+ toolSummary: S,
28
+ toolStatus: C,
29
+ done: w,
30
+ error: T,
31
+ toolSpinner: E,
32
+ "chat-tool-spin": "_chat-tool-spin_1pjll_1",
33
+ toolBody: D,
34
+ toolSection: O,
35
+ toolCode: k,
36
+ toolLabel: A,
37
+ system: j,
38
+ warning: M,
39
+ danger: N,
40
+ systemText: P,
41
+ systemAction: F,
42
+ inputArea: I,
43
+ fieldContainer: L,
44
+ field: R,
45
+ sendButton: z,
46
+ attachButton: B,
47
+ avatar: V,
48
+ sm: H,
49
+ md: U,
50
+ lg: W,
51
+ s1: G,
52
+ s3: K,
53
+ s5: q,
54
+ s7: J,
55
+ s10: Y,
56
+ s12: X,
57
+ s14: Z,
58
+ s16: Q,
59
+ s18: $,
60
+ s20: ee,
61
+ s22: te,
62
+ s24: ne,
63
+ image: re,
64
+ fallback: ie
45
65
  };
46
66
  //#endregion
47
- export { p as actions, x as attachButton, S as avatar, u as bubble, e as container, a as contentWrapper, B as default, z as fallback, y as field, v as fieldContainer, h as hasAvatar, m as hoverOnly, R as image, _ as inputArea, r as left, T as lg, w as md, n as message, c as messageAvatar, t as messageList, s as received, i as right, E as s1, A as s10, j as s12, M as s14, N as s16, P as s18, F as s20, I as s22, L as s24, D as s3, O as s5, k as s7, b as sendButton, l as sender, o as sent, C as sm, g as timestamp, d as typing, f as typingDot };
67
+ export { p as actions, B as attachButton, V as avatar, u as bubble, e as container, a as contentWrapper, N as danger, ae as default, w as done, T as error, b as expanded, ie as fallback, R as field, L as fieldContainer, h as hasAvatar, m as hoverOnly, re as image, I as inputArea, r as left, W as lg, U as md, n as message, c as messageAvatar, t as messageList, s as received, i as right, G as s1, Y as s10, X as s12, Z as s14, Q as s16, $ as s18, ee as s20, te as s22, ne as s24, K as s3, q as s5, J as s7, z as sendButton, l as sender, o as sent, H as sm, j as system, F as systemAction, P as systemText, g as timestamp, D as toolBody, _ as toolCall, y as toolChevron, k as toolCode, v as toolHeader, A as toolLabel, x as toolName, O as toolSection, E as toolSpinner, C as toolStatus, S as toolSummary, d as typing, f as typingDot, M as warning };