@tomny-dev/uzi 0.18.1 → 0.19.0-pr.129.444.1.d699072

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 CHANGED
@@ -69,6 +69,12 @@ in browser components. See [Cloudflare integration](packages/cloudflare/README.m
69
69
  and [platform architecture](docs/architecture/cloudflare-platform.md).
70
70
  The package is intentionally private until its first consumer and release workflow are validated.
71
71
 
72
+ A runnable [Workers + D1 + Uzi example](examples/cloudflare-app/README.md) now
73
+ illustrates a real app API and migration. GitHub-hosted reusable
74
+ [quality](.github/workflows/cloudflare-quality.yml) and
75
+ [deployment](.github/workflows/cloudflare-deploy.yml) workflows live alongside
76
+ it; deployments must be invoked explicitly from a downstream repository.
77
+
72
78
  ## Documentation
73
79
 
74
80
  - [Getting Started](docs/getting-started.md) — Installation, styles, and first components
@@ -31,6 +31,10 @@ export interface AIChatProps {
31
31
  readonly newChatRequestKey?: string | number;
32
32
  /** Opt-in files, restricted to images/text accepted by the application API. */
33
33
  readonly attachments?: AIChatAttachmentOptions;
34
+ /** Visible, accessible activity label while the assistant has not started answering. */
35
+ readonly activityLabel?: string;
36
+ /** Human-friendly labels for running tools, keyed by SDK tool name. */
37
+ readonly toolActivityLabels?: Readonly<Record<string, string>>;
34
38
  /** Optional persistence; implementations must scope storage by user AND resource. */
35
39
  readonly history?: AIChatHistoryAdapter;
36
40
  /** Native SDK continuation predicate for tool approvals. */
@@ -69,6 +73,8 @@ export type AIChatToolApprovalHandler = (id: string, approved: boolean) => Promi
69
73
  export interface AIChatViewProps {
70
74
  readonly messages: readonly AIChatMessage[];
71
75
  readonly status?: string;
76
+ readonly activityLabel?: string;
77
+ readonly toolActivityLabels?: Readonly<Record<string, string>>;
72
78
  readonly error?: Error | null;
73
79
  readonly draft?: string;
74
80
  readonly onDraftChange?: (draft: string) => void;
@@ -153,6 +159,22 @@ export interface AIChatErrorRendererProps {
153
159
  readonly onRetry: () => void;
154
160
  readonly onClear: () => void;
155
161
  }
162
+ /** Shared attachment surface for built-in Uzi chat and custom SDK runtimes. */
163
+ export interface AIChatAttachmentPreviewProps {
164
+ readonly name: string;
165
+ readonly size?: number;
166
+ /** HTTP(S), safe bitmap data URI, or a local object URL when staged. */
167
+ readonly imageUrl?: string;
168
+ /** Optional HTTP(S) link for non-image files. */
169
+ readonly href?: string;
170
+ /** Compact composer chip rather than a history attachment. */
171
+ readonly staged?: boolean;
172
+ readonly onRemove?: () => void;
173
+ /** Pass an SDK-owned remove button here when removal must be done by a primitive. */
174
+ readonly removeControl?: ReactNode;
175
+ }
176
+ /** The same attachment surface is used for staged files and sent message parts. */
177
+ export declare function AIChatAttachmentPreview({ name, size, imageUrl, href, staged, onRemove, removeControl }: AIChatAttachmentPreviewProps): import("react/jsx-runtime").JSX.Element;
156
178
  /** Reusable role-aware message surface for domain renderers. */
157
179
  export interface AIChatMessageBubbleProps {
158
180
  readonly role: 'user' | 'assistant';
@@ -161,12 +183,12 @@ export interface AIChatMessageBubbleProps {
161
183
  readonly className?: string;
162
184
  }
163
185
  export declare function AIChatMessageBubble({ role, label, children, className }: AIChatMessageBubbleProps): import("react/jsx-runtime").JSX.Element;
164
- export declare function AIChat({ api, scope, scopeLabel, fetch: requestFetch, headers, credentials, prepareSendMessagesRequest, sessionKey, messageLimit, inputPlaceholder, inputAriaLabel, inputMaxLength, components, toolbarActions, showNewChatInToolbar, newChatRequestKey, attachments, history, sendAutomaticallyWhen, onClose, className, style, }: AIChatProps): import("react/jsx-runtime").JSX.Element;
186
+ export declare function AIChat({ api, scope, scopeLabel, fetch: requestFetch, headers, credentials, prepareSendMessagesRequest, sessionKey, messageLimit, inputPlaceholder, inputAriaLabel, inputMaxLength, components, toolbarActions, showNewChatInToolbar, newChatRequestKey, attachments, activityLabel, toolActivityLabels, history, sendAutomaticallyWhen, onClose, className, style, }: AIChatProps): import("react/jsx-runtime").JSX.Element;
165
187
  /**
166
188
  * Controlled chat presentation for apps with their own AI SDK/assistant-ui
167
189
  * runtime. It does not create providers, transports or chat state. Callbacks
168
190
  * are the only way messages/actions leave the view.
169
191
  */
170
- export declare function AIChatView({ messages, status, error, draft, onDraftChange, onSend, onStop, onRetry, onNewChat, showNewChatInToolbar, messageLimit, inputPlaceholder, inputAriaLabel, inputMaxLength, components, attachments, onSelectAttachments, onRemoveAttachment, attachmentAccept, attachmentError, onToolApproval, toolbarActions, header, composerLeading, composerTrailing, composer, emptyState, className, style, }: AIChatViewProps): import("react/jsx-runtime").JSX.Element;
192
+ export declare function AIChatView({ messages, status, activityLabel, toolActivityLabels, error, draft, onDraftChange, onSend, onStop, onRetry, onNewChat, showNewChatInToolbar, messageLimit, inputPlaceholder, inputAriaLabel, inputMaxLength, components, attachments, onSelectAttachments, onRemoveAttachment, attachmentAccept, attachmentError, onToolApproval, toolbarActions, header, composerLeading, composerTrailing, composer, emptyState, className, style, }: AIChatViewProps): import("react/jsx-runtime").JSX.Element;
171
193
  export {};
172
194
  //# sourceMappingURL=AIChat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AIChat.d.ts","sourceRoot":"","sources":["../../../src/components/ai-chat/AIChat.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAA4B,SAAS,EAAE,MAAM,OAAO,CAAC;AAG/F,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAgB,MAAM,sBAAsB,CAAC;AAIvF,KAAK,sBAAsB,GAAG,WAAW,CAAC,qBAAqB,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEnG,MAAM,WAAW,WAAW;IAC1B,yCAAyC;IACzC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,+EAA+E;IAC/E,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,iFAAiF;IACjF,QAAQ,CAAC,KAAK,CAA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CAuDb;AAwND;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,MAAgB,EAChB,aAA2C,EAC3C,kBAAkB,EAClB,KAAK,EACL,KAAU,EACV,aAAa,EACb,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,EACT,oBAA2B,EAC3B,YAAY,EACZ,gBAAsC,EACtC,cAA0B,EAC1B,cAAqB,EACrB,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,cAAc,EACd,MAAM,EACN,eAAe,EACf,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,SAAS,EACT,KAAK,GACN,EAAE,eAAe,2CAiNjB"}
package/dist/index.cjs CHANGED
@@ -46,6 +46,7 @@ const require_AIChat = require("./index85.cjs");
46
46
  const require_AIChatDock = require("./index87.cjs");
47
47
  const require_FloatingActionStack = require("./index89.cjs");
48
48
  exports.AIChat = require_AIChat.AIChat;
49
+ exports.AIChatAttachmentPreview = require_AIChat.AIChatAttachmentPreview;
49
50
  exports.AIChatDock = require_AIChatDock.AIChatDock;
50
51
  exports.AIChatMessageBubble = require_AIChat.AIChatMessageBubble;
51
52
  exports.AIChatView = require_AIChat.AIChatView;
package/dist/index.d.ts CHANGED
@@ -79,8 +79,8 @@ export type { ErrorPageProps } from "./components/error-page/ErrorPage";
79
79
  export { ErrorPage, NotFoundPage, MaintenancePage } from "./components/error-page/ErrorPage";
80
80
  export type { EmptyStatePageProps, EmptyStatePageVariant } from "./components/empty-state-page/EmptyStatePage";
81
81
  export { EmptyStatePage } from "./components/empty-state-page/EmptyStatePage";
82
- export type { AIChatProps, AIChatMessage, AIChatViewProps, AIChatAttachmentOptions, AIChatSelectedAttachment, AIChatHistoryAdapter, AIChatToolApprovalHandler, AIChatToolRendererProps, AIChatComponents, AIChatMessageRendererProps, AIChatReasoningRendererProps, AIChatSource, AIChatSourceRendererProps, AIChatDataRendererProps, AIChatErrorRendererProps, } from "./components/ai-chat/AIChat";
83
- export { AIChat, AIChatView, AIChatMessageBubble } from "./components/ai-chat/AIChat";
82
+ export type { AIChatProps, AIChatMessage, AIChatViewProps, AIChatAttachmentOptions, AIChatSelectedAttachment, AIChatAttachmentPreviewProps, AIChatHistoryAdapter, AIChatToolApprovalHandler, AIChatToolRendererProps, AIChatComponents, AIChatMessageRendererProps, AIChatReasoningRendererProps, AIChatSource, AIChatSourceRendererProps, AIChatDataRendererProps, AIChatErrorRendererProps, } from "./components/ai-chat/AIChat";
83
+ export { AIChat, AIChatView, AIChatMessageBubble, AIChatAttachmentPreview } from "./components/ai-chat/AIChat";
84
84
  export type { AIChatMessageBubbleProps } from "./components/ai-chat/AIChat";
85
85
  export { AIChatDock } from "./components/ai-chat/AIChatDock";
86
86
  export type { AIChatDockProps } from "./components/ai-chat/AIChatDock";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,mBAAmB,CAAC;AAG3B,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEjF,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,YAAY,EACV,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,aAAa,GACd,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,wBAAwB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,EAAE,MAAM,wDAAwD,CAAC;AACnH,YAAY,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,wDAAwD,CAAC"}
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ import { DataTable } from "./index76.js";
41
41
  import { SettingsPage } from "./index78.js";
42
42
  import { ErrorPage, MaintenancePage, NotFoundPage } from "./index80.js";
43
43
  import { EmptyStatePage } from "./index82.js";
44
- import { AIChat, AIChatMessageBubble, AIChatView } from "./index84.js";
44
+ import { AIChat, AIChatAttachmentPreview, AIChatMessageBubble, AIChatView } from "./index84.js";
45
45
  import { AIChatDock } from "./index86.js";
46
46
  import { FloatingActionButton, FloatingActionStack } from "./index88.js";
47
- export { AIChat, AIChatDock, AIChatMessageBubble, AIChatView, Alert, AppShell, AuthCard, AuthField, AuthForm, AuthModeSwitch, AuthPage, Avatar, AvatarFallback, AvatarImage, Button, Card, Checkbox, DataTable, Dropdown, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStatePage, ErrorPage, FilterBar, FilterChips, FilterPopover, FloatingActionButton, FloatingActionStack, ForgotPasswordPage, Inline, Input, Label, MaintenancePage, Modal, ModalOverlay, MultiSelect, NotFoundPage, PageContainer, PageHeader, Pill, Progress, SearchAutocomplete, SectionHeader, SegmentedToggle, Select, SettingsPage, SidebarNav, SignInPage, SignUpPage, Skeleton, Stack, Stat, StatGroup, Surface, ThemeProvider, ThemeToggleButton, ToastProvider, Toolbar, ToolbarGroup, TopBar, cx, useTheme, useToast };
47
+ export { AIChat, AIChatAttachmentPreview, AIChatDock, AIChatMessageBubble, AIChatView, Alert, AppShell, AuthCard, AuthField, AuthForm, AuthModeSwitch, AuthPage, Avatar, AvatarFallback, AvatarImage, Button, Card, Checkbox, DataTable, Dropdown, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStatePage, ErrorPage, FilterBar, FilterChips, FilterPopover, FloatingActionButton, FloatingActionStack, ForgotPasswordPage, Inline, Input, Label, MaintenancePage, Modal, ModalOverlay, MultiSelect, NotFoundPage, PageContainer, PageHeader, Pill, Progress, SearchAutocomplete, SectionHeader, SegmentedToggle, Select, SettingsPage, SidebarNav, SignInPage, SignUpPage, Skeleton, Stack, Stat, StatGroup, Surface, ThemeProvider, ThemeToggleButton, ToastProvider, Toolbar, ToolbarGroup, TopBar, cx, useTheme, useToast };
package/dist/index83.js CHANGED
@@ -27,22 +27,34 @@ var structuredData = "uzi-ai-chat-module__structuredData__CVeqF";
27
27
  var footer = "uzi-ai-chat-module__footer__VzCvT";
28
28
  var composerForm = "uzi-ai-chat-module__composerForm__E2Wqd";
29
29
  var input = "uzi-ai-chat-module__input__-Rzh8";
30
- var status = "uzi-ai-chat-module__status__Wm3t3";
30
+ var activityBubble = "uzi-ai-chat-module__activityBubble__wik-k";
31
+ var activityDots = "uzi-ai-chat-module__activityDots__WNLWX";
31
32
  var error = "uzi-ai-chat-module__error__csAOF";
32
33
  var emptyState = "uzi-ai-chat-module__emptyState__JzB1x";
33
34
  var composerExtras = "uzi-ai-chat-module__composerExtras__B1qBc";
34
35
  var composerActions = "uzi-ai-chat-module__composerActions__wrPZO";
35
36
  var approvalActions = "uzi-ai-chat-module__approvalActions__ptwyO";
36
- var attachmentList = "uzi-ai-chat-module__attachmentList__isbAi";
37
37
  var attachmentError = "uzi-ai-chat-module__attachmentError__E-kU-";
38
+ var attachmentList = "uzi-ai-chat-module__attachmentList__isbAi";
38
39
  var messageBubble = "uzi-ai-chat-module__messageBubble__ZG7M-";
39
40
  var messageLabel = "uzi-ai-chat-module__messageLabel__esd4p";
40
41
  var composerSurface = "uzi-ai-chat-module__composerSurface__t7lZs";
41
42
  var composerRow = "uzi-ai-chat-module__composerRow__Mjqy2";
42
43
  var composerIconButton = "uzi-ai-chat-module__composerIconButton__6FYlZ";
43
44
  var visuallyHidden = "uzi-ai-chat-module__visuallyHidden__qVCl7";
45
+ var attachmentCard = "uzi-ai-chat-module__attachmentCard__JdvKJ";
46
+ var stagedAttachment = "uzi-ai-chat-module__stagedAttachment__5axXj";
47
+ var stagedFileAttachment = "uzi-ai-chat-module__stagedFileAttachment__hZfVm";
48
+ var sentAttachment = "uzi-ai-chat-module__sentAttachment__PP-fs";
49
+ var imageAttachmentButton = "uzi-ai-chat-module__imageAttachmentButton__PM2cf";
44
50
  var attachmentThumbnail = "uzi-ai-chat-module__attachmentThumbnail__OzmIc";
45
- var attachmentFilename = "uzi-ai-chat-module__attachmentFilename__yHCLk";
51
+ var sentAttachmentName = "uzi-ai-chat-module__sentAttachmentName__rGevY";
52
+ var fileAttachment = "uzi-ai-chat-module__fileAttachment__lVB09";
53
+ var fileAttachmentDetails = "uzi-ai-chat-module__fileAttachmentDetails__NVfrg";
54
+ var removeAttachment = "uzi-ai-chat-module__removeAttachment__ck6iq";
55
+ var removeAttachmentSlot = "uzi-ai-chat-module__removeAttachmentSlot__Xk--P";
56
+ var attachmentDialog = "uzi-ai-chat-module__attachmentDialog__qrG-G";
57
+ var attachmentDialogHeader = "uzi-ai-chat-module__attachmentDialogHeader__cmWXt";
46
58
  var ai_chat_module_default = {
47
59
  container,
48
60
  scope,
@@ -72,24 +84,38 @@ var ai_chat_module_default = {
72
84
  footer,
73
85
  composerForm,
74
86
  input,
75
- status,
87
+ activityBubble,
88
+ "uzi-chat-activity-enter": "uzi-ai-chat-module__uzi-chat-activity-enter__eSi1y",
89
+ activityDots,
90
+ "uzi-chat-dot-pulse": "uzi-ai-chat-module__uzi-chat-dot-pulse__l3fH6",
76
91
  error,
77
92
  emptyState,
78
93
  composerExtras,
79
94
  composerActions,
80
95
  approvalActions,
81
- attachmentList,
82
96
  attachmentError,
97
+ attachmentList,
83
98
  messageBubble,
84
99
  messageLabel,
85
100
  composerSurface,
86
101
  composerRow,
87
102
  composerIconButton,
88
103
  visuallyHidden,
104
+ attachmentCard,
105
+ stagedAttachment,
106
+ stagedFileAttachment,
107
+ sentAttachment,
108
+ imageAttachmentButton,
89
109
  attachmentThumbnail,
90
- attachmentFilename
110
+ sentAttachmentName,
111
+ fileAttachment,
112
+ fileAttachmentDetails,
113
+ removeAttachment,
114
+ removeAttachmentSlot,
115
+ attachmentDialog,
116
+ attachmentDialogHeader
91
117
  };
92
118
  //#endregion
93
- export { approvalActions, assistantMessage, attachmentError, attachmentFilename, attachmentList, attachmentThumbnail, chatToolbar, chatToolbarExtras, closeBtn, composerActions, composerExtras, composerForm, composerIconButton, composerRow, composerSurface, container, data, ai_chat_module_default as default, emptyState, error, errorActions, footer, historyLimit, input, messageBubble, messageLabel, messageList, newChatButton, reasoning, reasoningSummary, reasoningText, scope, scopeHelp, scopeLabel, sendButton, sources, sourcesLabel, status, structuredData, textPart, thread, toolPart, userMessage, viewport, visuallyHidden };
119
+ export { activityBubble, activityDots, approvalActions, assistantMessage, attachmentCard, attachmentDialog, attachmentDialogHeader, attachmentError, attachmentList, attachmentThumbnail, chatToolbar, chatToolbarExtras, closeBtn, composerActions, composerExtras, composerForm, composerIconButton, composerRow, composerSurface, container, data, ai_chat_module_default as default, emptyState, error, errorActions, fileAttachment, fileAttachmentDetails, footer, historyLimit, imageAttachmentButton, input, messageBubble, messageLabel, messageList, newChatButton, reasoning, reasoningSummary, reasoningText, removeAttachment, removeAttachmentSlot, scope, scopeHelp, scopeLabel, sendButton, sentAttachment, sentAttachmentName, sources, sourcesLabel, stagedAttachment, stagedFileAttachment, structuredData, textPart, thread, toolPart, userMessage, viewport, visuallyHidden };
94
120
 
95
121
  //# sourceMappingURL=index83.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index83.js","names":[],"sources":["../src/components/ai-chat/ai-chat.module.css"],"sourcesContent":[".container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n max-height: none;\n overflow: hidden;\n position: relative;\n}\n\n.scope {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 3rem 0.75rem 1rem;\n background: var(--uzi-surface-1, var(--muted));\n border-bottom: 1px solid var(--border);\n}\n\n.scopeLabel {\n font-size: 0.6875rem;\n font-weight: 650;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--muted-foreground);\n}\n\n.scope strong {\n font-size: 0.875rem;\n}\n\n.scopeHelp {\n margin: 0;\n font-size: 0.75rem;\n color: var(--muted-foreground);\n line-height: 1.5;\n}\n\n.closeBtn {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n z-index: 1;\n display: grid;\n place-items: center;\n width: 2rem;\n height: 2rem;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: var(--muted-foreground);\n cursor: pointer;\n font-size: 0.875rem;\n}\n\n.closeBtn:hover {\n background: var(--uzi-surface-2, var(--muted));\n color: var(--foreground);\n}\n\n.closeBtn:focus-visible,\n.sendButton:focus-visible,\n.errorActions button:focus-visible,\n.historyLimit button:focus-visible {\n outline: 2px solid var(--primary);\n outline-offset: 2px;\n}\n\n.thread {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n}\n\n.viewport {\n flex: 1;\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n gap: 0.75rem;\n}\n\n.chatToolbar {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.75rem;\n min-height: 2.75rem;\n padding: 0.375rem 0.75rem;\n background: var(--uzi-surface-1, var(--background));\n border-bottom: 1px solid var(--border);\n}\n\n.chatToolbarExtras {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n min-width: 0;\n margin-right: auto;\n}\n\n.chatToolbar button {\n margin-left: 0;\n flex-shrink: 0;\n border: 0;\n border-radius: 0.375rem;\n padding: 0.35rem 0.5rem;\n background: transparent;\n color: var(--muted-foreground);\n font: inherit;\n font-size: 0.75rem;\n cursor: pointer;\n}\n\n.chatToolbar .newChatButton {\n display: grid;\n place-items: center;\n width: 2rem;\n height: 2rem;\n padding: 0;\n}\n\n.chatToolbar button:hover {\n color: var(--foreground);\n background: var(--uzi-surface-2, var(--muted));\n}\n\n.chatToolbar button:focus-visible {\n outline: 2px solid var(--primary);\n outline-offset: 2px;\n}\n\n.messageList {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n padding: 1rem;\n}\n\n.userMessage,\n.assistantMessage {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem 1rem;\n border-radius: 0.75rem;\n color: var(--foreground);\n overflow-wrap: anywhere;\n}\n\n.userMessage {\n background: color-mix(in srgb, var(--primary) 10%, transparent);\n border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);\n}\n\n.assistantMessage {\n background: var(--muted);\n border: 1px solid var(--border);\n}\n\n.textPart {\n white-space: pre-wrap;\n line-height: 1.6;\n}\n\n.reasoning,\n.toolPart {\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n padding: 0.5rem 0.75rem;\n background: var(--uzi-surface-1, transparent);\n}\n\n.reasoningSummary,\n.toolPart summary {\n cursor: pointer;\n font-size: 0.75rem;\n font-weight: 600;\n color: var(--muted-foreground);\n}\n\n.reasoningText {\n margin: 0.5rem 0 0;\n font-size: 0.8125rem;\n line-height: 1.6;\n color: var(--muted-foreground);\n white-space: pre-wrap;\n}\n\n.sources {\n padding-top: 0.5rem;\n border-top: 1px solid var(--border);\n}\n\n.sourcesLabel {\n display: block;\n font-size: 0.6875rem;\n font-weight: 650;\n color: var(--muted-foreground);\n margin-bottom: 0.25rem;\n}\n\n.sources ul {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n margin: 0;\n padding-left: 1.25rem;\n}\n\n.sources li {\n font-size: 0.75rem;\n overflow-wrap: anywhere;\n}\n\n.data {\n padding: 0.5rem;\n background: var(--uzi-surface-2, var(--muted));\n border-radius: 0.5rem;\n overflow-x: auto;\n}\n\n.structuredData {\n margin: 0;\n padding: 0.5rem 0;\n max-width: 100%;\n overflow-x: auto;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n font-size: 0.75rem;\n line-height: 1.5;\n}\n\n.footer {\n position: sticky;\n bottom: 0;\n z-index: 1;\n flex-shrink: 0;\n background: var(--background);\n border-top: 1px solid var(--border);\n}\n\n.composerForm {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: end;\n gap: 0.75rem;\n padding: 0.75rem 1rem;\n}\n\n.input {\n width: 100%;\n min-height: 2.5rem;\n padding: 0.5rem 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n background: var(--background);\n color: var(--foreground);\n font: inherit;\n font-size: 0.875rem;\n line-height: 1.5;\n resize: vertical;\n}\n\n.input:focus {\n outline: none;\n border-color: var(--primary);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent);\n}\n\n.input::placeholder {\n color: var(--muted-foreground);\n}\n\n.input:disabled,\n.sendButton:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.sendButton {\n min-height: 2.5rem;\n padding: 0.5rem 0.875rem;\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n background: var(--primary);\n color: var(--primary-foreground);\n font: inherit;\n font-size: 0.875rem;\n font-weight: 600;\n cursor: pointer;\n}\n\n.sendButton:not(:disabled):hover {\n filter: brightness(0.95);\n}\n\n.status {\n margin: 0;\n padding: 0.5rem 1rem;\n text-align: center;\n font-size: 0.8125rem;\n color: var(--muted-foreground);\n font-style: italic;\n}\n\n.error {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem 1rem;\n border: 1px solid var(--destructive);\n border-radius: 0.5rem;\n margin: 0.75rem 1rem;\n background: color-mix(in srgb, var(--destructive) 10%, transparent);\n}\n\n.error p {\n margin: 0;\n color: var(--destructive);\n font-size: 0.8125rem;\n}\n\n.errorActions {\n display: flex;\n gap: 0.5rem;\n}\n\n.errorActions button,\n.historyLimit button {\n padding: 0.375rem 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.375rem;\n background: transparent;\n color: var(--foreground);\n font: inherit;\n font-size: 0.75rem;\n cursor: pointer;\n}\n\n.errorActions button:hover,\n.historyLimit button:hover {\n background: var(--uzi-surface-2, var(--muted));\n}\n\n.historyLimit {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n align-items: center;\n padding: 0.75rem 1rem;\n margin: 0.75rem 1rem;\n background: var(--uzi-surface-1, var(--muted));\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n}\n\n.historyLimit span {\n font-size: 0.75rem;\n color: var(--muted-foreground);\n}\n\n.emptyState {\n display: grid;\n place-items: center;\n flex: 1;\n min-height: 12rem;\n color: var(--muted-foreground);\n text-align: center;\n}\n\n.emptyState p {\n margin: 0;\n font-size: 0.875rem;\n}\n\n@media (max-width: 640px) {\n .composerForm {\n grid-template-columns: minmax(0, 1fr) auto;\n }\n\n .errorActions {\n flex-wrap: wrap;\n }\n}\n\n/* Optional integration controls use the same Uzi surface and layout tokens. */\n.composerExtras {\n grid-column: 1 / -1;\n min-width: 0;\n}\n\n.composerActions {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n\n.approvalActions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.5rem; }\n.approvalActions button, .attachmentList button {\n background: var(--background); color: var(--foreground); border: 1px solid var(--border);\n border-radius: 0.375rem; padding: 0.3rem 0.55rem; cursor: pointer;\n}\n.approvalActions button:disabled { opacity: 0.5; cursor: not-allowed; }\n.attachmentError { color: var(--destructive); padding: 0.5rem 1rem; margin: 0; }\n.attachmentList { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.4rem 0; margin: 0; list-style: none; }\n.attachmentList li { display: inline-flex; gap: 0.5rem; align-items: center; font-size: 0.75rem; }\n\n/* Role-aware message layout shared by the default renderer and consumer apps. */\n.messageBubble { width: fit-content; min-width: 0; max-width: 100%; }\n.messageBubble.userMessage { align-self: flex-end; max-width: min(90%, 42rem); }\n.messageBubble.assistantMessage { align-self: flex-start; max-width: 100%; }\n.messageLabel { font-size: 0.6875rem; font-weight: 650; color: var(--muted-foreground); }\n\n/* Shared compact composer: same visual grammar as Betty, without app-owned behavior. */\n.composerSurface {\n grid-column: 1 / -1;\n min-width: 0;\n border: 1px solid var(--border);\n border-radius: 0.875rem;\n background: var(--background);\n}\n.composerSurface:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }\n.composerRow { display: flex; align-items: end; min-width: 0; gap: 0.375rem; padding: 0.375rem; }\n.composerRow .input {\n display: block; flex: 1; width: 0; min-width: 0; min-height: 2.75rem;\n max-height: 11rem; padding: 0.625rem 0.25rem; border: 0;\n background: transparent; resize: none; font-size: 1rem;\n}\n.composerRow .input:focus { outline: none; box-shadow: none; }\n.composerIconButton, .composerRow .sendButton {\n display: grid; place-items: center; flex-shrink: 0;\n width: 2.75rem; height: 2.75rem; min-height: 2.75rem;\n padding: 0; border-radius: 0.625rem; cursor: pointer;\n}\n.composerIconButton {\n color: var(--foreground); border: 0; background: transparent;\n}\n.composerIconButton:hover:not(:disabled) { background: var(--muted); }\n.composerRow .sendButton { border: 0; background: var(--primary); color: var(--primary-foreground); }\n.composerIconButton:focus-visible, .composerRow .sendButton:focus-visible {\n outline: 2px solid var(--ring); outline-offset: 2px;\n}\n.composerIconButton:disabled { opacity: 0.5; cursor: not-allowed; }\n.visuallyHidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n\n/* Thumbnail treatment matches the Betty attachment shelf. */\n.attachmentList {\n gap: 0.5rem;\n padding: 0;\n align-items: center;\n}\n.attachmentList li {\n max-width: 100%;\n position: relative;\n min-height: 3rem;\n border-radius: 0.625rem;\n border: 1px solid var(--border);\n background: var(--uzi-surface-1, var(--muted));\n padding: 0.125rem;\n}\n.attachmentThumbnail {\n width: 3rem;\n height: 3rem;\n border-radius: 0.5rem;\n object-fit: cover;\n}\n.attachmentFilename {\n max-width: 11rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 0.5rem;\n}\n.attachmentList li button {\n flex-shrink: 0;\n border: 0;\n background: transparent;\n color: var(--muted-foreground);\n border-radius: 0.4rem;\n}\n.attachmentList li button:hover { color: var(--foreground); background: var(--muted); }\n"],"mappings":""}
1
+ {"version":3,"file":"index83.js","names":[],"sources":["../src/components/ai-chat/ai-chat.module.css"],"sourcesContent":[".container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n max-height: none;\n overflow: hidden;\n position: relative;\n}\n\n.scope {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 3rem 0.75rem 1rem;\n background: var(--uzi-surface-1, var(--muted));\n border-bottom: 1px solid var(--border);\n}\n\n.scopeLabel {\n font-size: 0.6875rem;\n font-weight: 650;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--muted-foreground);\n}\n\n.scope strong {\n font-size: 0.875rem;\n}\n\n.scopeHelp {\n margin: 0;\n font-size: 0.75rem;\n color: var(--muted-foreground);\n line-height: 1.5;\n}\n\n.closeBtn {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n z-index: 1;\n display: grid;\n place-items: center;\n width: 2rem;\n height: 2rem;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: var(--muted-foreground);\n cursor: pointer;\n font-size: 0.875rem;\n}\n\n.closeBtn:hover {\n background: var(--uzi-surface-2, var(--muted));\n color: var(--foreground);\n}\n\n.closeBtn:focus-visible,\n.sendButton:focus-visible,\n.errorActions button:focus-visible,\n.historyLimit button:focus-visible {\n outline: 2px solid var(--primary);\n outline-offset: 2px;\n}\n\n.thread {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n}\n\n.viewport {\n flex: 1;\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n gap: 0.75rem;\n}\n\n.chatToolbar {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.75rem;\n min-height: 2.75rem;\n padding: 0.375rem 0.75rem;\n background: var(--uzi-surface-1, var(--background));\n border-bottom: 1px solid var(--border);\n}\n\n.chatToolbarExtras {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n min-width: 0;\n margin-right: auto;\n}\n\n.chatToolbar button {\n margin-left: 0;\n flex-shrink: 0;\n border: 0;\n border-radius: 0.375rem;\n padding: 0.35rem 0.5rem;\n background: transparent;\n color: var(--muted-foreground);\n font: inherit;\n font-size: 0.75rem;\n cursor: pointer;\n}\n\n.chatToolbar .newChatButton {\n display: grid;\n place-items: center;\n width: 2rem;\n height: 2rem;\n padding: 0;\n}\n\n.chatToolbar button:hover {\n color: var(--foreground);\n background: var(--uzi-surface-2, var(--muted));\n}\n\n.chatToolbar button:focus-visible {\n outline: 2px solid var(--primary);\n outline-offset: 2px;\n}\n\n.messageList {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n padding: 1rem;\n}\n\n.userMessage,\n.assistantMessage {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem 1rem;\n border-radius: 0.75rem;\n color: var(--foreground);\n overflow-wrap: anywhere;\n}\n\n.userMessage {\n background: color-mix(in srgb, var(--primary) 10%, transparent);\n border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);\n}\n\n.assistantMessage {\n background: var(--muted);\n border: 1px solid var(--border);\n}\n\n.textPart {\n white-space: pre-wrap;\n line-height: 1.6;\n}\n\n.reasoning,\n.toolPart {\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n padding: 0.5rem 0.75rem;\n background: var(--uzi-surface-1, transparent);\n}\n\n.reasoningSummary,\n.toolPart summary {\n cursor: pointer;\n font-size: 0.75rem;\n font-weight: 600;\n color: var(--muted-foreground);\n}\n\n.reasoningText {\n margin: 0.5rem 0 0;\n font-size: 0.8125rem;\n line-height: 1.6;\n color: var(--muted-foreground);\n white-space: pre-wrap;\n}\n\n.sources {\n padding-top: 0.5rem;\n border-top: 1px solid var(--border);\n}\n\n.sourcesLabel {\n display: block;\n font-size: 0.6875rem;\n font-weight: 650;\n color: var(--muted-foreground);\n margin-bottom: 0.25rem;\n}\n\n.sources ul {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n margin: 0;\n padding-left: 1.25rem;\n}\n\n.sources li {\n font-size: 0.75rem;\n overflow-wrap: anywhere;\n}\n\n.data {\n padding: 0.5rem;\n background: var(--uzi-surface-2, var(--muted));\n border-radius: 0.5rem;\n overflow-x: auto;\n}\n\n.structuredData {\n margin: 0;\n padding: 0.5rem 0;\n max-width: 100%;\n overflow-x: auto;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n font-size: 0.75rem;\n line-height: 1.5;\n}\n\n.footer {\n position: sticky;\n bottom: 0;\n z-index: 1;\n flex-shrink: 0;\n background: var(--background);\n border-top: 1px solid var(--border);\n}\n\n.composerForm {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: end;\n gap: 0.75rem;\n padding: 0.75rem 1rem;\n}\n\n.input {\n width: 100%;\n min-height: 2.5rem;\n padding: 0.5rem 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n background: var(--background);\n color: var(--foreground);\n font: inherit;\n font-size: 0.875rem;\n line-height: 1.5;\n resize: vertical;\n}\n\n.input:focus {\n outline: none;\n border-color: var(--primary);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent);\n}\n\n.input::placeholder {\n color: var(--muted-foreground);\n}\n\n.input:disabled,\n.sendButton:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.sendButton {\n min-height: 2.5rem;\n padding: 0.5rem 0.875rem;\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n background: var(--primary);\n color: var(--primary-foreground);\n font: inherit;\n font-size: 0.875rem;\n font-weight: 600;\n cursor: pointer;\n}\n\n.sendButton:not(:disabled):hover {\n filter: brightness(0.95);\n}\n\n.activityBubble {\n display: inline-flex;\n align-items: center;\n align-self: flex-start;\n gap: 0.625rem;\n width: fit-content;\n max-width: 100%;\n padding: 0.75rem 0.875rem;\n border: 1px solid var(--border);\n border-radius: 0.875rem;\n background: var(--muted);\n color: var(--muted-foreground);\n font-size: 0.8125rem;\n line-height: 1.4;\n animation: uzi-chat-activity-enter 180ms ease-out 120ms both;\n}\n\n.activityDots { display: flex; align-items: center; gap: 0.2rem; }\n.activityDots i {\n display: block;\n width: 0.35rem;\n height: 0.35rem;\n flex: 0 0 auto;\n border-radius: 50%;\n background: currentColor;\n animation: uzi-chat-dot-pulse 1.2s ease-in-out infinite;\n}\n.activityDots i:nth-child(2) { animation-delay: 150ms; }\n.activityDots i:nth-child(3) { animation-delay: 300ms; }\n\n@keyframes uzi-chat-activity-enter {\n from { opacity: 0; transform: translateY(3px); }\n to { opacity: 1; transform: translateY(0); }\n}\n@keyframes uzi-chat-dot-pulse {\n 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }\n 30% { opacity: 1; transform: translateY(-3px); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .activityBubble, .activityDots i { animation: none; }\n}\n\n.error {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem 1rem;\n border: 1px solid var(--destructive);\n border-radius: 0.5rem;\n margin: 0.75rem 1rem;\n background: color-mix(in srgb, var(--destructive) 10%, transparent);\n}\n\n.error p {\n margin: 0;\n color: var(--destructive);\n font-size: 0.8125rem;\n}\n\n.errorActions {\n display: flex;\n gap: 0.5rem;\n}\n\n.errorActions button,\n.historyLimit button {\n padding: 0.375rem 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.375rem;\n background: transparent;\n color: var(--foreground);\n font: inherit;\n font-size: 0.75rem;\n cursor: pointer;\n}\n\n.errorActions button:hover,\n.historyLimit button:hover {\n background: var(--uzi-surface-2, var(--muted));\n}\n\n.historyLimit {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n align-items: center;\n padding: 0.75rem 1rem;\n margin: 0.75rem 1rem;\n background: var(--uzi-surface-1, var(--muted));\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n}\n\n.historyLimit span {\n font-size: 0.75rem;\n color: var(--muted-foreground);\n}\n\n.emptyState {\n display: grid;\n place-items: center;\n flex: 1;\n min-height: 12rem;\n color: var(--muted-foreground);\n text-align: center;\n}\n\n.emptyState p {\n margin: 0;\n font-size: 0.875rem;\n}\n\n@media (max-width: 640px) {\n .composerForm {\n grid-template-columns: minmax(0, 1fr) auto;\n }\n\n .errorActions {\n flex-wrap: wrap;\n }\n}\n\n/* Optional integration controls use the same Uzi surface and layout tokens. */\n.composerExtras {\n grid-column: 1 / -1;\n min-width: 0;\n}\n\n.composerActions {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n\n.approvalActions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.5rem; }\n.approvalActions button {\n background: var(--background); color: var(--foreground); border: 1px solid var(--border);\n border-radius: 0.375rem; padding: 0.3rem 0.55rem; cursor: pointer;\n}\n.approvalActions button:disabled { opacity: 0.5; cursor: not-allowed; }\n.attachmentError { color: var(--destructive); padding: 0.5rem 1rem; margin: 0; }\n.attachmentList {\n display: flex;\n flex-wrap: nowrap;\n gap: 0.625rem;\n max-width: 100%;\n padding: 0.125rem 0.125rem 0.5rem;\n margin: 0;\n overflow-x: auto;\n list-style: none;\n scrollbar-width: thin;\n}\n.attachmentList li { display: flex; flex: 0 0 auto; min-width: 0; }\n\n/* Role-aware message layout shared by the default renderer and consumer apps. */\n.messageBubble { width: fit-content; min-width: 0; max-width: 100%; }\n.messageBubble.userMessage { align-self: flex-end; max-width: min(90%, 42rem); }\n.messageBubble.assistantMessage { align-self: flex-start; max-width: 100%; }\n.messageLabel { font-size: 0.6875rem; font-weight: 650; color: var(--muted-foreground); }\n\n/* Shared compact composer: same visual grammar as Betty, without app-owned behavior. */\n.composerSurface {\n grid-column: 1 / -1;\n min-width: 0;\n border: 1px solid var(--border);\n border-radius: 0.875rem;\n background: var(--background);\n}\n.composerSurface:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }\n.composerRow { display: flex; align-items: end; min-width: 0; gap: 0.375rem; padding: 0.375rem; }\n.composerRow .input {\n display: block; flex: 1; width: 0; min-width: 0; min-height: 2.75rem;\n max-height: 11rem; padding: 0.625rem 0.25rem; border: 0;\n background: transparent; resize: none; font-size: 1rem;\n}\n.composerRow .input:focus { outline: none; box-shadow: none; }\n.composerIconButton, .composerRow .sendButton {\n display: grid; place-items: center; flex-shrink: 0;\n width: 2.75rem; height: 2.75rem; min-height: 2.75rem;\n padding: 0; border-radius: 0.625rem; cursor: pointer;\n}\n.composerIconButton {\n color: var(--foreground); border: 0; background: transparent;\n}\n.composerIconButton:hover:not(:disabled) { background: var(--muted); }\n.composerRow .sendButton { border: 0; background: var(--primary); color: var(--primary-foreground); }\n.composerIconButton:focus-visible, .composerRow .sendButton:focus-visible {\n outline: 2px solid var(--ring); outline-offset: 2px;\n}\n.composerIconButton:disabled { opacity: 0.5; cursor: not-allowed; }\n.visuallyHidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n\n/* Shared image tiles and file cards for both the composer and message history. */\n.attachmentCard {\n position: relative;\n display: flex;\n flex-direction: column;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n border: 1px solid var(--border);\n border-radius: 0.75rem;\n background: var(--uzi-surface-1, var(--muted));\n}\n.stagedAttachment {\n width: 5.75rem;\n height: 5.75rem;\n}\n.stagedFileAttachment { width: min(15rem, 75vw); }\n.sentAttachment {\n width: fit-content;\n max-width: min(16rem, 100%);\n}\n.imageAttachmentButton {\n display: block;\n width: 100%;\n min-width: 0;\n padding: 0;\n border: 0;\n background: transparent;\n cursor: zoom-in;\n}\n.stagedAttachment .imageAttachmentButton { height: 100%; }\n.attachmentThumbnail {\n display: block;\n max-width: 100%;\n object-fit: contain;\n}\n.stagedAttachment .attachmentThumbnail { width: 100%; height: 100%; object-fit: cover; }\n.sentAttachment .attachmentThumbnail {\n width: auto;\n min-width: 6rem;\n max-height: 14rem;\n}\n.sentAttachmentName {\n display: block;\n max-width: 100%;\n padding: 0.375rem 0.5rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--muted-foreground);\n font-size: 0.6875rem;\n}\n.fileAttachment {\n display: flex;\n align-items: center;\n gap: 0.625rem;\n min-width: 0;\n min-height: 4rem;\n padding: 0.625rem;\n color: var(--foreground);\n}\n.stagedFileAttachment .fileAttachment { height: 100%; box-sizing: border-box; padding-right: 1.875rem; }\n.fileAttachment svg { flex: 0 0 auto; color: var(--muted-foreground); }\n.fileAttachmentDetails {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n min-width: 0;\n font-size: 0.75rem;\n}\n.fileAttachmentDetails a,\n.fileAttachmentDetails > span {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--foreground);\n text-decoration: none;\n}\n.fileAttachmentDetails a:hover { text-decoration: underline; }\n.fileAttachmentDetails small { color: var(--muted-foreground); font-size: 0.6875rem; }\n.removeAttachment {\n position: absolute;\n top: 0.25rem;\n right: 0.25rem;\n display: grid;\n place-items: center;\n width: 1.5rem;\n height: 1.5rem;\n padding: 0;\n border: 1px solid var(--border);\n border-radius: 50%;\n background: var(--background);\n color: var(--foreground);\n font: inherit;\n font-size: 1.125rem;\n line-height: 1;\n cursor: pointer;\n box-shadow: 0 1px 4px rgb(0 0 0 / 20%);\n}\n.removeAttachment:hover { background: var(--muted); }\n.removeAttachmentSlot {\n position: absolute;\n top: 0.25rem;\n right: 0.25rem;\n display: grid;\n place-items: center;\n}\n.removeAttachmentSlot button {\n display: grid;\n place-items: center;\n width: 1.5rem;\n min-width: 1.5rem;\n height: 1.5rem;\n min-height: 1.5rem;\n padding: 0;\n border: 1px solid var(--border);\n border-radius: 50%;\n background: var(--background);\n color: var(--foreground);\n font-size: 1.125rem;\n line-height: 1;\n box-shadow: 0 1px 4px rgb(0 0 0 / 20%);\n}\n.imageAttachmentButton:focus-visible, .removeAttachment:focus-visible,\n.fileAttachmentDetails a:focus-visible, .attachmentDialog button:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n.attachmentDialog {\n max-width: min(95vw, 60rem);\n max-height: 90dvh;\n padding: 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.875rem;\n background: var(--background);\n color: var(--foreground);\n box-shadow: 0 16px 60px rgb(0 0 0 / 35%);\n}\n.attachmentDialog::backdrop { background: rgb(0 0 0 / 80%); }\n.attachmentDialogHeader {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n padding-bottom: 0.5rem;\n font-size: 0.8125rem;\n}\n.attachmentDialogHeader span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.attachmentDialogHeader button {\n flex-shrink: 0;\n width: 2rem;\n height: 2rem;\n border: 0;\n border-radius: 50%;\n background: var(--muted);\n color: var(--foreground);\n font: inherit;\n font-size: 1.25rem;\n cursor: pointer;\n}\n.attachmentDialog > img {\n display: block;\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: calc(90dvh - 5rem);\n margin: auto;\n object-fit: contain;\n}\n"],"mappings":""}
package/dist/index84.cjs CHANGED
@@ -27,22 +27,34 @@ var structuredData = "uzi-ai-chat-module__structuredData__CVeqF";
27
27
  var footer = "uzi-ai-chat-module__footer__VzCvT";
28
28
  var composerForm = "uzi-ai-chat-module__composerForm__E2Wqd";
29
29
  var input = "uzi-ai-chat-module__input__-Rzh8";
30
- var status = "uzi-ai-chat-module__status__Wm3t3";
30
+ var activityBubble = "uzi-ai-chat-module__activityBubble__wik-k";
31
+ var activityDots = "uzi-ai-chat-module__activityDots__WNLWX";
31
32
  var error = "uzi-ai-chat-module__error__csAOF";
32
33
  var emptyState = "uzi-ai-chat-module__emptyState__JzB1x";
33
34
  var composerExtras = "uzi-ai-chat-module__composerExtras__B1qBc";
34
35
  var composerActions = "uzi-ai-chat-module__composerActions__wrPZO";
35
36
  var approvalActions = "uzi-ai-chat-module__approvalActions__ptwyO";
36
- var attachmentList = "uzi-ai-chat-module__attachmentList__isbAi";
37
37
  var attachmentError = "uzi-ai-chat-module__attachmentError__E-kU-";
38
+ var attachmentList = "uzi-ai-chat-module__attachmentList__isbAi";
38
39
  var messageBubble = "uzi-ai-chat-module__messageBubble__ZG7M-";
39
40
  var messageLabel = "uzi-ai-chat-module__messageLabel__esd4p";
40
41
  var composerSurface = "uzi-ai-chat-module__composerSurface__t7lZs";
41
42
  var composerRow = "uzi-ai-chat-module__composerRow__Mjqy2";
42
43
  var composerIconButton = "uzi-ai-chat-module__composerIconButton__6FYlZ";
43
44
  var visuallyHidden = "uzi-ai-chat-module__visuallyHidden__qVCl7";
45
+ var attachmentCard = "uzi-ai-chat-module__attachmentCard__JdvKJ";
46
+ var stagedAttachment = "uzi-ai-chat-module__stagedAttachment__5axXj";
47
+ var stagedFileAttachment = "uzi-ai-chat-module__stagedFileAttachment__hZfVm";
48
+ var sentAttachment = "uzi-ai-chat-module__sentAttachment__PP-fs";
49
+ var imageAttachmentButton = "uzi-ai-chat-module__imageAttachmentButton__PM2cf";
44
50
  var attachmentThumbnail = "uzi-ai-chat-module__attachmentThumbnail__OzmIc";
45
- var attachmentFilename = "uzi-ai-chat-module__attachmentFilename__yHCLk";
51
+ var sentAttachmentName = "uzi-ai-chat-module__sentAttachmentName__rGevY";
52
+ var fileAttachment = "uzi-ai-chat-module__fileAttachment__lVB09";
53
+ var fileAttachmentDetails = "uzi-ai-chat-module__fileAttachmentDetails__NVfrg";
54
+ var removeAttachment = "uzi-ai-chat-module__removeAttachment__ck6iq";
55
+ var removeAttachmentSlot = "uzi-ai-chat-module__removeAttachmentSlot__Xk--P";
56
+ var attachmentDialog = "uzi-ai-chat-module__attachmentDialog__qrG-G";
57
+ var attachmentDialogHeader = "uzi-ai-chat-module__attachmentDialogHeader__cmWXt";
46
58
  var ai_chat_module_default = {
47
59
  container,
48
60
  scope,
@@ -72,28 +84,46 @@ var ai_chat_module_default = {
72
84
  footer,
73
85
  composerForm,
74
86
  input,
75
- status,
87
+ activityBubble,
88
+ "uzi-chat-activity-enter": "uzi-ai-chat-module__uzi-chat-activity-enter__eSi1y",
89
+ activityDots,
90
+ "uzi-chat-dot-pulse": "uzi-ai-chat-module__uzi-chat-dot-pulse__l3fH6",
76
91
  error,
77
92
  emptyState,
78
93
  composerExtras,
79
94
  composerActions,
80
95
  approvalActions,
81
- attachmentList,
82
96
  attachmentError,
97
+ attachmentList,
83
98
  messageBubble,
84
99
  messageLabel,
85
100
  composerSurface,
86
101
  composerRow,
87
102
  composerIconButton,
88
103
  visuallyHidden,
104
+ attachmentCard,
105
+ stagedAttachment,
106
+ stagedFileAttachment,
107
+ sentAttachment,
108
+ imageAttachmentButton,
89
109
  attachmentThumbnail,
90
- attachmentFilename
110
+ sentAttachmentName,
111
+ fileAttachment,
112
+ fileAttachmentDetails,
113
+ removeAttachment,
114
+ removeAttachmentSlot,
115
+ attachmentDialog,
116
+ attachmentDialogHeader
91
117
  };
92
118
  //#endregion
119
+ exports.activityBubble = activityBubble;
120
+ exports.activityDots = activityDots;
93
121
  exports.approvalActions = approvalActions;
94
122
  exports.assistantMessage = assistantMessage;
123
+ exports.attachmentCard = attachmentCard;
124
+ exports.attachmentDialog = attachmentDialog;
125
+ exports.attachmentDialogHeader = attachmentDialogHeader;
95
126
  exports.attachmentError = attachmentError;
96
- exports.attachmentFilename = attachmentFilename;
97
127
  exports.attachmentList = attachmentList;
98
128
  exports.attachmentThumbnail = attachmentThumbnail;
99
129
  exports.chatToolbar = chatToolbar;
@@ -111,8 +141,11 @@ exports.default = ai_chat_module_default;
111
141
  exports.emptyState = emptyState;
112
142
  exports.error = error;
113
143
  exports.errorActions = errorActions;
144
+ exports.fileAttachment = fileAttachment;
145
+ exports.fileAttachmentDetails = fileAttachmentDetails;
114
146
  exports.footer = footer;
115
147
  exports.historyLimit = historyLimit;
148
+ exports.imageAttachmentButton = imageAttachmentButton;
116
149
  exports.input = input;
117
150
  exports.messageBubble = messageBubble;
118
151
  exports.messageLabel = messageLabel;
@@ -121,13 +154,18 @@ exports.newChatButton = newChatButton;
121
154
  exports.reasoning = reasoning;
122
155
  exports.reasoningSummary = reasoningSummary;
123
156
  exports.reasoningText = reasoningText;
157
+ exports.removeAttachment = removeAttachment;
158
+ exports.removeAttachmentSlot = removeAttachmentSlot;
124
159
  exports.scope = scope;
125
160
  exports.scopeHelp = scopeHelp;
126
161
  exports.scopeLabel = scopeLabel;
127
162
  exports.sendButton = sendButton;
163
+ exports.sentAttachment = sentAttachment;
164
+ exports.sentAttachmentName = sentAttachmentName;
128
165
  exports.sources = sources;
129
166
  exports.sourcesLabel = sourcesLabel;
130
- exports.status = status;
167
+ exports.stagedAttachment = stagedAttachment;
168
+ exports.stagedFileAttachment = stagedFileAttachment;
131
169
  exports.structuredData = structuredData;
132
170
  exports.textPart = textPart;
133
171
  exports.thread = thread;
@@ -1 +1 @@
1
- {"version":3,"file":"index84.cjs","names":[],"sources":["../src/components/ai-chat/ai-chat.module.css"],"sourcesContent":[".container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n max-height: none;\n overflow: hidden;\n position: relative;\n}\n\n.scope {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 3rem 0.75rem 1rem;\n background: var(--uzi-surface-1, var(--muted));\n border-bottom: 1px solid var(--border);\n}\n\n.scopeLabel {\n font-size: 0.6875rem;\n font-weight: 650;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--muted-foreground);\n}\n\n.scope strong {\n font-size: 0.875rem;\n}\n\n.scopeHelp {\n margin: 0;\n font-size: 0.75rem;\n color: var(--muted-foreground);\n line-height: 1.5;\n}\n\n.closeBtn {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n z-index: 1;\n display: grid;\n place-items: center;\n width: 2rem;\n height: 2rem;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: var(--muted-foreground);\n cursor: pointer;\n font-size: 0.875rem;\n}\n\n.closeBtn:hover {\n background: var(--uzi-surface-2, var(--muted));\n color: var(--foreground);\n}\n\n.closeBtn:focus-visible,\n.sendButton:focus-visible,\n.errorActions button:focus-visible,\n.historyLimit button:focus-visible {\n outline: 2px solid var(--primary);\n outline-offset: 2px;\n}\n\n.thread {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n}\n\n.viewport {\n flex: 1;\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n gap: 0.75rem;\n}\n\n.chatToolbar {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.75rem;\n min-height: 2.75rem;\n padding: 0.375rem 0.75rem;\n background: var(--uzi-surface-1, var(--background));\n border-bottom: 1px solid var(--border);\n}\n\n.chatToolbarExtras {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n min-width: 0;\n margin-right: auto;\n}\n\n.chatToolbar button {\n margin-left: 0;\n flex-shrink: 0;\n border: 0;\n border-radius: 0.375rem;\n padding: 0.35rem 0.5rem;\n background: transparent;\n color: var(--muted-foreground);\n font: inherit;\n font-size: 0.75rem;\n cursor: pointer;\n}\n\n.chatToolbar .newChatButton {\n display: grid;\n place-items: center;\n width: 2rem;\n height: 2rem;\n padding: 0;\n}\n\n.chatToolbar button:hover {\n color: var(--foreground);\n background: var(--uzi-surface-2, var(--muted));\n}\n\n.chatToolbar button:focus-visible {\n outline: 2px solid var(--primary);\n outline-offset: 2px;\n}\n\n.messageList {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n padding: 1rem;\n}\n\n.userMessage,\n.assistantMessage {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem 1rem;\n border-radius: 0.75rem;\n color: var(--foreground);\n overflow-wrap: anywhere;\n}\n\n.userMessage {\n background: color-mix(in srgb, var(--primary) 10%, transparent);\n border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);\n}\n\n.assistantMessage {\n background: var(--muted);\n border: 1px solid var(--border);\n}\n\n.textPart {\n white-space: pre-wrap;\n line-height: 1.6;\n}\n\n.reasoning,\n.toolPart {\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n padding: 0.5rem 0.75rem;\n background: var(--uzi-surface-1, transparent);\n}\n\n.reasoningSummary,\n.toolPart summary {\n cursor: pointer;\n font-size: 0.75rem;\n font-weight: 600;\n color: var(--muted-foreground);\n}\n\n.reasoningText {\n margin: 0.5rem 0 0;\n font-size: 0.8125rem;\n line-height: 1.6;\n color: var(--muted-foreground);\n white-space: pre-wrap;\n}\n\n.sources {\n padding-top: 0.5rem;\n border-top: 1px solid var(--border);\n}\n\n.sourcesLabel {\n display: block;\n font-size: 0.6875rem;\n font-weight: 650;\n color: var(--muted-foreground);\n margin-bottom: 0.25rem;\n}\n\n.sources ul {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n margin: 0;\n padding-left: 1.25rem;\n}\n\n.sources li {\n font-size: 0.75rem;\n overflow-wrap: anywhere;\n}\n\n.data {\n padding: 0.5rem;\n background: var(--uzi-surface-2, var(--muted));\n border-radius: 0.5rem;\n overflow-x: auto;\n}\n\n.structuredData {\n margin: 0;\n padding: 0.5rem 0;\n max-width: 100%;\n overflow-x: auto;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n font-size: 0.75rem;\n line-height: 1.5;\n}\n\n.footer {\n position: sticky;\n bottom: 0;\n z-index: 1;\n flex-shrink: 0;\n background: var(--background);\n border-top: 1px solid var(--border);\n}\n\n.composerForm {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: end;\n gap: 0.75rem;\n padding: 0.75rem 1rem;\n}\n\n.input {\n width: 100%;\n min-height: 2.5rem;\n padding: 0.5rem 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n background: var(--background);\n color: var(--foreground);\n font: inherit;\n font-size: 0.875rem;\n line-height: 1.5;\n resize: vertical;\n}\n\n.input:focus {\n outline: none;\n border-color: var(--primary);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent);\n}\n\n.input::placeholder {\n color: var(--muted-foreground);\n}\n\n.input:disabled,\n.sendButton:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.sendButton {\n min-height: 2.5rem;\n padding: 0.5rem 0.875rem;\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n background: var(--primary);\n color: var(--primary-foreground);\n font: inherit;\n font-size: 0.875rem;\n font-weight: 600;\n cursor: pointer;\n}\n\n.sendButton:not(:disabled):hover {\n filter: brightness(0.95);\n}\n\n.status {\n margin: 0;\n padding: 0.5rem 1rem;\n text-align: center;\n font-size: 0.8125rem;\n color: var(--muted-foreground);\n font-style: italic;\n}\n\n.error {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem 1rem;\n border: 1px solid var(--destructive);\n border-radius: 0.5rem;\n margin: 0.75rem 1rem;\n background: color-mix(in srgb, var(--destructive) 10%, transparent);\n}\n\n.error p {\n margin: 0;\n color: var(--destructive);\n font-size: 0.8125rem;\n}\n\n.errorActions {\n display: flex;\n gap: 0.5rem;\n}\n\n.errorActions button,\n.historyLimit button {\n padding: 0.375rem 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.375rem;\n background: transparent;\n color: var(--foreground);\n font: inherit;\n font-size: 0.75rem;\n cursor: pointer;\n}\n\n.errorActions button:hover,\n.historyLimit button:hover {\n background: var(--uzi-surface-2, var(--muted));\n}\n\n.historyLimit {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n align-items: center;\n padding: 0.75rem 1rem;\n margin: 0.75rem 1rem;\n background: var(--uzi-surface-1, var(--muted));\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n}\n\n.historyLimit span {\n font-size: 0.75rem;\n color: var(--muted-foreground);\n}\n\n.emptyState {\n display: grid;\n place-items: center;\n flex: 1;\n min-height: 12rem;\n color: var(--muted-foreground);\n text-align: center;\n}\n\n.emptyState p {\n margin: 0;\n font-size: 0.875rem;\n}\n\n@media (max-width: 640px) {\n .composerForm {\n grid-template-columns: minmax(0, 1fr) auto;\n }\n\n .errorActions {\n flex-wrap: wrap;\n }\n}\n\n/* Optional integration controls use the same Uzi surface and layout tokens. */\n.composerExtras {\n grid-column: 1 / -1;\n min-width: 0;\n}\n\n.composerActions {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n\n.approvalActions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.5rem; }\n.approvalActions button, .attachmentList button {\n background: var(--background); color: var(--foreground); border: 1px solid var(--border);\n border-radius: 0.375rem; padding: 0.3rem 0.55rem; cursor: pointer;\n}\n.approvalActions button:disabled { opacity: 0.5; cursor: not-allowed; }\n.attachmentError { color: var(--destructive); padding: 0.5rem 1rem; margin: 0; }\n.attachmentList { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.4rem 0; margin: 0; list-style: none; }\n.attachmentList li { display: inline-flex; gap: 0.5rem; align-items: center; font-size: 0.75rem; }\n\n/* Role-aware message layout shared by the default renderer and consumer apps. */\n.messageBubble { width: fit-content; min-width: 0; max-width: 100%; }\n.messageBubble.userMessage { align-self: flex-end; max-width: min(90%, 42rem); }\n.messageBubble.assistantMessage { align-self: flex-start; max-width: 100%; }\n.messageLabel { font-size: 0.6875rem; font-weight: 650; color: var(--muted-foreground); }\n\n/* Shared compact composer: same visual grammar as Betty, without app-owned behavior. */\n.composerSurface {\n grid-column: 1 / -1;\n min-width: 0;\n border: 1px solid var(--border);\n border-radius: 0.875rem;\n background: var(--background);\n}\n.composerSurface:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }\n.composerRow { display: flex; align-items: end; min-width: 0; gap: 0.375rem; padding: 0.375rem; }\n.composerRow .input {\n display: block; flex: 1; width: 0; min-width: 0; min-height: 2.75rem;\n max-height: 11rem; padding: 0.625rem 0.25rem; border: 0;\n background: transparent; resize: none; font-size: 1rem;\n}\n.composerRow .input:focus { outline: none; box-shadow: none; }\n.composerIconButton, .composerRow .sendButton {\n display: grid; place-items: center; flex-shrink: 0;\n width: 2.75rem; height: 2.75rem; min-height: 2.75rem;\n padding: 0; border-radius: 0.625rem; cursor: pointer;\n}\n.composerIconButton {\n color: var(--foreground); border: 0; background: transparent;\n}\n.composerIconButton:hover:not(:disabled) { background: var(--muted); }\n.composerRow .sendButton { border: 0; background: var(--primary); color: var(--primary-foreground); }\n.composerIconButton:focus-visible, .composerRow .sendButton:focus-visible {\n outline: 2px solid var(--ring); outline-offset: 2px;\n}\n.composerIconButton:disabled { opacity: 0.5; cursor: not-allowed; }\n.visuallyHidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n\n/* Thumbnail treatment matches the Betty attachment shelf. */\n.attachmentList {\n gap: 0.5rem;\n padding: 0;\n align-items: center;\n}\n.attachmentList li {\n max-width: 100%;\n position: relative;\n min-height: 3rem;\n border-radius: 0.625rem;\n border: 1px solid var(--border);\n background: var(--uzi-surface-1, var(--muted));\n padding: 0.125rem;\n}\n.attachmentThumbnail {\n width: 3rem;\n height: 3rem;\n border-radius: 0.5rem;\n object-fit: cover;\n}\n.attachmentFilename {\n max-width: 11rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 0.5rem;\n}\n.attachmentList li button {\n flex-shrink: 0;\n border: 0;\n background: transparent;\n color: var(--muted-foreground);\n border-radius: 0.4rem;\n}\n.attachmentList li button:hover { color: var(--foreground); background: var(--muted); }\n"],"mappings":""}
1
+ {"version":3,"file":"index84.cjs","names":[],"sources":["../src/components/ai-chat/ai-chat.module.css"],"sourcesContent":[".container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n max-height: none;\n overflow: hidden;\n position: relative;\n}\n\n.scope {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 3rem 0.75rem 1rem;\n background: var(--uzi-surface-1, var(--muted));\n border-bottom: 1px solid var(--border);\n}\n\n.scopeLabel {\n font-size: 0.6875rem;\n font-weight: 650;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--muted-foreground);\n}\n\n.scope strong {\n font-size: 0.875rem;\n}\n\n.scopeHelp {\n margin: 0;\n font-size: 0.75rem;\n color: var(--muted-foreground);\n line-height: 1.5;\n}\n\n.closeBtn {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n z-index: 1;\n display: grid;\n place-items: center;\n width: 2rem;\n height: 2rem;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: var(--muted-foreground);\n cursor: pointer;\n font-size: 0.875rem;\n}\n\n.closeBtn:hover {\n background: var(--uzi-surface-2, var(--muted));\n color: var(--foreground);\n}\n\n.closeBtn:focus-visible,\n.sendButton:focus-visible,\n.errorActions button:focus-visible,\n.historyLimit button:focus-visible {\n outline: 2px solid var(--primary);\n outline-offset: 2px;\n}\n\n.thread {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n}\n\n.viewport {\n flex: 1;\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n gap: 0.75rem;\n}\n\n.chatToolbar {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 0.75rem;\n min-height: 2.75rem;\n padding: 0.375rem 0.75rem;\n background: var(--uzi-surface-1, var(--background));\n border-bottom: 1px solid var(--border);\n}\n\n.chatToolbarExtras {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n min-width: 0;\n margin-right: auto;\n}\n\n.chatToolbar button {\n margin-left: 0;\n flex-shrink: 0;\n border: 0;\n border-radius: 0.375rem;\n padding: 0.35rem 0.5rem;\n background: transparent;\n color: var(--muted-foreground);\n font: inherit;\n font-size: 0.75rem;\n cursor: pointer;\n}\n\n.chatToolbar .newChatButton {\n display: grid;\n place-items: center;\n width: 2rem;\n height: 2rem;\n padding: 0;\n}\n\n.chatToolbar button:hover {\n color: var(--foreground);\n background: var(--uzi-surface-2, var(--muted));\n}\n\n.chatToolbar button:focus-visible {\n outline: 2px solid var(--primary);\n outline-offset: 2px;\n}\n\n.messageList {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n padding: 1rem;\n}\n\n.userMessage,\n.assistantMessage {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem 1rem;\n border-radius: 0.75rem;\n color: var(--foreground);\n overflow-wrap: anywhere;\n}\n\n.userMessage {\n background: color-mix(in srgb, var(--primary) 10%, transparent);\n border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);\n}\n\n.assistantMessage {\n background: var(--muted);\n border: 1px solid var(--border);\n}\n\n.textPart {\n white-space: pre-wrap;\n line-height: 1.6;\n}\n\n.reasoning,\n.toolPart {\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n padding: 0.5rem 0.75rem;\n background: var(--uzi-surface-1, transparent);\n}\n\n.reasoningSummary,\n.toolPart summary {\n cursor: pointer;\n font-size: 0.75rem;\n font-weight: 600;\n color: var(--muted-foreground);\n}\n\n.reasoningText {\n margin: 0.5rem 0 0;\n font-size: 0.8125rem;\n line-height: 1.6;\n color: var(--muted-foreground);\n white-space: pre-wrap;\n}\n\n.sources {\n padding-top: 0.5rem;\n border-top: 1px solid var(--border);\n}\n\n.sourcesLabel {\n display: block;\n font-size: 0.6875rem;\n font-weight: 650;\n color: var(--muted-foreground);\n margin-bottom: 0.25rem;\n}\n\n.sources ul {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n margin: 0;\n padding-left: 1.25rem;\n}\n\n.sources li {\n font-size: 0.75rem;\n overflow-wrap: anywhere;\n}\n\n.data {\n padding: 0.5rem;\n background: var(--uzi-surface-2, var(--muted));\n border-radius: 0.5rem;\n overflow-x: auto;\n}\n\n.structuredData {\n margin: 0;\n padding: 0.5rem 0;\n max-width: 100%;\n overflow-x: auto;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n font-size: 0.75rem;\n line-height: 1.5;\n}\n\n.footer {\n position: sticky;\n bottom: 0;\n z-index: 1;\n flex-shrink: 0;\n background: var(--background);\n border-top: 1px solid var(--border);\n}\n\n.composerForm {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: end;\n gap: 0.75rem;\n padding: 0.75rem 1rem;\n}\n\n.input {\n width: 100%;\n min-height: 2.5rem;\n padding: 0.5rem 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n background: var(--background);\n color: var(--foreground);\n font: inherit;\n font-size: 0.875rem;\n line-height: 1.5;\n resize: vertical;\n}\n\n.input:focus {\n outline: none;\n border-color: var(--primary);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent);\n}\n\n.input::placeholder {\n color: var(--muted-foreground);\n}\n\n.input:disabled,\n.sendButton:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.sendButton {\n min-height: 2.5rem;\n padding: 0.5rem 0.875rem;\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n background: var(--primary);\n color: var(--primary-foreground);\n font: inherit;\n font-size: 0.875rem;\n font-weight: 600;\n cursor: pointer;\n}\n\n.sendButton:not(:disabled):hover {\n filter: brightness(0.95);\n}\n\n.activityBubble {\n display: inline-flex;\n align-items: center;\n align-self: flex-start;\n gap: 0.625rem;\n width: fit-content;\n max-width: 100%;\n padding: 0.75rem 0.875rem;\n border: 1px solid var(--border);\n border-radius: 0.875rem;\n background: var(--muted);\n color: var(--muted-foreground);\n font-size: 0.8125rem;\n line-height: 1.4;\n animation: uzi-chat-activity-enter 180ms ease-out 120ms both;\n}\n\n.activityDots { display: flex; align-items: center; gap: 0.2rem; }\n.activityDots i {\n display: block;\n width: 0.35rem;\n height: 0.35rem;\n flex: 0 0 auto;\n border-radius: 50%;\n background: currentColor;\n animation: uzi-chat-dot-pulse 1.2s ease-in-out infinite;\n}\n.activityDots i:nth-child(2) { animation-delay: 150ms; }\n.activityDots i:nth-child(3) { animation-delay: 300ms; }\n\n@keyframes uzi-chat-activity-enter {\n from { opacity: 0; transform: translateY(3px); }\n to { opacity: 1; transform: translateY(0); }\n}\n@keyframes uzi-chat-dot-pulse {\n 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }\n 30% { opacity: 1; transform: translateY(-3px); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .activityBubble, .activityDots i { animation: none; }\n}\n\n.error {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem 1rem;\n border: 1px solid var(--destructive);\n border-radius: 0.5rem;\n margin: 0.75rem 1rem;\n background: color-mix(in srgb, var(--destructive) 10%, transparent);\n}\n\n.error p {\n margin: 0;\n color: var(--destructive);\n font-size: 0.8125rem;\n}\n\n.errorActions {\n display: flex;\n gap: 0.5rem;\n}\n\n.errorActions button,\n.historyLimit button {\n padding: 0.375rem 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.375rem;\n background: transparent;\n color: var(--foreground);\n font: inherit;\n font-size: 0.75rem;\n cursor: pointer;\n}\n\n.errorActions button:hover,\n.historyLimit button:hover {\n background: var(--uzi-surface-2, var(--muted));\n}\n\n.historyLimit {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n align-items: center;\n padding: 0.75rem 1rem;\n margin: 0.75rem 1rem;\n background: var(--uzi-surface-1, var(--muted));\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n}\n\n.historyLimit span {\n font-size: 0.75rem;\n color: var(--muted-foreground);\n}\n\n.emptyState {\n display: grid;\n place-items: center;\n flex: 1;\n min-height: 12rem;\n color: var(--muted-foreground);\n text-align: center;\n}\n\n.emptyState p {\n margin: 0;\n font-size: 0.875rem;\n}\n\n@media (max-width: 640px) {\n .composerForm {\n grid-template-columns: minmax(0, 1fr) auto;\n }\n\n .errorActions {\n flex-wrap: wrap;\n }\n}\n\n/* Optional integration controls use the same Uzi surface and layout tokens. */\n.composerExtras {\n grid-column: 1 / -1;\n min-width: 0;\n}\n\n.composerActions {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n\n.approvalActions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.5rem; }\n.approvalActions button {\n background: var(--background); color: var(--foreground); border: 1px solid var(--border);\n border-radius: 0.375rem; padding: 0.3rem 0.55rem; cursor: pointer;\n}\n.approvalActions button:disabled { opacity: 0.5; cursor: not-allowed; }\n.attachmentError { color: var(--destructive); padding: 0.5rem 1rem; margin: 0; }\n.attachmentList {\n display: flex;\n flex-wrap: nowrap;\n gap: 0.625rem;\n max-width: 100%;\n padding: 0.125rem 0.125rem 0.5rem;\n margin: 0;\n overflow-x: auto;\n list-style: none;\n scrollbar-width: thin;\n}\n.attachmentList li { display: flex; flex: 0 0 auto; min-width: 0; }\n\n/* Role-aware message layout shared by the default renderer and consumer apps. */\n.messageBubble { width: fit-content; min-width: 0; max-width: 100%; }\n.messageBubble.userMessage { align-self: flex-end; max-width: min(90%, 42rem); }\n.messageBubble.assistantMessage { align-self: flex-start; max-width: 100%; }\n.messageLabel { font-size: 0.6875rem; font-weight: 650; color: var(--muted-foreground); }\n\n/* Shared compact composer: same visual grammar as Betty, without app-owned behavior. */\n.composerSurface {\n grid-column: 1 / -1;\n min-width: 0;\n border: 1px solid var(--border);\n border-radius: 0.875rem;\n background: var(--background);\n}\n.composerSurface:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }\n.composerRow { display: flex; align-items: end; min-width: 0; gap: 0.375rem; padding: 0.375rem; }\n.composerRow .input {\n display: block; flex: 1; width: 0; min-width: 0; min-height: 2.75rem;\n max-height: 11rem; padding: 0.625rem 0.25rem; border: 0;\n background: transparent; resize: none; font-size: 1rem;\n}\n.composerRow .input:focus { outline: none; box-shadow: none; }\n.composerIconButton, .composerRow .sendButton {\n display: grid; place-items: center; flex-shrink: 0;\n width: 2.75rem; height: 2.75rem; min-height: 2.75rem;\n padding: 0; border-radius: 0.625rem; cursor: pointer;\n}\n.composerIconButton {\n color: var(--foreground); border: 0; background: transparent;\n}\n.composerIconButton:hover:not(:disabled) { background: var(--muted); }\n.composerRow .sendButton { border: 0; background: var(--primary); color: var(--primary-foreground); }\n.composerIconButton:focus-visible, .composerRow .sendButton:focus-visible {\n outline: 2px solid var(--ring); outline-offset: 2px;\n}\n.composerIconButton:disabled { opacity: 0.5; cursor: not-allowed; }\n.visuallyHidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n\n/* Shared image tiles and file cards for both the composer and message history. */\n.attachmentCard {\n position: relative;\n display: flex;\n flex-direction: column;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n border: 1px solid var(--border);\n border-radius: 0.75rem;\n background: var(--uzi-surface-1, var(--muted));\n}\n.stagedAttachment {\n width: 5.75rem;\n height: 5.75rem;\n}\n.stagedFileAttachment { width: min(15rem, 75vw); }\n.sentAttachment {\n width: fit-content;\n max-width: min(16rem, 100%);\n}\n.imageAttachmentButton {\n display: block;\n width: 100%;\n min-width: 0;\n padding: 0;\n border: 0;\n background: transparent;\n cursor: zoom-in;\n}\n.stagedAttachment .imageAttachmentButton { height: 100%; }\n.attachmentThumbnail {\n display: block;\n max-width: 100%;\n object-fit: contain;\n}\n.stagedAttachment .attachmentThumbnail { width: 100%; height: 100%; object-fit: cover; }\n.sentAttachment .attachmentThumbnail {\n width: auto;\n min-width: 6rem;\n max-height: 14rem;\n}\n.sentAttachmentName {\n display: block;\n max-width: 100%;\n padding: 0.375rem 0.5rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--muted-foreground);\n font-size: 0.6875rem;\n}\n.fileAttachment {\n display: flex;\n align-items: center;\n gap: 0.625rem;\n min-width: 0;\n min-height: 4rem;\n padding: 0.625rem;\n color: var(--foreground);\n}\n.stagedFileAttachment .fileAttachment { height: 100%; box-sizing: border-box; padding-right: 1.875rem; }\n.fileAttachment svg { flex: 0 0 auto; color: var(--muted-foreground); }\n.fileAttachmentDetails {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n min-width: 0;\n font-size: 0.75rem;\n}\n.fileAttachmentDetails a,\n.fileAttachmentDetails > span {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--foreground);\n text-decoration: none;\n}\n.fileAttachmentDetails a:hover { text-decoration: underline; }\n.fileAttachmentDetails small { color: var(--muted-foreground); font-size: 0.6875rem; }\n.removeAttachment {\n position: absolute;\n top: 0.25rem;\n right: 0.25rem;\n display: grid;\n place-items: center;\n width: 1.5rem;\n height: 1.5rem;\n padding: 0;\n border: 1px solid var(--border);\n border-radius: 50%;\n background: var(--background);\n color: var(--foreground);\n font: inherit;\n font-size: 1.125rem;\n line-height: 1;\n cursor: pointer;\n box-shadow: 0 1px 4px rgb(0 0 0 / 20%);\n}\n.removeAttachment:hover { background: var(--muted); }\n.removeAttachmentSlot {\n position: absolute;\n top: 0.25rem;\n right: 0.25rem;\n display: grid;\n place-items: center;\n}\n.removeAttachmentSlot button {\n display: grid;\n place-items: center;\n width: 1.5rem;\n min-width: 1.5rem;\n height: 1.5rem;\n min-height: 1.5rem;\n padding: 0;\n border: 1px solid var(--border);\n border-radius: 50%;\n background: var(--background);\n color: var(--foreground);\n font-size: 1.125rem;\n line-height: 1;\n box-shadow: 0 1px 4px rgb(0 0 0 / 20%);\n}\n.imageAttachmentButton:focus-visible, .removeAttachment:focus-visible,\n.fileAttachmentDetails a:focus-visible, .attachmentDialog button:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n.attachmentDialog {\n max-width: min(95vw, 60rem);\n max-height: 90dvh;\n padding: 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.875rem;\n background: var(--background);\n color: var(--foreground);\n box-shadow: 0 16px 60px rgb(0 0 0 / 35%);\n}\n.attachmentDialog::backdrop { background: rgb(0 0 0 / 80%); }\n.attachmentDialogHeader {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n padding-bottom: 0.5rem;\n font-size: 0.8125rem;\n}\n.attachmentDialogHeader span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.attachmentDialogHeader button {\n flex-shrink: 0;\n width: 2rem;\n height: 2rem;\n border: 0;\n border-radius: 50%;\n background: var(--muted);\n color: var(--foreground);\n font: inherit;\n font-size: 1.25rem;\n cursor: pointer;\n}\n.attachmentDialog > img {\n display: block;\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: calc(90dvh - 5rem);\n margin: auto;\n object-fit: contain;\n}\n"],"mappings":""}