@lukeashford/aurelius 3.3.0 → 3.5.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/index.d.mts +52 -3
- package/dist/index.d.ts +52 -3
- package/dist/index.js +73 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +105 -52
- package/dist/index.mjs.map +1 -1
- package/llms.md +12 -6
- package/package.json +1 -1
package/llms.md
CHANGED
|
@@ -155,13 +155,13 @@ Import from `@lukeashford/aurelius`:
|
|
|
155
155
|
| VideoCard | src, title, subtitle, aspectRatio (${number}/${number}), playing, controls, light, volume, muted, loop, mediaClassName, contentClassName, playerProps, loading |
|
|
156
156
|
| ArtifactsPanel | nodes, loading, artifactCount, onExpand |
|
|
157
157
|
| BranchNavigator | current, total, onPrevious, onNext, size, showIcon |
|
|
158
|
-
| ChatInput | position (centered, bottom), placeholder, helperText, onSubmit, disabled, animate, isStreaming, onStop, attachments, onAttachmentsChange, showAttachmentButton, acceptedFileTypes |
|
|
159
|
-
| ChatInterface | messages, conversationTree, onTreeChange, conversations, onMessageSubmit, onEditMessage, onRetryMessage, onStop, onSelectConversation, onNewChat, isStreaming, isThinking, placeholder, emptyStateHelper, emptyState, showAttachmentButton, enableMessageActions, attachments, onAttachmentsChange, artifactNodes, isArtifactsPanelOpen, onArtifactsPanelOpenChange, tasks, tasksTitle, onStopAllTasks
|
|
158
|
+
| ChatInput | position (centered, bottom), placeholder, helperText, onSubmit, disabled, animate, isStreaming, onStop, attachments, onAttachmentsChange, showAttachmentButton, acceptedFileTypes, notice, onInputChange |
|
|
159
|
+
| ChatInterface | messages, conversationTree, onTreeChange, conversations, onMessageSubmit, onEditMessage, onRetryMessage, onStop, onSelectConversation, onNewChat, isStreaming, isThinking, placeholder, emptyStateHelper, emptyState, showAttachmentButton, enableMessageActions, attachments, onAttachmentsChange, artifactNodes, isArtifactsPanelOpen, onArtifactsPanelOpenChange, tasks, tasksTitle, onStopAllTasks |
|
|
160
160
|
| ChatView | messages, latestUserMessageIndex, isStreaming, isThinking, onScroll |
|
|
161
161
|
| MessageActions | variant (user, assistant), content, onEdit, onRetry, isEditing, onEditingChange, editValue |
|
|
162
162
|
| ThinkingIndicator | isVisible, phraseInterval, phrases |
|
|
163
163
|
| TodosList | tasks, title, onStopAllTasks |
|
|
164
|
-
| ToolPanelContainer | topContent, bottomContent, width, onResizeStart, side |
|
|
164
|
+
| ToolPanelContainer | topContent, bottomContent, width, initialTopPercent, onResizeStart, side |
|
|
165
165
|
| ToolSidebar | tools, activeTools, onToggleTool, side |
|
|
166
166
|
| ChatBubbleIcon | children |
|
|
167
167
|
| CheckSquareIcon | children |
|
|
@@ -375,6 +375,10 @@ Features:
|
|
|
375
375
|
- Streaming state with stop button
|
|
376
376
|
- Animated transition between positions
|
|
377
377
|
|
|
378
|
+
- **ChatInputNotice.variant**: * Visual severity: 'warning' shows a dismissible amber notice, 'error' shows a persistent red notice
|
|
379
|
+
- **ChatInputNotice.content**: * Content to render — plain text or any React node (e.g. text + button for error state)
|
|
380
|
+
- **ChatInputNotice.dismissible**: * Whether to show a dismiss (×) button. Defaults to true for warning, ignored for error.
|
|
381
|
+
- **ChatInputNotice.onDismiss**: * Called when the dismiss button is clicked. Consumer controls whether the notice disappears.
|
|
378
382
|
- **position**: * Position of the input: 'centered' for empty state, 'bottom' for conversation mode
|
|
379
383
|
- **placeholder**: * Placeholder text for the input
|
|
380
384
|
- **helperText**: * Helper text shown above the input in centered mode
|
|
@@ -387,6 +391,8 @@ Features:
|
|
|
387
391
|
- **onAttachmentsChange**: * Called when attachments change (controlled mode)
|
|
388
392
|
- **showAttachmentButton**: * Whether to show the attachment button
|
|
389
393
|
- **acceptedFileTypes**: * Accepted file types for attachments
|
|
394
|
+
- **notice**: * Optional notice displayed above the input (e.g. credit warnings or exhaustion messages)
|
|
395
|
+
- **onInputChange**: * Called whenever the input value changes, giving the consumer access to the current text
|
|
390
396
|
|
|
391
397
|
**ChatInterface**
|
|
392
398
|
ChatInterface is the main orchestrator for a full-featured chat experience.
|
|
@@ -437,8 +443,7 @@ artifactNodes prop.
|
|
|
437
443
|
- **onArtifactsPanelOpenChange**: * Called when the artifacts panel is opened or closed (controlled).
|
|
438
444
|
- **tasks**: * Tasks to display in the todos list tool panel. Shows a list of tasks with status indicators.
|
|
439
445
|
- **tasksTitle**: * Title for the todos list @default "Tasks"
|
|
440
|
-
- **onStopAllTasks**: * Called when the "Stop All Tasks" button is clicked in the tasks panel. Only shown when at least one task has in_progress status. The consumer app decides what stopping means (cancel API calls, mark tasks cancelled, etc.).
|
|
441
|
-
- **tools**: * Additional tools to add to the tool sidebars. Each ExternalToolDefinition provides an id, icon, label, group ('top-left' | 'bottom-left' | 'top-right' | 'bottom-right'), and content (ReactNode) to render when opened. Tools in the same group are mutually exclusive. Built-in tools occupy: History (top-left), Artifacts (top-right), Tasks (bottom-right). Consumer tools are added alongside these.
|
|
446
|
+
- **onStopAllTasks**: * Called when the "Stop All Tasks" button is clicked in the tasks panel. Only shown when at least one task has in_progress status. The consumer app decides what stopping means (cancel API calls, mark tasks cancelled, etc.). * May return a Promise. While the Promise is pending, the button becomes disabled and displays a spinner with "Stopping tasks" so the user knows the stop request is in flight.
|
|
442
447
|
|
|
443
448
|
**ChatView**
|
|
444
449
|
ChatView displays a conversation thread with smart scrolling behavior.
|
|
@@ -480,7 +485,7 @@ but has not yet started streaming tokens. It cycles through flavorful "thinking"
|
|
|
480
485
|
- **Task.subtasks**: * Optional subtasks (shown when parent is in_progress or done)
|
|
481
486
|
- **tasks**: * Array of tasks to display
|
|
482
487
|
- **title**: * Title for the todos list @default "Tasks"
|
|
483
|
-
- **onStopAllTasks**: * Called when the "Stop All Tasks" button is clicked. Only shown when at least one task is in_progress. The consumer decides what stopping means (cancel API calls, mark cancelled, etc.).
|
|
488
|
+
- **onStopAllTasks**: * Called when the "Stop All Tasks" button is clicked. Only shown when at least one task is in_progress. The consumer decides what stopping means (cancel API calls, mark cancelled, etc.). * May return a Promise. While the Promise is pending, the button becomes disabled and displays a spinner with "Stopping tasks" to give the user feedback that the stop request is in flight.
|
|
484
489
|
|
|
485
490
|
**ToolPanelContainer**
|
|
486
491
|
ToolPanelContainer manages the layout of one or two tool panels
|
|
@@ -493,6 +498,7 @@ to the previous ArtifactsPanel resize behavior.
|
|
|
493
498
|
- **topContent**: * Content for the top tool slot (from the top group). When null, the bottom slot takes full height.
|
|
494
499
|
- **bottomContent**: * Content for the bottom tool slot (from the bottom group). When null, the top slot takes full height.
|
|
495
500
|
- **width**: * Panel width as CSS value (e.g., "50vw")
|
|
501
|
+
- **initialTopPercent**: * Default top panel height percentage (0-100). @default 60
|
|
496
502
|
- **onResizeStart**: * Callback to start horizontal resizing (width dragger)
|
|
497
503
|
- **side**: * Which side this panel is on — controls border and resize handle position
|
|
498
504
|
|
package/package.json
CHANGED