@lukeashford/aurelius 3.5.0 → 3.7.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 +70 -4
- package/dist/index.d.ts +70 -4
- package/dist/index.js +513 -214
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +512 -214
- package/dist/index.mjs.map +1 -1
- package/llms.md +22 -2
- package/package.json +1 -1
package/llms.md
CHANGED
|
@@ -155,9 +155,10 @@ 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, 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 |
|
|
158
|
+
| ChatInput | position (centered, bottom), placeholder, helperText, onSubmit, disabled, animate, isStreaming, onStop, attachments, onAttachmentsChange, showAttachmentButton, acceptedFileTypes, notice, onInputChange, initialInputValue, autoFocus |
|
|
159
|
+
| ChatInterface | messages, conversationTree, onTreeChange, conversations, onMessageSubmit, onEditMessage, onRetryMessage, onStop, onSelectConversation, onNewChat, onRenameConversation, isStreaming, isThinking, placeholder, emptyStateHelper, emptyState, showAttachmentButton, enableMessageActions, attachments, onAttachmentsChange, artifactNodes, isArtifactsPanelOpen, onArtifactsPanelOpenChange, tasks, tasksTitle, onStopAllTasks |
|
|
160
160
|
| ChatView | messages, latestUserMessageIndex, isStreaming, isThinking, onScroll |
|
|
161
|
+
| HistoryPanel | conversations, onSelectConversation, onNewChat, onRenameConversation |
|
|
161
162
|
| MessageActions | variant (user, assistant), content, onEdit, onRetry, isEditing, onEditingChange, editValue |
|
|
162
163
|
| ThinkingIndicator | isVisible, phraseInterval, phrases |
|
|
163
164
|
| TodosList | tasks, title, onStopAllTasks |
|
|
@@ -393,6 +394,8 @@ Features:
|
|
|
393
394
|
- **acceptedFileTypes**: * Accepted file types for attachments
|
|
394
395
|
- **notice**: * Optional notice displayed above the input (e.g. credit warnings or exhaustion messages)
|
|
395
396
|
- **onInputChange**: * Called whenever the input value changes, giving the consumer access to the current text
|
|
397
|
+
- **initialInputValue**: * Initial value for the input, used for state restoration (e.g. from DB or localStorage)
|
|
398
|
+
- **autoFocus**: * Whether to automatically focus the input when it becomes enabled
|
|
396
399
|
|
|
397
400
|
**ChatInterface**
|
|
398
401
|
ChatInterface is the main orchestrator for a full-featured chat experience.
|
|
@@ -419,6 +422,11 @@ artifactNodes prop.
|
|
|
419
422
|
- **ChatMessage.variant**: * Whether the message is from the user or the assistant
|
|
420
423
|
- **ChatMessage.content**: * Message content (Markdown supported)
|
|
421
424
|
- **ChatMessage.isStreaming**: * Whether the message is currently streaming
|
|
425
|
+
- **Conversation.id**: * Unique identifier for the conversation
|
|
426
|
+
- **Conversation.title**: * Title shown as the first line of the row. Editable via the rename affordance.
|
|
427
|
+
- **Conversation.project**: * Project this conversation belongs to. Shown as the second line of the row and collected into the project filter in the history panel.
|
|
428
|
+
- **Conversation.timestamp**: * Timestamp used to group conversations into Today / Yesterday / Older. Accepts a Date, ISO string, or millisecond epoch. Not displayed.
|
|
429
|
+
- **Conversation.isActive**: * Whether this conversation is currently active (highlighted in the list).
|
|
422
430
|
- **messages**: * Array of messages in the conversation (flat mode) Use this OR conversationTree, not both
|
|
423
431
|
- **conversationTree**: * Conversation tree for branching support Use this OR messages, not both
|
|
424
432
|
- **onTreeChange**: * Called when the conversation tree changes (for tree mode)
|
|
@@ -429,6 +437,7 @@ artifactNodes prop.
|
|
|
429
437
|
- **onStop**: * Called when the Stop button is clicked during assistant streaming.
|
|
430
438
|
- **onSelectConversation**: * Called when a conversation is selected from the sidebar.
|
|
431
439
|
- **onNewChat**: * Called when the "New Chat" button is clicked in the sidebar.
|
|
440
|
+
- **onRenameConversation**: * Called when a conversation's title is renamed from the history panel. Receives the conversation id and the new, trimmed title.
|
|
432
441
|
- **isStreaming**: * Whether the assistant is currently streaming a response. Shows a stop button and disables certain actions.
|
|
433
442
|
- **isThinking**: * Whether to show the thinking indicator. Typically shown after a user message but before the first streaming token.
|
|
434
443
|
- **placeholder**: * Placeholder text for the main chat input.
|
|
@@ -461,6 +470,17 @@ Key behaviors:
|
|
|
461
470
|
- **isThinking**: * Whether to show the thinking indicator (between user message and response)
|
|
462
471
|
- **onScroll**: * Callback when the user scrolls manually
|
|
463
472
|
|
|
473
|
+
**HistoryPanel**
|
|
474
|
+
HistoryPanel renders the conversation history sidebar: a project filter,
|
|
475
|
+
a "New Chat" button, and the conversation list grouped by recency
|
|
476
|
+
(Today / Yesterday / Older). Each row shows the title and an optional
|
|
477
|
+
project subtitle, and exposes an inline rename affordance on hover.
|
|
478
|
+
|
|
479
|
+
- **conversations**: * List of past conversations to display.
|
|
480
|
+
- **onSelectConversation**: * Called when a conversation is selected.
|
|
481
|
+
- **onNewChat**: * Called when the "New Chat" button is clicked.
|
|
482
|
+
- **onRenameConversation**: * Called when a conversation's title is edited.
|
|
483
|
+
|
|
464
484
|
**MessageActions**
|
|
465
485
|
- **variant**: * Whether this is for a user or assistant message
|
|
466
486
|
- **content**: * The message content for copy functionality
|
package/package.json
CHANGED