@lukeashford/aurelius 2.17.0 → 2.18.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 +56 -26
- package/dist/index.d.ts +56 -26
- package/dist/index.js +48 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +45 -4
- package/dist/index.mjs.map +1 -1
- package/llms.md +13 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -846,7 +846,14 @@ interface CollapsedSidebarToggleProps extends React$1.ButtonHTMLAttributes<HTMLB
|
|
|
846
846
|
}
|
|
847
847
|
declare const CollapsedSidebarToggle: React$1.ForwardRefExoticComponent<CollapsedSidebarToggleProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
848
848
|
|
|
849
|
-
|
|
849
|
+
declare const TASK_STATUSES: {
|
|
850
|
+
readonly PENDING: "pending";
|
|
851
|
+
readonly IN_PROGRESS: "in_progress";
|
|
852
|
+
readonly DONE: "done";
|
|
853
|
+
readonly CANCELLED: "cancelled";
|
|
854
|
+
readonly FAILED: "failed";
|
|
855
|
+
};
|
|
856
|
+
type TaskStatus = typeof TASK_STATUSES[keyof typeof TASK_STATUSES];
|
|
850
857
|
interface Task {
|
|
851
858
|
/**
|
|
852
859
|
* Unique identifier for the task
|
|
@@ -881,9 +888,11 @@ interface TodosListProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
881
888
|
*
|
|
882
889
|
* Features:
|
|
883
890
|
* - Nested tasks with indentation
|
|
884
|
-
* - Status indicators: done (checkmark), in_progress (snake animation), pending (empty),
|
|
891
|
+
* - Status indicators: done (checkmark), in_progress (snake animation), pending (empty),
|
|
892
|
+
* cancelled, failed
|
|
885
893
|
* - Done tasks are crossed out with golden checkmark
|
|
886
|
-
* - Cancelled/failed tasks are crossed out with subtle styling and sorted to bottom of their local
|
|
894
|
+
* - Cancelled/failed tasks are crossed out with subtle styling and sorted to bottom of their local
|
|
895
|
+
* group
|
|
887
896
|
* - Max 1/4 screen height with scroll
|
|
888
897
|
* - Subtasks appear when parent task is in_progress or done
|
|
889
898
|
*
|
|
@@ -937,7 +946,17 @@ declare function useScrollAnchor(options?: UseScrollAnchorOptions): UseScrollAnc
|
|
|
937
946
|
/**
|
|
938
947
|
* Script element types following standard screenplay format
|
|
939
948
|
*/
|
|
940
|
-
|
|
949
|
+
declare const SCRIPT_ELEMENT_TYPES: {
|
|
950
|
+
readonly SCENE_HEADING: "scene-heading";
|
|
951
|
+
readonly ACTION: "action";
|
|
952
|
+
readonly CHARACTER: "character";
|
|
953
|
+
readonly DIALOGUE: "dialogue";
|
|
954
|
+
readonly PARENTHETICAL: "parenthetical";
|
|
955
|
+
readonly TRANSITION: "transition";
|
|
956
|
+
readonly TITLE: "title";
|
|
957
|
+
readonly SUBTITLE: "subtitle";
|
|
958
|
+
};
|
|
959
|
+
type ScriptElementType = typeof SCRIPT_ELEMENT_TYPES[keyof typeof SCRIPT_ELEMENT_TYPES];
|
|
941
960
|
/**
|
|
942
961
|
* A single element in the script
|
|
943
962
|
*/
|
|
@@ -996,7 +1015,18 @@ interface ScriptCardProps extends Omit<CardProps, 'title'> {
|
|
|
996
1015
|
*/
|
|
997
1016
|
declare const ScriptCard: React$1.ForwardRefExoticComponent<ScriptCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
998
1017
|
|
|
999
|
-
|
|
1018
|
+
/**
|
|
1019
|
+
* Artifact types supported by the system
|
|
1020
|
+
*/
|
|
1021
|
+
declare const ARTIFACT_TYPES: {
|
|
1022
|
+
readonly TEXT: "TEXT";
|
|
1023
|
+
readonly IMAGE: "IMAGE";
|
|
1024
|
+
readonly VIDEO: "VIDEO";
|
|
1025
|
+
readonly AUDIO: "AUDIO";
|
|
1026
|
+
readonly SCRIPT: "SCRIPT";
|
|
1027
|
+
readonly PDF: "PDF";
|
|
1028
|
+
};
|
|
1029
|
+
type ArtifactType = typeof ARTIFACT_TYPES[keyof typeof ARTIFACT_TYPES];
|
|
1000
1030
|
interface Artifact {
|
|
1001
1031
|
id: string;
|
|
1002
1032
|
type: ArtifactType;
|
|
@@ -1037,6 +1067,26 @@ interface Artifact {
|
|
|
1037
1067
|
*/
|
|
1038
1068
|
scriptElements?: ScriptElement[];
|
|
1039
1069
|
}
|
|
1070
|
+
interface ArtifactCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1071
|
+
/**
|
|
1072
|
+
* The artifact object to display
|
|
1073
|
+
*/
|
|
1074
|
+
artifact: Artifact;
|
|
1075
|
+
/**
|
|
1076
|
+
* Callback when the artifact should be expanded/opened
|
|
1077
|
+
*/
|
|
1078
|
+
onExpand?: (artifact: Artifact) => void;
|
|
1079
|
+
/**
|
|
1080
|
+
* Whether the artifact is still loading
|
|
1081
|
+
*/
|
|
1082
|
+
isLoading?: boolean;
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* A dispatcher component that renders the appropriate specialist card
|
|
1086
|
+
* based on the artifact type.
|
|
1087
|
+
*/
|
|
1088
|
+
declare const ArtifactCard: React$1.ForwardRefExoticComponent<ArtifactCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1089
|
+
|
|
1040
1090
|
interface UseArtifactsReturn {
|
|
1041
1091
|
/**
|
|
1042
1092
|
* Current list of artifacts
|
|
@@ -1695,26 +1745,6 @@ interface TextCardProps extends Omit<CardProps, 'title'> {
|
|
|
1695
1745
|
*/
|
|
1696
1746
|
declare const TextCard: React$1.ForwardRefExoticComponent<TextCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1697
1747
|
|
|
1698
|
-
interface ArtifactCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1699
|
-
/**
|
|
1700
|
-
* The artifact object to display
|
|
1701
|
-
*/
|
|
1702
|
-
artifact: Artifact;
|
|
1703
|
-
/**
|
|
1704
|
-
* Callback when the artifact should be expanded/opened
|
|
1705
|
-
*/
|
|
1706
|
-
onExpand?: (artifact: Artifact) => void;
|
|
1707
|
-
/**
|
|
1708
|
-
* Whether the artifact is still loading
|
|
1709
|
-
*/
|
|
1710
|
-
isLoading?: boolean;
|
|
1711
|
-
}
|
|
1712
|
-
/**
|
|
1713
|
-
* A dispatcher component that renders the appropriate specialist card
|
|
1714
|
-
* based on the artifact type.
|
|
1715
|
-
*/
|
|
1716
|
-
declare const ArtifactCard: React$1.ForwardRefExoticComponent<ArtifactCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1717
|
-
|
|
1718
1748
|
type SectionHeadingLevel = 'h2' | 'h3';
|
|
1719
1749
|
interface SectionHeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
1720
1750
|
level?: SectionHeadingLevel;
|
|
@@ -1733,4 +1763,4 @@ declare const SectionHeading: React$1.ForwardRefExoticComponent<SectionHeadingPr
|
|
|
1733
1763
|
|
|
1734
1764
|
declare const version = "2.0.0";
|
|
1735
1765
|
|
|
1736
|
-
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, type Artifact, ArtifactCard, type ArtifactCardProps, type ArtifactType, ArtifactsPanel, type ArtifactsPanelProps, ArtifactsPanelToggle, type ArtifactsPanelToggleProps, type AspectRatio, type AspectRatioPreset, type Attachment, type AttachmentItem, AttachmentPreview, type AttachmentPreviewProps, type AttachmentStatus, AudioCard, type AudioCardProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, BranchNavigator, type BranchNavigatorProps, BrandIcon, type BrandIconProps, type BrandIconSize, type BrandIconVariant, Breadcrumb, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, type CardVariant, ChatInput, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceProps, type ChatMessage, ChatView, type ChatViewItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, CollapsedSidebarToggle, type CollapsedSidebarToggleProps, ColorSwatch, type ColorSwatchProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, ConversationSidebar, type ConversationSidebarProps, type ConversationTree, CrossSquareIcon, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, FileChip, type FileChipProps, type FileChipStatus, HelperText, type HelperTextProps, HistoryIcon, type IconProps, ImageCard, type ImageCardProps, Input, type InputAddonProps, type InputElementProps, InputGroup, type InputGroupProps, InputLeftAddon, InputLeftElement, type InputProps, InputRightAddon, InputRightElement, InputWrapper, type InputWrapperProps, Label, type LabelProps, LayersIcon, List, ListItem, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MarkdownContent, type MarkdownContentProps, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, Message, MessageActions, type MessageActionsConfig, type MessageActionsProps, type MessageActionsVariant, type MessageBranchInfo, type MessageNode, type MessageProps, type MessageVariant, Modal, type ModalProps, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, Pagination, type PaginationProps, PdfCard, type PdfCardProps, PlusIcon, Popover, type PopoverAlign, type PopoverPosition, type PopoverProps, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, Radio, type RadioProps, Row, type RowAlign, type RowGutter, type RowJustify, type RowProps, ScriptCard, type ScriptCardProps, type ScriptElement, type ScriptElementType, SectionHeading, type SectionHeadingLevel, type SectionHeadingProps, Select, type SelectOption, type SelectProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, SquareLoaderIcon, Stack, type StackDirection, type StackGap, type StackProps, type Step, type StepStatus, Stepper, type StepperProps, StreamingCursor, type StreamingCursorProps, Switch, type SwitchProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type Task, type TaskStatus, TextCard, type TextCardProps, Textarea, type TextareaProps, ThinkingIndicator, type ThinkingIndicatorProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, TodosList, type TodosListProps, Tooltip, type TooltipProps, type UseArtifactsReturn, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addMessageToTree, createEmptyTree, createPreviewUrl, generateId, getActivePathMessages, getSiblingInfo, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, switchBranch, updateNodeContent, useArtifacts, useResizable, useScrollAnchor, useToast, version };
|
|
1766
|
+
export { ARTIFACT_TYPES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, type Artifact, ArtifactCard, type ArtifactCardProps, type ArtifactType, ArtifactsPanel, type ArtifactsPanelProps, ArtifactsPanelToggle, type ArtifactsPanelToggleProps, type AspectRatio, type AspectRatioPreset, type Attachment, type AttachmentItem, AttachmentPreview, type AttachmentPreviewProps, type AttachmentStatus, AudioCard, type AudioCardProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, BranchNavigator, type BranchNavigatorProps, BrandIcon, type BrandIconProps, type BrandIconSize, type BrandIconVariant, Breadcrumb, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, type CardVariant, ChatInput, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceProps, type ChatMessage, ChatView, type ChatViewItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, CollapsedSidebarToggle, type CollapsedSidebarToggleProps, ColorSwatch, type ColorSwatchProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, ConversationSidebar, type ConversationSidebarProps, type ConversationTree, CrossSquareIcon, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, FileChip, type FileChipProps, type FileChipStatus, HelperText, type HelperTextProps, HistoryIcon, type IconProps, ImageCard, type ImageCardProps, Input, type InputAddonProps, type InputElementProps, InputGroup, type InputGroupProps, InputLeftAddon, InputLeftElement, type InputProps, InputRightAddon, InputRightElement, InputWrapper, type InputWrapperProps, Label, type LabelProps, LayersIcon, List, ListItem, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MarkdownContent, type MarkdownContentProps, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, Message, MessageActions, type MessageActionsConfig, type MessageActionsProps, type MessageActionsVariant, type MessageBranchInfo, type MessageNode, type MessageProps, type MessageVariant, Modal, type ModalProps, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, Pagination, type PaginationProps, PdfCard, type PdfCardProps, PlusIcon, Popover, type PopoverAlign, type PopoverPosition, type PopoverProps, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, Radio, type RadioProps, Row, type RowAlign, type RowGutter, type RowJustify, type RowProps, SCRIPT_ELEMENT_TYPES, ScriptCard, type ScriptCardProps, type ScriptElement, type ScriptElementType, SectionHeading, type SectionHeadingLevel, type SectionHeadingProps, Select, type SelectOption, type SelectProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, SquareLoaderIcon, Stack, type StackDirection, type StackGap, type StackProps, type Step, type StepStatus, Stepper, type StepperProps, StreamingCursor, type StreamingCursorProps, Switch, type SwitchProps, TASK_STATUSES, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type Task, type TaskStatus, TextCard, type TextCardProps, Textarea, type TextareaProps, ThinkingIndicator, type ThinkingIndicatorProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, TodosList, type TodosListProps, Tooltip, type TooltipProps, type UseArtifactsReturn, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addMessageToTree, createEmptyTree, createPreviewUrl, generateId, getActivePathMessages, getSiblingInfo, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, switchBranch, updateNodeContent, useArtifacts, useResizable, useScrollAnchor, useToast, version };
|
package/dist/index.d.ts
CHANGED
|
@@ -846,7 +846,14 @@ interface CollapsedSidebarToggleProps extends React$1.ButtonHTMLAttributes<HTMLB
|
|
|
846
846
|
}
|
|
847
847
|
declare const CollapsedSidebarToggle: React$1.ForwardRefExoticComponent<CollapsedSidebarToggleProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
848
848
|
|
|
849
|
-
|
|
849
|
+
declare const TASK_STATUSES: {
|
|
850
|
+
readonly PENDING: "pending";
|
|
851
|
+
readonly IN_PROGRESS: "in_progress";
|
|
852
|
+
readonly DONE: "done";
|
|
853
|
+
readonly CANCELLED: "cancelled";
|
|
854
|
+
readonly FAILED: "failed";
|
|
855
|
+
};
|
|
856
|
+
type TaskStatus = typeof TASK_STATUSES[keyof typeof TASK_STATUSES];
|
|
850
857
|
interface Task {
|
|
851
858
|
/**
|
|
852
859
|
* Unique identifier for the task
|
|
@@ -881,9 +888,11 @@ interface TodosListProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
881
888
|
*
|
|
882
889
|
* Features:
|
|
883
890
|
* - Nested tasks with indentation
|
|
884
|
-
* - Status indicators: done (checkmark), in_progress (snake animation), pending (empty),
|
|
891
|
+
* - Status indicators: done (checkmark), in_progress (snake animation), pending (empty),
|
|
892
|
+
* cancelled, failed
|
|
885
893
|
* - Done tasks are crossed out with golden checkmark
|
|
886
|
-
* - Cancelled/failed tasks are crossed out with subtle styling and sorted to bottom of their local
|
|
894
|
+
* - Cancelled/failed tasks are crossed out with subtle styling and sorted to bottom of their local
|
|
895
|
+
* group
|
|
887
896
|
* - Max 1/4 screen height with scroll
|
|
888
897
|
* - Subtasks appear when parent task is in_progress or done
|
|
889
898
|
*
|
|
@@ -937,7 +946,17 @@ declare function useScrollAnchor(options?: UseScrollAnchorOptions): UseScrollAnc
|
|
|
937
946
|
/**
|
|
938
947
|
* Script element types following standard screenplay format
|
|
939
948
|
*/
|
|
940
|
-
|
|
949
|
+
declare const SCRIPT_ELEMENT_TYPES: {
|
|
950
|
+
readonly SCENE_HEADING: "scene-heading";
|
|
951
|
+
readonly ACTION: "action";
|
|
952
|
+
readonly CHARACTER: "character";
|
|
953
|
+
readonly DIALOGUE: "dialogue";
|
|
954
|
+
readonly PARENTHETICAL: "parenthetical";
|
|
955
|
+
readonly TRANSITION: "transition";
|
|
956
|
+
readonly TITLE: "title";
|
|
957
|
+
readonly SUBTITLE: "subtitle";
|
|
958
|
+
};
|
|
959
|
+
type ScriptElementType = typeof SCRIPT_ELEMENT_TYPES[keyof typeof SCRIPT_ELEMENT_TYPES];
|
|
941
960
|
/**
|
|
942
961
|
* A single element in the script
|
|
943
962
|
*/
|
|
@@ -996,7 +1015,18 @@ interface ScriptCardProps extends Omit<CardProps, 'title'> {
|
|
|
996
1015
|
*/
|
|
997
1016
|
declare const ScriptCard: React$1.ForwardRefExoticComponent<ScriptCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
998
1017
|
|
|
999
|
-
|
|
1018
|
+
/**
|
|
1019
|
+
* Artifact types supported by the system
|
|
1020
|
+
*/
|
|
1021
|
+
declare const ARTIFACT_TYPES: {
|
|
1022
|
+
readonly TEXT: "TEXT";
|
|
1023
|
+
readonly IMAGE: "IMAGE";
|
|
1024
|
+
readonly VIDEO: "VIDEO";
|
|
1025
|
+
readonly AUDIO: "AUDIO";
|
|
1026
|
+
readonly SCRIPT: "SCRIPT";
|
|
1027
|
+
readonly PDF: "PDF";
|
|
1028
|
+
};
|
|
1029
|
+
type ArtifactType = typeof ARTIFACT_TYPES[keyof typeof ARTIFACT_TYPES];
|
|
1000
1030
|
interface Artifact {
|
|
1001
1031
|
id: string;
|
|
1002
1032
|
type: ArtifactType;
|
|
@@ -1037,6 +1067,26 @@ interface Artifact {
|
|
|
1037
1067
|
*/
|
|
1038
1068
|
scriptElements?: ScriptElement[];
|
|
1039
1069
|
}
|
|
1070
|
+
interface ArtifactCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1071
|
+
/**
|
|
1072
|
+
* The artifact object to display
|
|
1073
|
+
*/
|
|
1074
|
+
artifact: Artifact;
|
|
1075
|
+
/**
|
|
1076
|
+
* Callback when the artifact should be expanded/opened
|
|
1077
|
+
*/
|
|
1078
|
+
onExpand?: (artifact: Artifact) => void;
|
|
1079
|
+
/**
|
|
1080
|
+
* Whether the artifact is still loading
|
|
1081
|
+
*/
|
|
1082
|
+
isLoading?: boolean;
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* A dispatcher component that renders the appropriate specialist card
|
|
1086
|
+
* based on the artifact type.
|
|
1087
|
+
*/
|
|
1088
|
+
declare const ArtifactCard: React$1.ForwardRefExoticComponent<ArtifactCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1089
|
+
|
|
1040
1090
|
interface UseArtifactsReturn {
|
|
1041
1091
|
/**
|
|
1042
1092
|
* Current list of artifacts
|
|
@@ -1695,26 +1745,6 @@ interface TextCardProps extends Omit<CardProps, 'title'> {
|
|
|
1695
1745
|
*/
|
|
1696
1746
|
declare const TextCard: React$1.ForwardRefExoticComponent<TextCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1697
1747
|
|
|
1698
|
-
interface ArtifactCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1699
|
-
/**
|
|
1700
|
-
* The artifact object to display
|
|
1701
|
-
*/
|
|
1702
|
-
artifact: Artifact;
|
|
1703
|
-
/**
|
|
1704
|
-
* Callback when the artifact should be expanded/opened
|
|
1705
|
-
*/
|
|
1706
|
-
onExpand?: (artifact: Artifact) => void;
|
|
1707
|
-
/**
|
|
1708
|
-
* Whether the artifact is still loading
|
|
1709
|
-
*/
|
|
1710
|
-
isLoading?: boolean;
|
|
1711
|
-
}
|
|
1712
|
-
/**
|
|
1713
|
-
* A dispatcher component that renders the appropriate specialist card
|
|
1714
|
-
* based on the artifact type.
|
|
1715
|
-
*/
|
|
1716
|
-
declare const ArtifactCard: React$1.ForwardRefExoticComponent<ArtifactCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1717
|
-
|
|
1718
1748
|
type SectionHeadingLevel = 'h2' | 'h3';
|
|
1719
1749
|
interface SectionHeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
1720
1750
|
level?: SectionHeadingLevel;
|
|
@@ -1733,4 +1763,4 @@ declare const SectionHeading: React$1.ForwardRefExoticComponent<SectionHeadingPr
|
|
|
1733
1763
|
|
|
1734
1764
|
declare const version = "2.0.0";
|
|
1735
1765
|
|
|
1736
|
-
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, type Artifact, ArtifactCard, type ArtifactCardProps, type ArtifactType, ArtifactsPanel, type ArtifactsPanelProps, ArtifactsPanelToggle, type ArtifactsPanelToggleProps, type AspectRatio, type AspectRatioPreset, type Attachment, type AttachmentItem, AttachmentPreview, type AttachmentPreviewProps, type AttachmentStatus, AudioCard, type AudioCardProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, BranchNavigator, type BranchNavigatorProps, BrandIcon, type BrandIconProps, type BrandIconSize, type BrandIconVariant, Breadcrumb, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, type CardVariant, ChatInput, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceProps, type ChatMessage, ChatView, type ChatViewItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, CollapsedSidebarToggle, type CollapsedSidebarToggleProps, ColorSwatch, type ColorSwatchProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, ConversationSidebar, type ConversationSidebarProps, type ConversationTree, CrossSquareIcon, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, FileChip, type FileChipProps, type FileChipStatus, HelperText, type HelperTextProps, HistoryIcon, type IconProps, ImageCard, type ImageCardProps, Input, type InputAddonProps, type InputElementProps, InputGroup, type InputGroupProps, InputLeftAddon, InputLeftElement, type InputProps, InputRightAddon, InputRightElement, InputWrapper, type InputWrapperProps, Label, type LabelProps, LayersIcon, List, ListItem, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MarkdownContent, type MarkdownContentProps, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, Message, MessageActions, type MessageActionsConfig, type MessageActionsProps, type MessageActionsVariant, type MessageBranchInfo, type MessageNode, type MessageProps, type MessageVariant, Modal, type ModalProps, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, Pagination, type PaginationProps, PdfCard, type PdfCardProps, PlusIcon, Popover, type PopoverAlign, type PopoverPosition, type PopoverProps, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, Radio, type RadioProps, Row, type RowAlign, type RowGutter, type RowJustify, type RowProps, ScriptCard, type ScriptCardProps, type ScriptElement, type ScriptElementType, SectionHeading, type SectionHeadingLevel, type SectionHeadingProps, Select, type SelectOption, type SelectProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, SquareLoaderIcon, Stack, type StackDirection, type StackGap, type StackProps, type Step, type StepStatus, Stepper, type StepperProps, StreamingCursor, type StreamingCursorProps, Switch, type SwitchProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type Task, type TaskStatus, TextCard, type TextCardProps, Textarea, type TextareaProps, ThinkingIndicator, type ThinkingIndicatorProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, TodosList, type TodosListProps, Tooltip, type TooltipProps, type UseArtifactsReturn, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addMessageToTree, createEmptyTree, createPreviewUrl, generateId, getActivePathMessages, getSiblingInfo, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, switchBranch, updateNodeContent, useArtifacts, useResizable, useScrollAnchor, useToast, version };
|
|
1766
|
+
export { ARTIFACT_TYPES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, type Artifact, ArtifactCard, type ArtifactCardProps, type ArtifactType, ArtifactsPanel, type ArtifactsPanelProps, ArtifactsPanelToggle, type ArtifactsPanelToggleProps, type AspectRatio, type AspectRatioPreset, type Attachment, type AttachmentItem, AttachmentPreview, type AttachmentPreviewProps, type AttachmentStatus, AudioCard, type AudioCardProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, BranchNavigator, type BranchNavigatorProps, BrandIcon, type BrandIconProps, type BrandIconSize, type BrandIconVariant, Breadcrumb, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, type CardVariant, ChatInput, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceProps, type ChatMessage, ChatView, type ChatViewItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, CollapsedSidebarToggle, type CollapsedSidebarToggleProps, ColorSwatch, type ColorSwatchProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, ConversationSidebar, type ConversationSidebarProps, type ConversationTree, CrossSquareIcon, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, FileChip, type FileChipProps, type FileChipStatus, HelperText, type HelperTextProps, HistoryIcon, type IconProps, ImageCard, type ImageCardProps, Input, type InputAddonProps, type InputElementProps, InputGroup, type InputGroupProps, InputLeftAddon, InputLeftElement, type InputProps, InputRightAddon, InputRightElement, InputWrapper, type InputWrapperProps, Label, type LabelProps, LayersIcon, List, ListItem, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MarkdownContent, type MarkdownContentProps, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, Message, MessageActions, type MessageActionsConfig, type MessageActionsProps, type MessageActionsVariant, type MessageBranchInfo, type MessageNode, type MessageProps, type MessageVariant, Modal, type ModalProps, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, Pagination, type PaginationProps, PdfCard, type PdfCardProps, PlusIcon, Popover, type PopoverAlign, type PopoverPosition, type PopoverProps, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, Radio, type RadioProps, Row, type RowAlign, type RowGutter, type RowJustify, type RowProps, SCRIPT_ELEMENT_TYPES, ScriptCard, type ScriptCardProps, type ScriptElement, type ScriptElementType, SectionHeading, type SectionHeadingLevel, type SectionHeadingProps, Select, type SelectOption, type SelectProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, SquareLoaderIcon, Stack, type StackDirection, type StackGap, type StackProps, type Step, type StepStatus, Stepper, type StepperProps, StreamingCursor, type StreamingCursorProps, Switch, type SwitchProps, TASK_STATUSES, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type Task, type TaskStatus, TextCard, type TextCardProps, Textarea, type TextareaProps, ThinkingIndicator, type ThinkingIndicatorProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, TodosList, type TodosListProps, Tooltip, type TooltipProps, type UseArtifactsReturn, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addMessageToTree, createEmptyTree, createPreviewUrl, generateId, getActivePathMessages, getSiblingInfo, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, switchBranch, updateNodeContent, useArtifacts, useResizable, useScrollAnchor, useToast, version };
|
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
|
+
ARTIFACT_TYPES: () => ARTIFACT_TYPES,
|
|
33
34
|
Accordion: () => Accordion,
|
|
34
35
|
AccordionContent: () => AccordionContent,
|
|
35
36
|
AccordionItem: () => AccordionItem,
|
|
@@ -110,6 +111,7 @@ __export(index_exports, {
|
|
|
110
111
|
PromptDialog: () => PromptDialog,
|
|
111
112
|
Radio: () => Radio,
|
|
112
113
|
Row: () => Row,
|
|
114
|
+
SCRIPT_ELEMENT_TYPES: () => SCRIPT_ELEMENT_TYPES,
|
|
113
115
|
ScriptCard: () => ScriptCard,
|
|
114
116
|
SectionHeading: () => SectionHeading,
|
|
115
117
|
Select: () => Select,
|
|
@@ -121,6 +123,7 @@ __export(index_exports, {
|
|
|
121
123
|
Stepper: () => Stepper,
|
|
122
124
|
StreamingCursor: () => StreamingCursor,
|
|
123
125
|
Switch: () => Switch,
|
|
126
|
+
TASK_STATUSES: () => TASK_STATUSES,
|
|
124
127
|
Tab: () => Tab,
|
|
125
128
|
TabList: () => TabList,
|
|
126
129
|
TabPanel: () => TabPanel,
|
|
@@ -5441,6 +5444,16 @@ PdfCard.displayName = "PdfCard";
|
|
|
5441
5444
|
|
|
5442
5445
|
// src/components/ScriptCard.tsx
|
|
5443
5446
|
var import_react65 = __toESM(require("react"));
|
|
5447
|
+
var SCRIPT_ELEMENT_TYPES = {
|
|
5448
|
+
SCENE_HEADING: "scene-heading",
|
|
5449
|
+
ACTION: "action",
|
|
5450
|
+
CHARACTER: "character",
|
|
5451
|
+
DIALOGUE: "dialogue",
|
|
5452
|
+
PARENTHETICAL: "parenthetical",
|
|
5453
|
+
TRANSITION: "transition",
|
|
5454
|
+
TITLE: "title",
|
|
5455
|
+
SUBTITLE: "subtitle"
|
|
5456
|
+
};
|
|
5444
5457
|
function ScriptElementRenderer({ element }) {
|
|
5445
5458
|
switch (element.type) {
|
|
5446
5459
|
case "scene-heading":
|
|
@@ -5543,6 +5556,14 @@ var TextCard = import_react66.default.forwardRef(
|
|
|
5543
5556
|
TextCard.displayName = "TextCard";
|
|
5544
5557
|
|
|
5545
5558
|
// src/components/ArtifactCard.tsx
|
|
5559
|
+
var ARTIFACT_TYPES = {
|
|
5560
|
+
TEXT: "TEXT",
|
|
5561
|
+
IMAGE: "IMAGE",
|
|
5562
|
+
VIDEO: "VIDEO",
|
|
5563
|
+
AUDIO: "AUDIO",
|
|
5564
|
+
SCRIPT: "SCRIPT",
|
|
5565
|
+
PDF: "PDF"
|
|
5566
|
+
};
|
|
5546
5567
|
var ArtifactCard = import_react67.default.forwardRef(
|
|
5547
5568
|
({ artifact, onExpand, isLoading, className, ...props }, ref) => {
|
|
5548
5569
|
const commonProps = {
|
|
@@ -5922,6 +5943,13 @@ ArtifactsPanelToggle.displayName = "ArtifactsPanelToggle";
|
|
|
5922
5943
|
|
|
5923
5944
|
// src/components/chat/TodosList.tsx
|
|
5924
5945
|
var import_react69 = __toESM(require("react"));
|
|
5946
|
+
var TASK_STATUSES = {
|
|
5947
|
+
PENDING: "pending",
|
|
5948
|
+
IN_PROGRESS: "in_progress",
|
|
5949
|
+
DONE: "done",
|
|
5950
|
+
CANCELLED: "cancelled",
|
|
5951
|
+
FAILED: "failed"
|
|
5952
|
+
};
|
|
5925
5953
|
function TaskIcon({ status }) {
|
|
5926
5954
|
switch (status) {
|
|
5927
5955
|
case "done":
|
|
@@ -5986,15 +6014,21 @@ var TodosList = import_react69.default.forwardRef(
|
|
|
5986
6014
|
const countCompleted = (taskList) => {
|
|
5987
6015
|
let count = 0;
|
|
5988
6016
|
for (const task of taskList) {
|
|
5989
|
-
if (task.status === "done")
|
|
5990
|
-
|
|
6017
|
+
if (task.status === "done") {
|
|
6018
|
+
count++;
|
|
6019
|
+
}
|
|
6020
|
+
if (task.subtasks) {
|
|
6021
|
+
count += countCompleted(task.subtasks);
|
|
6022
|
+
}
|
|
5991
6023
|
}
|
|
5992
6024
|
return count;
|
|
5993
6025
|
};
|
|
5994
6026
|
const countTotal = (taskList) => {
|
|
5995
6027
|
let count = taskList.length;
|
|
5996
6028
|
for (const task of taskList) {
|
|
5997
|
-
if (task.subtasks)
|
|
6029
|
+
if (task.subtasks) {
|
|
6030
|
+
count += countTotal(task.subtasks);
|
|
6031
|
+
}
|
|
5998
6032
|
}
|
|
5999
6033
|
return count;
|
|
6000
6034
|
};
|
|
@@ -6013,7 +6047,14 @@ var TodosList = import_react69.default.forwardRef(
|
|
|
6013
6047
|
style: { maxHeight: "25vh" },
|
|
6014
6048
|
...rest
|
|
6015
6049
|
},
|
|
6016
|
-
/* @__PURE__ */ import_react69.default.createElement(
|
|
6050
|
+
/* @__PURE__ */ import_react69.default.createElement(
|
|
6051
|
+
"div",
|
|
6052
|
+
{
|
|
6053
|
+
className: "flex items-center justify-between px-4 py-2 border-b border-ash/40 flex-shrink-0"
|
|
6054
|
+
},
|
|
6055
|
+
/* @__PURE__ */ import_react69.default.createElement("h4", { className: "text-xs font-medium text-white" }, title),
|
|
6056
|
+
/* @__PURE__ */ import_react69.default.createElement("span", { className: "text-xs text-silver/60" }, countCompleted(tasks), "/", countTotal(tasks))
|
|
6057
|
+
),
|
|
6017
6058
|
/* @__PURE__ */ import_react69.default.createElement("div", { className: "flex-1 overflow-y-auto px-4 py-2" }, sortedTasks.map((task) => /* @__PURE__ */ import_react69.default.createElement(TaskItem, { key: task.id, task })))
|
|
6018
6059
|
);
|
|
6019
6060
|
}
|
|
@@ -6648,6 +6689,7 @@ SectionHeading.displayName = "SectionHeading";
|
|
|
6648
6689
|
var version = "2.0.0";
|
|
6649
6690
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6650
6691
|
0 && (module.exports = {
|
|
6692
|
+
ARTIFACT_TYPES,
|
|
6651
6693
|
Accordion,
|
|
6652
6694
|
AccordionContent,
|
|
6653
6695
|
AccordionItem,
|
|
@@ -6728,6 +6770,7 @@ var version = "2.0.0";
|
|
|
6728
6770
|
PromptDialog,
|
|
6729
6771
|
Radio,
|
|
6730
6772
|
Row,
|
|
6773
|
+
SCRIPT_ELEMENT_TYPES,
|
|
6731
6774
|
ScriptCard,
|
|
6732
6775
|
SectionHeading,
|
|
6733
6776
|
Select,
|
|
@@ -6739,6 +6782,7 @@ var version = "2.0.0";
|
|
|
6739
6782
|
Stepper,
|
|
6740
6783
|
StreamingCursor,
|
|
6741
6784
|
Switch,
|
|
6785
|
+
TASK_STATUSES,
|
|
6742
6786
|
Tab,
|
|
6743
6787
|
TabList,
|
|
6744
6788
|
TabPanel,
|