pxengine 0.1.88 → 0.1.89
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.cjs +210 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -3
- package/dist/index.d.ts +48 -3
- package/dist/index.mjs +210 -25
- package/dist/index.mjs.map +1 -1
- package/dist/registry.json +13 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3119,6 +3119,26 @@ interface PresentationJobOutput {
|
|
|
3119
3119
|
slide_count: number;
|
|
3120
3120
|
formats: PresentationFormats;
|
|
3121
3121
|
}
|
|
3122
|
+
/**
|
|
3123
|
+
* Real-time progress information for long-running jobs.
|
|
3124
|
+
* Updated during AI generation, PDF/PPTX creation, and upload phases.
|
|
3125
|
+
*/
|
|
3126
|
+
interface JobProgress$1 {
|
|
3127
|
+
/** Progress percentage (0-100) */
|
|
3128
|
+
percentage: number;
|
|
3129
|
+
/** Human-readable description of current step */
|
|
3130
|
+
current_step: string;
|
|
3131
|
+
/** Category of current work: "ai_generation" | "processing" | "uploading" */
|
|
3132
|
+
step_type?: string;
|
|
3133
|
+
/** Additional step-specific details */
|
|
3134
|
+
details?: {
|
|
3135
|
+
slides_completed?: number;
|
|
3136
|
+
slides_total?: number;
|
|
3137
|
+
phase?: string;
|
|
3138
|
+
};
|
|
3139
|
+
/** ISO timestamp of last progress update */
|
|
3140
|
+
updated_at?: string;
|
|
3141
|
+
}
|
|
3122
3142
|
interface PresentationJobCardProps {
|
|
3123
3143
|
job_id: string;
|
|
3124
3144
|
title: string;
|
|
@@ -3127,9 +3147,11 @@ interface PresentationJobCardProps {
|
|
|
3127
3147
|
slide_count?: number;
|
|
3128
3148
|
formats?: PresentationFormats;
|
|
3129
3149
|
error?: string;
|
|
3150
|
+
/** Real-time progress information (populated during pending/running) */
|
|
3151
|
+
progress?: JobProgress$1;
|
|
3130
3152
|
/**
|
|
3131
3153
|
* URL polled every 3 s while status is pending/running.
|
|
3132
|
-
* Expected response shape: { status, output: { slide_count, formats } }
|
|
3154
|
+
* Expected response shape: { status, output: { slide_count, formats }, progress: { ... } }
|
|
3133
3155
|
* e.g. /api/agents-proxy/jobs/{job_id}/status
|
|
3134
3156
|
*/
|
|
3135
3157
|
pollUrl?: string;
|
|
@@ -3168,13 +3190,34 @@ interface ReportTheme {
|
|
|
3168
3190
|
secondary?: string;
|
|
3169
3191
|
accent?: string;
|
|
3170
3192
|
}
|
|
3193
|
+
/**
|
|
3194
|
+
* Real-time progress information for long-running research jobs.
|
|
3195
|
+
* Updated during web search, content generation, and upload phases.
|
|
3196
|
+
*/
|
|
3197
|
+
interface JobProgress {
|
|
3198
|
+
/** Progress percentage (0-100) */
|
|
3199
|
+
percentage: number;
|
|
3200
|
+
/** Human-readable description of current step */
|
|
3201
|
+
current_step: string;
|
|
3202
|
+
/** Category of current work: "ai_generation" | "processing" | "uploading" */
|
|
3203
|
+
step_type?: string;
|
|
3204
|
+
/** Additional step-specific details */
|
|
3205
|
+
details?: {
|
|
3206
|
+
searches_completed?: number;
|
|
3207
|
+
searches_total?: number;
|
|
3208
|
+
chars_generated?: number;
|
|
3209
|
+
phase?: string;
|
|
3210
|
+
};
|
|
3211
|
+
/** ISO timestamp of last progress update */
|
|
3212
|
+
updated_at?: string;
|
|
3213
|
+
}
|
|
3171
3214
|
interface ResearchReportJobCardProps {
|
|
3172
3215
|
/** Unique job identifier */
|
|
3173
3216
|
job_id: string;
|
|
3174
3217
|
/** Report title */
|
|
3175
3218
|
title: string;
|
|
3176
3219
|
/** Current job status */
|
|
3177
|
-
status
|
|
3220
|
+
status?: "pending" | "running" | "complete" | "failed";
|
|
3178
3221
|
/** Research topic */
|
|
3179
3222
|
topic?: string;
|
|
3180
3223
|
/** Research depth (executive, detailed, comprehensive) */
|
|
@@ -3195,6 +3238,8 @@ interface ResearchReportJobCardProps {
|
|
|
3195
3238
|
theme?: ReportTheme;
|
|
3196
3239
|
/** Error message if job failed */
|
|
3197
3240
|
error?: string;
|
|
3241
|
+
/** Real-time progress information (populated during pending/running) */
|
|
3242
|
+
progress?: JobProgress;
|
|
3198
3243
|
/** URL to poll for status updates */
|
|
3199
3244
|
pollUrl?: string;
|
|
3200
3245
|
/** Auth token for polling requests */
|
|
@@ -3764,4 +3809,4 @@ declare function CreatorImageList({ creatorImages, creatorLength, isAgentOutput,
|
|
|
3764
3809
|
|
|
3765
3810
|
declare function CreatorProgressBar({ statusDetails, timeRemaining: _timeRemaining, }: CreatorProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
3766
3811
|
|
|
3767
|
-
export { Accordion, AccordionAtom, type AccordionAtomType, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonAtom, type ActionButtonProps, type ActionPriority, ActionPriorityCard, type ActionPriorityCardMolecule, type ActionPriorityCardProps, type ActionPriorityItem, Alert, AlertAtom, type AlertAtomType, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogAtom, type AlertDialogAtomType, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ApprovalCard, type ApprovalCardMolecule, type ApprovalCardProps, type ApprovalDetail, type ApprovalStatus, ArrowToggleAtom, type ArrowToggleAtomType, AspectRatio, AspectRatioAtom, type AspectRatioAtomType, AudienceDemographicsCard, type AudienceDemographicsCardMolecule, AudienceMetricCard, type AudienceMetricCardMolecule, AudiencePersonaCard, type AudiencePersonaCardMolecule, type AudiencePersonaCardProps, Avatar, AvatarAtom, type AvatarAtomType, AvatarFallback, AvatarImage, Badge, BadgeAtom, type BadgeAtomType, type BaseAtom, type BaseMolecule, type BranchCI, BrandAffinityGroup, type BrandAffinityGroupMolecule, Breadcrumb, BreadcrumbAtom, type BreadcrumbAtomType, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, BudgetAllocCard, type BudgetAllocCardProps, type BudgetAllocItem, Button, type ButtonAction, ButtonAtom, type ButtonAtomType, type ButtonSize$1 as ButtonSize, type ButtonVariant$1 as ButtonVariant, Calendar, CalendarAtom, type CalendarAtomType, type CalendarEventAttendee, CalendarEventCard, type CalendarEventCardProps, type CalendarEventStatus, CampaignBriefCard, type CampaignBriefCardMolecule, type CampaignBriefCardProps, CampaignConceptCard, type CampaignConceptCardProps, CampaignSeedCard, type CampaignSeedCardAtom, type CampaignSeedCardProps, Card, CardAtom, type CardAtomType, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselAtom, type CarouselAtomType, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChannelPlanCard, type ChannelPlanCardMolecule, type ChannelPlanCardProps, type ChannelPlanItem, ChartAtom, type ChartAtomType, type ChartDataPoint, Checkbox, CheckboxAtom, type CheckboxAtomType, ChecklistCard, type ChecklistCardMolecule, type ChecklistCardProps, type ChecklistItem, Collapsible, CollapsibleAtom, type CollapsibleAtomType, CollapsibleContent, CollapsibleTrigger, type CollectedField, Command, CommandAtom, type CommandAtomType, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type ComparisonAttribute, ComparisonCard, type ComparisonCardProps, type ComparisonOption, ConfirmationCard, type ConfirmationCardMolecule, type ConfirmationCardProps, ContentPreviewGallery, type ContentPreviewGalleryMolecule, ContextMenu, ContextMenuAtom, type ContextMenuAtomType, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger, CountrySelectDisplay, CountrySelectEdit, CreatorActionHeader, type CreatorActionHeaderMolecule, CreatorCompactView, type CreatorCompactViewProps, type CreatorDetailData, CreatorExpandedPanel, CreatorGridCard, type CreatorGridCardMolecule, CreatorImageList, type CreatorImageListProps, CreatorProfileSummary, type CreatorProfileSummaryMolecule, CreatorProgressBar, type CreatorProgressBarProps, CreatorSearch, type CreatorSearchProps, type CreatorVersionData, CreatorWidget, type CreatorWidgetAction, type CreatorWidgetMolecule, type CreatorWidgetProps, CreatorWidgetSkeleton, type CreatorWidgetStatus, DataGrid, type DataGridMolecule, DataSourceChecklistCard, type DataSourceChecklistCardMolecule, type DataSourceChecklistCardProps, type DataSourceItem, DataTableCard, type DataTableCardMolecule, type DataTableCardProps, Dialog, DialogAtom, type DialogAtomType, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerAtom, type DrawerAtomType, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuAtom, type DropdownMenuAtomType, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, DynamicFormCard, type DynamicFormCardMolecule, type DynamicFormCardProps, EditableField, type EditableFieldProps, EmptyState, type EmptyStateMolecule, FeedbackRatingCard, type FeedbackRatingCardMolecule, type FeedbackRatingCardProps, type FetchCreatorDetailsParams, type FetchStatusParams, type FetchVersionsParams, FileUpload, type FileUploadMolecule, FilterBar, type FilterBarMolecule, Form, FormCard, type FormCardProps, FormControl, FormDescription, FormField, FormInputAtom, type FormInputAtomType, FormItem, FormLabel, FormMessage, FormSelectAtom, type FormSelectAtomType, FormTextareaAtom, type FormTextareaAtomType, type GapSize, GitHubConnectCard, type GitHubConnectCardProps, type GitHubConnectMolecule, GitHubIssueTrackerCard, type GitHubIssueTrackerCardProps, type GitHubIssueTrackerMolecule, GitHubRepoHealthCard, type GitHubRepoHealthCardProps, type GitHubRepoHealthMolecule, GitHubReposListCard, type GitHubReposListCardProps, GoalAlignmentCard, type GoalAlignmentCardMolecule, type GoalAlignmentCardProps, type GoalAlignmentItem, GoogleSheetsCard, type GoogleSheetsCardProps, GoogleSheetsConnectCard, type GoogleSheetsConnectCardProps, GoogleSheetsListCard, type GoogleSheetsListCardProps, GrowthChartCard, type GrowthChartCardMolecule, HoverCard, HoverCardContent, HoverCardTrigger, IconAtom, type IconAtomType, type IconName, Input, InputAtom, type InputAtomType, type InputElementLike, InputOTP, InputOTPAtom, type InputOTPAtomType, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputType, InputWidget, type InputWidgetField, type InputWidgetFieldKind, type InputWidgetType, InsightDigestCard, type InsightDigestCardMolecule, type InsightDigestCardProps, type InsightDigestItem, InsightSummaryCard, type InsightSummaryCardMolecule, type InsightSummaryCardProps, type InsightSummaryItem, type KPIStatItem, KPIStatsCard, type KPIStatsCardMolecule, type KPIStatsCardProps, KbdAtom, type KbdAtomType, KeywordBundlesDisplay, KeywordBundlesEdit, Label, LabelAtom, type LabelAtomType, LayoutAtom, type LayoutAtomType, type LayoutDirection, LoadingOverlay, type LoadingOverlayMolecule, MCQCard, type MCQCardAtom, type MCQCardProps, type MCQOption, Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarLabel, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NextStepCard, type NextStepCardMolecule, type NextStepCardProps, type NextStepItem, NotificationList, type NotificationListMolecule, PXEngineRenderer, Pagination, PaginationAtom, type PaginationAtomType, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PersonaSegment, PlatformIconGroup, type PlatformIconGroupMolecule, PlatformSelectDisplay, PlatformSelectEdit, PollCard, type PollCardMolecule, type PollCardProps, type PollOption, type PollingConfig, Popover, PopoverAtom, type PopoverAtomType, PopoverContent, PopoverTrigger, type PresentationFormats, PresentationJobCard, type PresentationJobCardProps, type PriorityActionItem, PriorityActionsCard, type PriorityActionsCardMolecule, type PriorityActionsCardProps, Progress, ProgressAtom, type ProgressAtomType, type PullRequest, REGISTERED_COMPONENTS, RadioAtom, type RadioAtomType, RadioGroup, RadioGroupAtom, type RadioGroupAtomType, RadioGroupItem, RatingAtom, type RatingAtomType, RecommendationCard, type RecommendationCardMolecule, type RecommendationCardProps, type RepoItem, type ReportTheme, ResearchBriefCard, type ResearchBriefCardMolecule, type ResearchBriefCardProps, type ResearchBriefItem, ResearchReportJobCard, type ResearchReportJobCardProps, type ResearchReportJobOutput, ResizableAtom, type ResizableAtomType, ResizablePanel, ResizablePanelGroup, RiskSignalCard, type RiskSignalCardMolecule, type RiskSignalCardProps, type RiskSignalItem, type RunSseConfig, ScoreBreakdownCard, type ScoreBreakdownCardMolecule, type ScoreBreakdownCardProps, type ScoreBreakdownItem, ScrollArea, ScrollAreaAtom, type ScrollAreaAtomType, ScrollBar, SearchSpecCard, type SearchSpecCardAtom, type SearchSpecCardProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SeparatorAtom, type SeparatorAtomType, Sheet, SheetAtom, type SheetAtomType, SheetClose, type SheetColumn, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetRow, type SheetTabItem, SheetTitle, SheetTrigger, Skeleton, SkeletonAtom, type SkeletonAtomType, Slider, SliderAtom, type SliderAtomType, type SocialPost, SocialPostCard, type SocialPostCardProps, type SocialPostMolecule, Spinner, SpinnerAtom, type SpinnerAtomType, type SpreadsheetItem, type StaleIssue, StatsGrid, type StatsGridMolecule, type StatusDetails, StepWizard, type StepWizardMolecule, Switch, SwitchAtom, type SwitchAtomType, Table, TableAtom, type TableAtomType, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsAtom, type TabsAtomType, TabsContent, TabsList, TabsTrigger, TagCloud, type TagCloudMolecule, TextAtom, type TextAtomType, type TextVariant, Textarea, TextareaAtom, TimelineAtom, type TimelineAtomType, TimelineCard, type TimelineCardMolecule, type TimelineCardProps, type TimelineStep, type TimelineStepStatus, ToggleAtom, type ToggleAtomType, Tooltip, TooltipAtom, type TooltipAtomType, TooltipContent, TooltipProvider, TooltipTrigger, TopPostsGrid, type TopPostsGridMolecule, type UIAtom, type UIComponent, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, WebSearchJobCard, type WebSearchJobCardProps, type WebSearchJobOutput, type WebSearchResult, type WidgetTheme, cn, defaultFetchSelections, defaultPersistSelection, elementToQAField, formatQAMessage, generateFieldsFromData, generateFieldsFromPropDefinitions, isInputAtom, submitWidgetToAgent, th, useCreatorWidgetPolling, withAlpha };
|
|
3812
|
+
export { Accordion, AccordionAtom, type AccordionAtomType, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonAtom, type ActionButtonProps, type ActionPriority, ActionPriorityCard, type ActionPriorityCardMolecule, type ActionPriorityCardProps, type ActionPriorityItem, Alert, AlertAtom, type AlertAtomType, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogAtom, type AlertDialogAtomType, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ApprovalCard, type ApprovalCardMolecule, type ApprovalCardProps, type ApprovalDetail, type ApprovalStatus, ArrowToggleAtom, type ArrowToggleAtomType, AspectRatio, AspectRatioAtom, type AspectRatioAtomType, AudienceDemographicsCard, type AudienceDemographicsCardMolecule, AudienceMetricCard, type AudienceMetricCardMolecule, AudiencePersonaCard, type AudiencePersonaCardMolecule, type AudiencePersonaCardProps, Avatar, AvatarAtom, type AvatarAtomType, AvatarFallback, AvatarImage, Badge, BadgeAtom, type BadgeAtomType, type BaseAtom, type BaseMolecule, type BranchCI, BrandAffinityGroup, type BrandAffinityGroupMolecule, Breadcrumb, BreadcrumbAtom, type BreadcrumbAtomType, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, BudgetAllocCard, type BudgetAllocCardProps, type BudgetAllocItem, Button, type ButtonAction, ButtonAtom, type ButtonAtomType, type ButtonSize$1 as ButtonSize, type ButtonVariant$1 as ButtonVariant, Calendar, CalendarAtom, type CalendarAtomType, type CalendarEventAttendee, CalendarEventCard, type CalendarEventCardProps, type CalendarEventStatus, CampaignBriefCard, type CampaignBriefCardMolecule, type CampaignBriefCardProps, CampaignConceptCard, type CampaignConceptCardProps, CampaignSeedCard, type CampaignSeedCardAtom, type CampaignSeedCardProps, Card, CardAtom, type CardAtomType, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselAtom, type CarouselAtomType, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChannelPlanCard, type ChannelPlanCardMolecule, type ChannelPlanCardProps, type ChannelPlanItem, ChartAtom, type ChartAtomType, type ChartDataPoint, Checkbox, CheckboxAtom, type CheckboxAtomType, ChecklistCard, type ChecklistCardMolecule, type ChecklistCardProps, type ChecklistItem, Collapsible, CollapsibleAtom, type CollapsibleAtomType, CollapsibleContent, CollapsibleTrigger, type CollectedField, Command, CommandAtom, type CommandAtomType, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type ComparisonAttribute, ComparisonCard, type ComparisonCardProps, type ComparisonOption, ConfirmationCard, type ConfirmationCardMolecule, type ConfirmationCardProps, ContentPreviewGallery, type ContentPreviewGalleryMolecule, ContextMenu, ContextMenuAtom, type ContextMenuAtomType, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger, CountrySelectDisplay, CountrySelectEdit, CreatorActionHeader, type CreatorActionHeaderMolecule, CreatorCompactView, type CreatorCompactViewProps, type CreatorDetailData, CreatorExpandedPanel, CreatorGridCard, type CreatorGridCardMolecule, CreatorImageList, type CreatorImageListProps, CreatorProfileSummary, type CreatorProfileSummaryMolecule, CreatorProgressBar, type CreatorProgressBarProps, CreatorSearch, type CreatorSearchProps, type CreatorVersionData, CreatorWidget, type CreatorWidgetAction, type CreatorWidgetMolecule, type CreatorWidgetProps, CreatorWidgetSkeleton, type CreatorWidgetStatus, DataGrid, type DataGridMolecule, DataSourceChecklistCard, type DataSourceChecklistCardMolecule, type DataSourceChecklistCardProps, type DataSourceItem, DataTableCard, type DataTableCardMolecule, type DataTableCardProps, Dialog, DialogAtom, type DialogAtomType, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerAtom, type DrawerAtomType, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuAtom, type DropdownMenuAtomType, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, DynamicFormCard, type DynamicFormCardMolecule, type DynamicFormCardProps, EditableField, type EditableFieldProps, EmptyState, type EmptyStateMolecule, FeedbackRatingCard, type FeedbackRatingCardMolecule, type FeedbackRatingCardProps, type FetchCreatorDetailsParams, type FetchStatusParams, type FetchVersionsParams, FileUpload, type FileUploadMolecule, FilterBar, type FilterBarMolecule, Form, FormCard, type FormCardProps, FormControl, FormDescription, FormField, FormInputAtom, type FormInputAtomType, FormItem, FormLabel, FormMessage, FormSelectAtom, type FormSelectAtomType, FormTextareaAtom, type FormTextareaAtomType, type GapSize, GitHubConnectCard, type GitHubConnectCardProps, type GitHubConnectMolecule, GitHubIssueTrackerCard, type GitHubIssueTrackerCardProps, type GitHubIssueTrackerMolecule, GitHubRepoHealthCard, type GitHubRepoHealthCardProps, type GitHubRepoHealthMolecule, GitHubReposListCard, type GitHubReposListCardProps, GoalAlignmentCard, type GoalAlignmentCardMolecule, type GoalAlignmentCardProps, type GoalAlignmentItem, GoogleSheetsCard, type GoogleSheetsCardProps, GoogleSheetsConnectCard, type GoogleSheetsConnectCardProps, GoogleSheetsListCard, type GoogleSheetsListCardProps, GrowthChartCard, type GrowthChartCardMolecule, HoverCard, HoverCardContent, HoverCardTrigger, IconAtom, type IconAtomType, type IconName, Input, InputAtom, type InputAtomType, type InputElementLike, InputOTP, InputOTPAtom, type InputOTPAtomType, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputType, InputWidget, type InputWidgetField, type InputWidgetFieldKind, type InputWidgetType, InsightDigestCard, type InsightDigestCardMolecule, type InsightDigestCardProps, type InsightDigestItem, InsightSummaryCard, type InsightSummaryCardMolecule, type InsightSummaryCardProps, type InsightSummaryItem, type JobProgress$1 as JobProgress, type KPIStatItem, KPIStatsCard, type KPIStatsCardMolecule, type KPIStatsCardProps, KbdAtom, type KbdAtomType, KeywordBundlesDisplay, KeywordBundlesEdit, Label, LabelAtom, type LabelAtomType, LayoutAtom, type LayoutAtomType, type LayoutDirection, LoadingOverlay, type LoadingOverlayMolecule, MCQCard, type MCQCardAtom, type MCQCardProps, type MCQOption, Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarLabel, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NextStepCard, type NextStepCardMolecule, type NextStepCardProps, type NextStepItem, NotificationList, type NotificationListMolecule, PXEngineRenderer, Pagination, PaginationAtom, type PaginationAtomType, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PersonaSegment, PlatformIconGroup, type PlatformIconGroupMolecule, PlatformSelectDisplay, PlatformSelectEdit, PollCard, type PollCardMolecule, type PollCardProps, type PollOption, type PollingConfig, Popover, PopoverAtom, type PopoverAtomType, PopoverContent, PopoverTrigger, type PresentationFormats, PresentationJobCard, type PresentationJobCardProps, type PresentationJobOutput, type PriorityActionItem, PriorityActionsCard, type PriorityActionsCardMolecule, type PriorityActionsCardProps, Progress, ProgressAtom, type ProgressAtomType, type PullRequest, REGISTERED_COMPONENTS, RadioAtom, type RadioAtomType, RadioGroup, RadioGroupAtom, type RadioGroupAtomType, RadioGroupItem, RatingAtom, type RatingAtomType, RecommendationCard, type RecommendationCardMolecule, type RecommendationCardProps, type RepoItem, type ReportTheme, ResearchBriefCard, type ResearchBriefCardMolecule, type ResearchBriefCardProps, type ResearchBriefItem, type JobProgress as ResearchJobProgress, ResearchReportJobCard, type ResearchReportJobCardProps, type ResearchReportJobOutput, ResizableAtom, type ResizableAtomType, ResizablePanel, ResizablePanelGroup, RiskSignalCard, type RiskSignalCardMolecule, type RiskSignalCardProps, type RiskSignalItem, type RunSseConfig, ScoreBreakdownCard, type ScoreBreakdownCardMolecule, type ScoreBreakdownCardProps, type ScoreBreakdownItem, ScrollArea, ScrollAreaAtom, type ScrollAreaAtomType, ScrollBar, SearchSpecCard, type SearchSpecCardAtom, type SearchSpecCardProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SeparatorAtom, type SeparatorAtomType, Sheet, SheetAtom, type SheetAtomType, SheetClose, type SheetColumn, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetRow, type SheetTabItem, SheetTitle, SheetTrigger, Skeleton, SkeletonAtom, type SkeletonAtomType, Slider, SliderAtom, type SliderAtomType, type SocialPost, SocialPostCard, type SocialPostCardProps, type SocialPostMolecule, Spinner, SpinnerAtom, type SpinnerAtomType, type SpreadsheetItem, type StaleIssue, StatsGrid, type StatsGridMolecule, type StatusDetails, StepWizard, type StepWizardMolecule, Switch, SwitchAtom, type SwitchAtomType, Table, TableAtom, type TableAtomType, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsAtom, type TabsAtomType, TabsContent, TabsList, TabsTrigger, TagCloud, type TagCloudMolecule, TextAtom, type TextAtomType, type TextVariant, Textarea, TextareaAtom, TimelineAtom, type TimelineAtomType, TimelineCard, type TimelineCardMolecule, type TimelineCardProps, type TimelineStep, type TimelineStepStatus, ToggleAtom, type ToggleAtomType, Tooltip, TooltipAtom, type TooltipAtomType, TooltipContent, TooltipProvider, TooltipTrigger, TopPostsGrid, type TopPostsGridMolecule, type UIAtom, type UIComponent, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, WebSearchJobCard, type WebSearchJobCardProps, type WebSearchJobOutput, type WebSearchResult, type WidgetTheme, cn, defaultFetchSelections, defaultPersistSelection, elementToQAField, formatQAMessage, generateFieldsFromData, generateFieldsFromPropDefinitions, isInputAtom, submitWidgetToAgent, th, useCreatorWidgetPolling, withAlpha };
|
package/dist/index.d.ts
CHANGED
|
@@ -3119,6 +3119,26 @@ interface PresentationJobOutput {
|
|
|
3119
3119
|
slide_count: number;
|
|
3120
3120
|
formats: PresentationFormats;
|
|
3121
3121
|
}
|
|
3122
|
+
/**
|
|
3123
|
+
* Real-time progress information for long-running jobs.
|
|
3124
|
+
* Updated during AI generation, PDF/PPTX creation, and upload phases.
|
|
3125
|
+
*/
|
|
3126
|
+
interface JobProgress$1 {
|
|
3127
|
+
/** Progress percentage (0-100) */
|
|
3128
|
+
percentage: number;
|
|
3129
|
+
/** Human-readable description of current step */
|
|
3130
|
+
current_step: string;
|
|
3131
|
+
/** Category of current work: "ai_generation" | "processing" | "uploading" */
|
|
3132
|
+
step_type?: string;
|
|
3133
|
+
/** Additional step-specific details */
|
|
3134
|
+
details?: {
|
|
3135
|
+
slides_completed?: number;
|
|
3136
|
+
slides_total?: number;
|
|
3137
|
+
phase?: string;
|
|
3138
|
+
};
|
|
3139
|
+
/** ISO timestamp of last progress update */
|
|
3140
|
+
updated_at?: string;
|
|
3141
|
+
}
|
|
3122
3142
|
interface PresentationJobCardProps {
|
|
3123
3143
|
job_id: string;
|
|
3124
3144
|
title: string;
|
|
@@ -3127,9 +3147,11 @@ interface PresentationJobCardProps {
|
|
|
3127
3147
|
slide_count?: number;
|
|
3128
3148
|
formats?: PresentationFormats;
|
|
3129
3149
|
error?: string;
|
|
3150
|
+
/** Real-time progress information (populated during pending/running) */
|
|
3151
|
+
progress?: JobProgress$1;
|
|
3130
3152
|
/**
|
|
3131
3153
|
* URL polled every 3 s while status is pending/running.
|
|
3132
|
-
* Expected response shape: { status, output: { slide_count, formats } }
|
|
3154
|
+
* Expected response shape: { status, output: { slide_count, formats }, progress: { ... } }
|
|
3133
3155
|
* e.g. /api/agents-proxy/jobs/{job_id}/status
|
|
3134
3156
|
*/
|
|
3135
3157
|
pollUrl?: string;
|
|
@@ -3168,13 +3190,34 @@ interface ReportTheme {
|
|
|
3168
3190
|
secondary?: string;
|
|
3169
3191
|
accent?: string;
|
|
3170
3192
|
}
|
|
3193
|
+
/**
|
|
3194
|
+
* Real-time progress information for long-running research jobs.
|
|
3195
|
+
* Updated during web search, content generation, and upload phases.
|
|
3196
|
+
*/
|
|
3197
|
+
interface JobProgress {
|
|
3198
|
+
/** Progress percentage (0-100) */
|
|
3199
|
+
percentage: number;
|
|
3200
|
+
/** Human-readable description of current step */
|
|
3201
|
+
current_step: string;
|
|
3202
|
+
/** Category of current work: "ai_generation" | "processing" | "uploading" */
|
|
3203
|
+
step_type?: string;
|
|
3204
|
+
/** Additional step-specific details */
|
|
3205
|
+
details?: {
|
|
3206
|
+
searches_completed?: number;
|
|
3207
|
+
searches_total?: number;
|
|
3208
|
+
chars_generated?: number;
|
|
3209
|
+
phase?: string;
|
|
3210
|
+
};
|
|
3211
|
+
/** ISO timestamp of last progress update */
|
|
3212
|
+
updated_at?: string;
|
|
3213
|
+
}
|
|
3171
3214
|
interface ResearchReportJobCardProps {
|
|
3172
3215
|
/** Unique job identifier */
|
|
3173
3216
|
job_id: string;
|
|
3174
3217
|
/** Report title */
|
|
3175
3218
|
title: string;
|
|
3176
3219
|
/** Current job status */
|
|
3177
|
-
status
|
|
3220
|
+
status?: "pending" | "running" | "complete" | "failed";
|
|
3178
3221
|
/** Research topic */
|
|
3179
3222
|
topic?: string;
|
|
3180
3223
|
/** Research depth (executive, detailed, comprehensive) */
|
|
@@ -3195,6 +3238,8 @@ interface ResearchReportJobCardProps {
|
|
|
3195
3238
|
theme?: ReportTheme;
|
|
3196
3239
|
/** Error message if job failed */
|
|
3197
3240
|
error?: string;
|
|
3241
|
+
/** Real-time progress information (populated during pending/running) */
|
|
3242
|
+
progress?: JobProgress;
|
|
3198
3243
|
/** URL to poll for status updates */
|
|
3199
3244
|
pollUrl?: string;
|
|
3200
3245
|
/** Auth token for polling requests */
|
|
@@ -3764,4 +3809,4 @@ declare function CreatorImageList({ creatorImages, creatorLength, isAgentOutput,
|
|
|
3764
3809
|
|
|
3765
3810
|
declare function CreatorProgressBar({ statusDetails, timeRemaining: _timeRemaining, }: CreatorProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
3766
3811
|
|
|
3767
|
-
export { Accordion, AccordionAtom, type AccordionAtomType, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonAtom, type ActionButtonProps, type ActionPriority, ActionPriorityCard, type ActionPriorityCardMolecule, type ActionPriorityCardProps, type ActionPriorityItem, Alert, AlertAtom, type AlertAtomType, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogAtom, type AlertDialogAtomType, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ApprovalCard, type ApprovalCardMolecule, type ApprovalCardProps, type ApprovalDetail, type ApprovalStatus, ArrowToggleAtom, type ArrowToggleAtomType, AspectRatio, AspectRatioAtom, type AspectRatioAtomType, AudienceDemographicsCard, type AudienceDemographicsCardMolecule, AudienceMetricCard, type AudienceMetricCardMolecule, AudiencePersonaCard, type AudiencePersonaCardMolecule, type AudiencePersonaCardProps, Avatar, AvatarAtom, type AvatarAtomType, AvatarFallback, AvatarImage, Badge, BadgeAtom, type BadgeAtomType, type BaseAtom, type BaseMolecule, type BranchCI, BrandAffinityGroup, type BrandAffinityGroupMolecule, Breadcrumb, BreadcrumbAtom, type BreadcrumbAtomType, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, BudgetAllocCard, type BudgetAllocCardProps, type BudgetAllocItem, Button, type ButtonAction, ButtonAtom, type ButtonAtomType, type ButtonSize$1 as ButtonSize, type ButtonVariant$1 as ButtonVariant, Calendar, CalendarAtom, type CalendarAtomType, type CalendarEventAttendee, CalendarEventCard, type CalendarEventCardProps, type CalendarEventStatus, CampaignBriefCard, type CampaignBriefCardMolecule, type CampaignBriefCardProps, CampaignConceptCard, type CampaignConceptCardProps, CampaignSeedCard, type CampaignSeedCardAtom, type CampaignSeedCardProps, Card, CardAtom, type CardAtomType, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselAtom, type CarouselAtomType, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChannelPlanCard, type ChannelPlanCardMolecule, type ChannelPlanCardProps, type ChannelPlanItem, ChartAtom, type ChartAtomType, type ChartDataPoint, Checkbox, CheckboxAtom, type CheckboxAtomType, ChecklistCard, type ChecklistCardMolecule, type ChecklistCardProps, type ChecklistItem, Collapsible, CollapsibleAtom, type CollapsibleAtomType, CollapsibleContent, CollapsibleTrigger, type CollectedField, Command, CommandAtom, type CommandAtomType, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type ComparisonAttribute, ComparisonCard, type ComparisonCardProps, type ComparisonOption, ConfirmationCard, type ConfirmationCardMolecule, type ConfirmationCardProps, ContentPreviewGallery, type ContentPreviewGalleryMolecule, ContextMenu, ContextMenuAtom, type ContextMenuAtomType, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger, CountrySelectDisplay, CountrySelectEdit, CreatorActionHeader, type CreatorActionHeaderMolecule, CreatorCompactView, type CreatorCompactViewProps, type CreatorDetailData, CreatorExpandedPanel, CreatorGridCard, type CreatorGridCardMolecule, CreatorImageList, type CreatorImageListProps, CreatorProfileSummary, type CreatorProfileSummaryMolecule, CreatorProgressBar, type CreatorProgressBarProps, CreatorSearch, type CreatorSearchProps, type CreatorVersionData, CreatorWidget, type CreatorWidgetAction, type CreatorWidgetMolecule, type CreatorWidgetProps, CreatorWidgetSkeleton, type CreatorWidgetStatus, DataGrid, type DataGridMolecule, DataSourceChecklistCard, type DataSourceChecklistCardMolecule, type DataSourceChecklistCardProps, type DataSourceItem, DataTableCard, type DataTableCardMolecule, type DataTableCardProps, Dialog, DialogAtom, type DialogAtomType, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerAtom, type DrawerAtomType, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuAtom, type DropdownMenuAtomType, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, DynamicFormCard, type DynamicFormCardMolecule, type DynamicFormCardProps, EditableField, type EditableFieldProps, EmptyState, type EmptyStateMolecule, FeedbackRatingCard, type FeedbackRatingCardMolecule, type FeedbackRatingCardProps, type FetchCreatorDetailsParams, type FetchStatusParams, type FetchVersionsParams, FileUpload, type FileUploadMolecule, FilterBar, type FilterBarMolecule, Form, FormCard, type FormCardProps, FormControl, FormDescription, FormField, FormInputAtom, type FormInputAtomType, FormItem, FormLabel, FormMessage, FormSelectAtom, type FormSelectAtomType, FormTextareaAtom, type FormTextareaAtomType, type GapSize, GitHubConnectCard, type GitHubConnectCardProps, type GitHubConnectMolecule, GitHubIssueTrackerCard, type GitHubIssueTrackerCardProps, type GitHubIssueTrackerMolecule, GitHubRepoHealthCard, type GitHubRepoHealthCardProps, type GitHubRepoHealthMolecule, GitHubReposListCard, type GitHubReposListCardProps, GoalAlignmentCard, type GoalAlignmentCardMolecule, type GoalAlignmentCardProps, type GoalAlignmentItem, GoogleSheetsCard, type GoogleSheetsCardProps, GoogleSheetsConnectCard, type GoogleSheetsConnectCardProps, GoogleSheetsListCard, type GoogleSheetsListCardProps, GrowthChartCard, type GrowthChartCardMolecule, HoverCard, HoverCardContent, HoverCardTrigger, IconAtom, type IconAtomType, type IconName, Input, InputAtom, type InputAtomType, type InputElementLike, InputOTP, InputOTPAtom, type InputOTPAtomType, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputType, InputWidget, type InputWidgetField, type InputWidgetFieldKind, type InputWidgetType, InsightDigestCard, type InsightDigestCardMolecule, type InsightDigestCardProps, type InsightDigestItem, InsightSummaryCard, type InsightSummaryCardMolecule, type InsightSummaryCardProps, type InsightSummaryItem, type KPIStatItem, KPIStatsCard, type KPIStatsCardMolecule, type KPIStatsCardProps, KbdAtom, type KbdAtomType, KeywordBundlesDisplay, KeywordBundlesEdit, Label, LabelAtom, type LabelAtomType, LayoutAtom, type LayoutAtomType, type LayoutDirection, LoadingOverlay, type LoadingOverlayMolecule, MCQCard, type MCQCardAtom, type MCQCardProps, type MCQOption, Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarLabel, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NextStepCard, type NextStepCardMolecule, type NextStepCardProps, type NextStepItem, NotificationList, type NotificationListMolecule, PXEngineRenderer, Pagination, PaginationAtom, type PaginationAtomType, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PersonaSegment, PlatformIconGroup, type PlatformIconGroupMolecule, PlatformSelectDisplay, PlatformSelectEdit, PollCard, type PollCardMolecule, type PollCardProps, type PollOption, type PollingConfig, Popover, PopoverAtom, type PopoverAtomType, PopoverContent, PopoverTrigger, type PresentationFormats, PresentationJobCard, type PresentationJobCardProps, type PriorityActionItem, PriorityActionsCard, type PriorityActionsCardMolecule, type PriorityActionsCardProps, Progress, ProgressAtom, type ProgressAtomType, type PullRequest, REGISTERED_COMPONENTS, RadioAtom, type RadioAtomType, RadioGroup, RadioGroupAtom, type RadioGroupAtomType, RadioGroupItem, RatingAtom, type RatingAtomType, RecommendationCard, type RecommendationCardMolecule, type RecommendationCardProps, type RepoItem, type ReportTheme, ResearchBriefCard, type ResearchBriefCardMolecule, type ResearchBriefCardProps, type ResearchBriefItem, ResearchReportJobCard, type ResearchReportJobCardProps, type ResearchReportJobOutput, ResizableAtom, type ResizableAtomType, ResizablePanel, ResizablePanelGroup, RiskSignalCard, type RiskSignalCardMolecule, type RiskSignalCardProps, type RiskSignalItem, type RunSseConfig, ScoreBreakdownCard, type ScoreBreakdownCardMolecule, type ScoreBreakdownCardProps, type ScoreBreakdownItem, ScrollArea, ScrollAreaAtom, type ScrollAreaAtomType, ScrollBar, SearchSpecCard, type SearchSpecCardAtom, type SearchSpecCardProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SeparatorAtom, type SeparatorAtomType, Sheet, SheetAtom, type SheetAtomType, SheetClose, type SheetColumn, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetRow, type SheetTabItem, SheetTitle, SheetTrigger, Skeleton, SkeletonAtom, type SkeletonAtomType, Slider, SliderAtom, type SliderAtomType, type SocialPost, SocialPostCard, type SocialPostCardProps, type SocialPostMolecule, Spinner, SpinnerAtom, type SpinnerAtomType, type SpreadsheetItem, type StaleIssue, StatsGrid, type StatsGridMolecule, type StatusDetails, StepWizard, type StepWizardMolecule, Switch, SwitchAtom, type SwitchAtomType, Table, TableAtom, type TableAtomType, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsAtom, type TabsAtomType, TabsContent, TabsList, TabsTrigger, TagCloud, type TagCloudMolecule, TextAtom, type TextAtomType, type TextVariant, Textarea, TextareaAtom, TimelineAtom, type TimelineAtomType, TimelineCard, type TimelineCardMolecule, type TimelineCardProps, type TimelineStep, type TimelineStepStatus, ToggleAtom, type ToggleAtomType, Tooltip, TooltipAtom, type TooltipAtomType, TooltipContent, TooltipProvider, TooltipTrigger, TopPostsGrid, type TopPostsGridMolecule, type UIAtom, type UIComponent, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, WebSearchJobCard, type WebSearchJobCardProps, type WebSearchJobOutput, type WebSearchResult, type WidgetTheme, cn, defaultFetchSelections, defaultPersistSelection, elementToQAField, formatQAMessage, generateFieldsFromData, generateFieldsFromPropDefinitions, isInputAtom, submitWidgetToAgent, th, useCreatorWidgetPolling, withAlpha };
|
|
3812
|
+
export { Accordion, AccordionAtom, type AccordionAtomType, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, type ActionButtonAtom, type ActionButtonProps, type ActionPriority, ActionPriorityCard, type ActionPriorityCardMolecule, type ActionPriorityCardProps, type ActionPriorityItem, Alert, AlertAtom, type AlertAtomType, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogAtom, type AlertDialogAtomType, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ApprovalCard, type ApprovalCardMolecule, type ApprovalCardProps, type ApprovalDetail, type ApprovalStatus, ArrowToggleAtom, type ArrowToggleAtomType, AspectRatio, AspectRatioAtom, type AspectRatioAtomType, AudienceDemographicsCard, type AudienceDemographicsCardMolecule, AudienceMetricCard, type AudienceMetricCardMolecule, AudiencePersonaCard, type AudiencePersonaCardMolecule, type AudiencePersonaCardProps, Avatar, AvatarAtom, type AvatarAtomType, AvatarFallback, AvatarImage, Badge, BadgeAtom, type BadgeAtomType, type BaseAtom, type BaseMolecule, type BranchCI, BrandAffinityGroup, type BrandAffinityGroupMolecule, Breadcrumb, BreadcrumbAtom, type BreadcrumbAtomType, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, BudgetAllocCard, type BudgetAllocCardProps, type BudgetAllocItem, Button, type ButtonAction, ButtonAtom, type ButtonAtomType, type ButtonSize$1 as ButtonSize, type ButtonVariant$1 as ButtonVariant, Calendar, CalendarAtom, type CalendarAtomType, type CalendarEventAttendee, CalendarEventCard, type CalendarEventCardProps, type CalendarEventStatus, CampaignBriefCard, type CampaignBriefCardMolecule, type CampaignBriefCardProps, CampaignConceptCard, type CampaignConceptCardProps, CampaignSeedCard, type CampaignSeedCardAtom, type CampaignSeedCardProps, Card, CardAtom, type CardAtomType, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselAtom, type CarouselAtomType, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChannelPlanCard, type ChannelPlanCardMolecule, type ChannelPlanCardProps, type ChannelPlanItem, ChartAtom, type ChartAtomType, type ChartDataPoint, Checkbox, CheckboxAtom, type CheckboxAtomType, ChecklistCard, type ChecklistCardMolecule, type ChecklistCardProps, type ChecklistItem, Collapsible, CollapsibleAtom, type CollapsibleAtomType, CollapsibleContent, CollapsibleTrigger, type CollectedField, Command, CommandAtom, type CommandAtomType, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type ComparisonAttribute, ComparisonCard, type ComparisonCardProps, type ComparisonOption, ConfirmationCard, type ConfirmationCardMolecule, type ConfirmationCardProps, ContentPreviewGallery, type ContentPreviewGalleryMolecule, ContextMenu, ContextMenuAtom, type ContextMenuAtomType, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger, CountrySelectDisplay, CountrySelectEdit, CreatorActionHeader, type CreatorActionHeaderMolecule, CreatorCompactView, type CreatorCompactViewProps, type CreatorDetailData, CreatorExpandedPanel, CreatorGridCard, type CreatorGridCardMolecule, CreatorImageList, type CreatorImageListProps, CreatorProfileSummary, type CreatorProfileSummaryMolecule, CreatorProgressBar, type CreatorProgressBarProps, CreatorSearch, type CreatorSearchProps, type CreatorVersionData, CreatorWidget, type CreatorWidgetAction, type CreatorWidgetMolecule, type CreatorWidgetProps, CreatorWidgetSkeleton, type CreatorWidgetStatus, DataGrid, type DataGridMolecule, DataSourceChecklistCard, type DataSourceChecklistCardMolecule, type DataSourceChecklistCardProps, type DataSourceItem, DataTableCard, type DataTableCardMolecule, type DataTableCardProps, Dialog, DialogAtom, type DialogAtomType, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerAtom, type DrawerAtomType, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuAtom, type DropdownMenuAtomType, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, DynamicFormCard, type DynamicFormCardMolecule, type DynamicFormCardProps, EditableField, type EditableFieldProps, EmptyState, type EmptyStateMolecule, FeedbackRatingCard, type FeedbackRatingCardMolecule, type FeedbackRatingCardProps, type FetchCreatorDetailsParams, type FetchStatusParams, type FetchVersionsParams, FileUpload, type FileUploadMolecule, FilterBar, type FilterBarMolecule, Form, FormCard, type FormCardProps, FormControl, FormDescription, FormField, FormInputAtom, type FormInputAtomType, FormItem, FormLabel, FormMessage, FormSelectAtom, type FormSelectAtomType, FormTextareaAtom, type FormTextareaAtomType, type GapSize, GitHubConnectCard, type GitHubConnectCardProps, type GitHubConnectMolecule, GitHubIssueTrackerCard, type GitHubIssueTrackerCardProps, type GitHubIssueTrackerMolecule, GitHubRepoHealthCard, type GitHubRepoHealthCardProps, type GitHubRepoHealthMolecule, GitHubReposListCard, type GitHubReposListCardProps, GoalAlignmentCard, type GoalAlignmentCardMolecule, type GoalAlignmentCardProps, type GoalAlignmentItem, GoogleSheetsCard, type GoogleSheetsCardProps, GoogleSheetsConnectCard, type GoogleSheetsConnectCardProps, GoogleSheetsListCard, type GoogleSheetsListCardProps, GrowthChartCard, type GrowthChartCardMolecule, HoverCard, HoverCardContent, HoverCardTrigger, IconAtom, type IconAtomType, type IconName, Input, InputAtom, type InputAtomType, type InputElementLike, InputOTP, InputOTPAtom, type InputOTPAtomType, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputType, InputWidget, type InputWidgetField, type InputWidgetFieldKind, type InputWidgetType, InsightDigestCard, type InsightDigestCardMolecule, type InsightDigestCardProps, type InsightDigestItem, InsightSummaryCard, type InsightSummaryCardMolecule, type InsightSummaryCardProps, type InsightSummaryItem, type JobProgress$1 as JobProgress, type KPIStatItem, KPIStatsCard, type KPIStatsCardMolecule, type KPIStatsCardProps, KbdAtom, type KbdAtomType, KeywordBundlesDisplay, KeywordBundlesEdit, Label, LabelAtom, type LabelAtomType, LayoutAtom, type LayoutAtomType, type LayoutDirection, LoadingOverlay, type LoadingOverlayMolecule, MCQCard, type MCQCardAtom, type MCQCardProps, type MCQOption, Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarLabel, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NextStepCard, type NextStepCardMolecule, type NextStepCardProps, type NextStepItem, NotificationList, type NotificationListMolecule, PXEngineRenderer, Pagination, PaginationAtom, type PaginationAtomType, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PersonaSegment, PlatformIconGroup, type PlatformIconGroupMolecule, PlatformSelectDisplay, PlatformSelectEdit, PollCard, type PollCardMolecule, type PollCardProps, type PollOption, type PollingConfig, Popover, PopoverAtom, type PopoverAtomType, PopoverContent, PopoverTrigger, type PresentationFormats, PresentationJobCard, type PresentationJobCardProps, type PresentationJobOutput, type PriorityActionItem, PriorityActionsCard, type PriorityActionsCardMolecule, type PriorityActionsCardProps, Progress, ProgressAtom, type ProgressAtomType, type PullRequest, REGISTERED_COMPONENTS, RadioAtom, type RadioAtomType, RadioGroup, RadioGroupAtom, type RadioGroupAtomType, RadioGroupItem, RatingAtom, type RatingAtomType, RecommendationCard, type RecommendationCardMolecule, type RecommendationCardProps, type RepoItem, type ReportTheme, ResearchBriefCard, type ResearchBriefCardMolecule, type ResearchBriefCardProps, type ResearchBriefItem, type JobProgress as ResearchJobProgress, ResearchReportJobCard, type ResearchReportJobCardProps, type ResearchReportJobOutput, ResizableAtom, type ResizableAtomType, ResizablePanel, ResizablePanelGroup, RiskSignalCard, type RiskSignalCardMolecule, type RiskSignalCardProps, type RiskSignalItem, type RunSseConfig, ScoreBreakdownCard, type ScoreBreakdownCardMolecule, type ScoreBreakdownCardProps, type ScoreBreakdownItem, ScrollArea, ScrollAreaAtom, type ScrollAreaAtomType, ScrollBar, SearchSpecCard, type SearchSpecCardAtom, type SearchSpecCardProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SeparatorAtom, type SeparatorAtomType, Sheet, SheetAtom, type SheetAtomType, SheetClose, type SheetColumn, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetRow, type SheetTabItem, SheetTitle, SheetTrigger, Skeleton, SkeletonAtom, type SkeletonAtomType, Slider, SliderAtom, type SliderAtomType, type SocialPost, SocialPostCard, type SocialPostCardProps, type SocialPostMolecule, Spinner, SpinnerAtom, type SpinnerAtomType, type SpreadsheetItem, type StaleIssue, StatsGrid, type StatsGridMolecule, type StatusDetails, StepWizard, type StepWizardMolecule, Switch, SwitchAtom, type SwitchAtomType, Table, TableAtom, type TableAtomType, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsAtom, type TabsAtomType, TabsContent, TabsList, TabsTrigger, TagCloud, type TagCloudMolecule, TextAtom, type TextAtomType, type TextVariant, Textarea, TextareaAtom, TimelineAtom, type TimelineAtomType, TimelineCard, type TimelineCardMolecule, type TimelineCardProps, type TimelineStep, type TimelineStepStatus, ToggleAtom, type ToggleAtomType, Tooltip, TooltipAtom, type TooltipAtomType, TooltipContent, TooltipProvider, TooltipTrigger, TopPostsGrid, type TopPostsGridMolecule, type UIAtom, type UIComponent, type UIMolecule, type UISchema, VideoAtom, type VideoAtomType, WebSearchJobCard, type WebSearchJobCardProps, type WebSearchJobOutput, type WebSearchResult, type WidgetTheme, cn, defaultFetchSelections, defaultPersistSelection, elementToQAField, formatQAMessage, generateFieldsFromData, generateFieldsFromPropDefinitions, isInputAtom, submitWidgetToAgent, th, useCreatorWidgetPolling, withAlpha };
|
package/dist/index.mjs
CHANGED
|
@@ -38882,6 +38882,7 @@ var PresentationJobCard = ({
|
|
|
38882
38882
|
slide_count: initialSlideCount,
|
|
38883
38883
|
formats: initialFormats = {},
|
|
38884
38884
|
error: initialError,
|
|
38885
|
+
progress: initialProgress,
|
|
38885
38886
|
pollUrl,
|
|
38886
38887
|
authToken,
|
|
38887
38888
|
shareUrl,
|
|
@@ -38894,6 +38895,7 @@ var PresentationJobCard = ({
|
|
|
38894
38895
|
const [slideCount, setSlideCount] = useState10(initialSlideCount ?? 0);
|
|
38895
38896
|
const [formats, setFormats] = useState10(initialFormats);
|
|
38896
38897
|
const [error, setError] = useState10(initialError);
|
|
38898
|
+
const [progress, setProgress] = useState10(initialProgress);
|
|
38897
38899
|
const [showExport, setShowExport] = useState10(false);
|
|
38898
38900
|
const [showFullscreen, setShowFullscreen] = useState10(false);
|
|
38899
38901
|
const [copied, setCopied] = useState10(false);
|
|
@@ -38903,6 +38905,27 @@ var PresentationJobCard = ({
|
|
|
38903
38905
|
const intervalRef = useRef5(null);
|
|
38904
38906
|
const previewRef = useRef5(null);
|
|
38905
38907
|
const iframeRef = useRef5(null);
|
|
38908
|
+
useEffect6(() => {
|
|
38909
|
+
setStatus(initialStatus);
|
|
38910
|
+
}, [initialStatus]);
|
|
38911
|
+
const progressPct = initialProgress?.percentage;
|
|
38912
|
+
const progressStep = initialProgress?.current_step;
|
|
38913
|
+
useEffect6(() => {
|
|
38914
|
+
if (initialProgress) setProgress(initialProgress);
|
|
38915
|
+
}, [progressPct, progressStep]);
|
|
38916
|
+
useEffect6(() => {
|
|
38917
|
+
if (initialError) setError(initialError);
|
|
38918
|
+
}, [initialError]);
|
|
38919
|
+
useEffect6(() => {
|
|
38920
|
+
if (initialSlideCount !== void 0) setSlideCount(initialSlideCount);
|
|
38921
|
+
}, [initialSlideCount]);
|
|
38922
|
+
const htmlUrl = initialFormats?.html_url;
|
|
38923
|
+
useEffect6(() => {
|
|
38924
|
+
if (initialFormats) setFormats(initialFormats);
|
|
38925
|
+
}, [htmlUrl]);
|
|
38926
|
+
useEffect6(() => {
|
|
38927
|
+
if (initialTitle) setTitle(initialTitle);
|
|
38928
|
+
}, [initialTitle]);
|
|
38906
38929
|
const updateScale = useCallback4(() => {
|
|
38907
38930
|
if (previewRef.current) setPreviewScale(previewRef.current.offsetWidth / 1280);
|
|
38908
38931
|
}, []);
|
|
@@ -38957,6 +38980,9 @@ var PresentationJobCard = ({
|
|
|
38957
38980
|
const data = await res.json();
|
|
38958
38981
|
const newStatus = data.status;
|
|
38959
38982
|
setStatus(newStatus);
|
|
38983
|
+
if (data.progress) {
|
|
38984
|
+
setProgress(data.progress);
|
|
38985
|
+
}
|
|
38960
38986
|
if (newStatus === "complete" && data.output) {
|
|
38961
38987
|
const newTitle = data.output.title || initialTitle;
|
|
38962
38988
|
const newSlideCount = data.output.slide_count || 0;
|
|
@@ -39008,14 +39034,93 @@ var PresentationJobCard = ({
|
|
|
39008
39034
|
}
|
|
39009
39035
|
};
|
|
39010
39036
|
if (status === "pending" || status === "running") {
|
|
39011
|
-
|
|
39012
|
-
|
|
39013
|
-
|
|
39014
|
-
|
|
39015
|
-
|
|
39037
|
+
const pct = progress?.percentage ?? 0;
|
|
39038
|
+
const step = progress?.current_step ?? "Starting...";
|
|
39039
|
+
const details = progress?.details;
|
|
39040
|
+
const slidesCompleted = details?.slides_completed ?? 0;
|
|
39041
|
+
const slidesTotal = details?.slides_total ?? 0;
|
|
39042
|
+
const phase = details?.phase ?? progress?.step_type ?? "initializing";
|
|
39043
|
+
const getPhaseIcon = () => {
|
|
39044
|
+
switch (phase) {
|
|
39045
|
+
case "ai_generation":
|
|
39046
|
+
return "\u{1F3A8}";
|
|
39047
|
+
case "processing":
|
|
39048
|
+
return "\u2699\uFE0F";
|
|
39049
|
+
case "uploading":
|
|
39050
|
+
return "\u2601\uFE0F";
|
|
39051
|
+
default:
|
|
39052
|
+
return "\u2728";
|
|
39053
|
+
}
|
|
39054
|
+
};
|
|
39055
|
+
return /* @__PURE__ */ jsxs108("div", { className: cn("w-full", className), children: [
|
|
39056
|
+
/* @__PURE__ */ jsxs108("div", { className: "bg-zinc-900 border border-zinc-800 rounded-2xl overflow-hidden", children: [
|
|
39057
|
+
/* @__PURE__ */ jsx147(
|
|
39058
|
+
"div",
|
|
39059
|
+
{
|
|
39060
|
+
className: "h-[3px] bg-gradient-to-r from-indigo-500 via-purple-500 to-indigo-500 bg-[length:200%_100%] animate-[gradient-shift_2s_ease-in-out_infinite]",
|
|
39061
|
+
style: {
|
|
39062
|
+
backgroundSize: "200% 100%",
|
|
39063
|
+
animation: "gradient-shift 2s ease-in-out infinite"
|
|
39064
|
+
}
|
|
39065
|
+
}
|
|
39066
|
+
),
|
|
39067
|
+
/* @__PURE__ */ jsxs108("div", { className: "p-5", children: [
|
|
39068
|
+
/* @__PURE__ */ jsxs108("div", { className: "flex items-start gap-3", children: [
|
|
39069
|
+
/* @__PURE__ */ jsx147("div", { className: "w-10 h-10 rounded-xl bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ jsx147("span", { className: "text-lg", children: getPhaseIcon() }) }),
|
|
39070
|
+
/* @__PURE__ */ jsxs108("div", { className: "flex-1 min-w-0", children: [
|
|
39071
|
+
/* @__PURE__ */ jsx147("h3", { className: "text-sm font-semibold text-zinc-100 truncate leading-tight", children: title || "Creating Presentation" }),
|
|
39072
|
+
/* @__PURE__ */ jsxs108("p", { className: "text-xs text-zinc-500 mt-0.5", children: [
|
|
39073
|
+
slidesTotal > 0 ? `${slidesTotal} slides` : "Presentation",
|
|
39074
|
+
" \xB7 In progress"
|
|
39075
|
+
] })
|
|
39076
|
+
] })
|
|
39077
|
+
] }),
|
|
39078
|
+
/* @__PURE__ */ jsxs108("div", { className: "mt-4 space-y-3", children: [
|
|
39079
|
+
/* @__PURE__ */ jsxs108("div", { className: "relative", children: [
|
|
39080
|
+
/* @__PURE__ */ jsx147("div", { className: "h-2 bg-zinc-800 rounded-full overflow-hidden", children: /* @__PURE__ */ jsx147(
|
|
39081
|
+
"div",
|
|
39082
|
+
{
|
|
39083
|
+
className: "h-full bg-gradient-to-r from-indigo-500 to-purple-500 rounded-full transition-all duration-500 ease-out",
|
|
39084
|
+
style: { width: `${Math.max(pct, 2)}%` }
|
|
39085
|
+
}
|
|
39086
|
+
) }),
|
|
39087
|
+
/* @__PURE__ */ jsxs108("span", { className: "absolute right-0 -top-5 text-xs text-zinc-500 font-medium tabular-nums", children: [
|
|
39088
|
+
pct,
|
|
39089
|
+
"%"
|
|
39090
|
+
] })
|
|
39091
|
+
] }),
|
|
39092
|
+
/* @__PURE__ */ jsxs108("div", { className: "flex items-center gap-2", children: [
|
|
39093
|
+
/* @__PURE__ */ jsx147("div", { className: "w-2 h-2 rounded-full bg-indigo-500 animate-pulse" }),
|
|
39094
|
+
/* @__PURE__ */ jsx147("span", { className: "text-xs text-zinc-400", children: step })
|
|
39095
|
+
] }),
|
|
39096
|
+
phase === "ai_generation" && slidesTotal > 0 && /* @__PURE__ */ jsxs108("div", { className: "flex items-center gap-2 pt-1", children: [
|
|
39097
|
+
/* @__PURE__ */ jsx147("div", { className: "flex gap-1", children: Array.from({ length: slidesTotal }).map((_, i) => /* @__PURE__ */ jsx147(
|
|
39098
|
+
"div",
|
|
39099
|
+
{
|
|
39100
|
+
className: cn(
|
|
39101
|
+
"w-6 h-1.5 rounded-full transition-all duration-300",
|
|
39102
|
+
i < slidesCompleted ? "bg-indigo-500" : i === slidesCompleted ? "bg-indigo-500/50 animate-pulse" : "bg-zinc-700"
|
|
39103
|
+
)
|
|
39104
|
+
},
|
|
39105
|
+
i
|
|
39106
|
+
)) }),
|
|
39107
|
+
/* @__PURE__ */ jsxs108("span", { className: "text-xs text-zinc-500 ml-1", children: [
|
|
39108
|
+
slidesCompleted,
|
|
39109
|
+
"/",
|
|
39110
|
+
slidesTotal,
|
|
39111
|
+
" slides"
|
|
39112
|
+
] })
|
|
39113
|
+
] })
|
|
39114
|
+
] })
|
|
39115
|
+
] })
|
|
39016
39116
|
] }),
|
|
39017
|
-
/* @__PURE__ */ jsx147("
|
|
39018
|
-
|
|
39117
|
+
/* @__PURE__ */ jsx147("style", { children: `
|
|
39118
|
+
@keyframes gradient-shift {
|
|
39119
|
+
0%, 100% { background-position: 0% 50%; }
|
|
39120
|
+
50% { background-position: 100% 50%; }
|
|
39121
|
+
}
|
|
39122
|
+
` })
|
|
39123
|
+
] });
|
|
39019
39124
|
}
|
|
39020
39125
|
if (status === "failed") {
|
|
39021
39126
|
return /* @__PURE__ */ jsx147("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx147("div", { className: "bg-red-950/20 border border-red-800/25 rounded-2xl p-5", children: /* @__PURE__ */ jsxs108("div", { className: "flex items-start gap-3", children: [
|
|
@@ -39256,6 +39361,7 @@ var ResearchReportJobCard = (props) => {
|
|
|
39256
39361
|
html_url: initialHtmlUrl,
|
|
39257
39362
|
theme: initialTheme,
|
|
39258
39363
|
error: initialError,
|
|
39364
|
+
progress: initialProgress,
|
|
39259
39365
|
pollUrl,
|
|
39260
39366
|
authToken,
|
|
39261
39367
|
className,
|
|
@@ -39274,6 +39380,7 @@ var ResearchReportJobCard = (props) => {
|
|
|
39274
39380
|
const [htmlUrl, setHtmlUrl] = useState11(initialHtmlUrl || "");
|
|
39275
39381
|
const [theme, setTheme] = useState11(initialTheme || DEFAULT_THEME);
|
|
39276
39382
|
const [error, setError] = useState11(initialError);
|
|
39383
|
+
const [progress, setProgress] = useState11(initialProgress);
|
|
39277
39384
|
const [showPreview, setShowPreview] = useState11(false);
|
|
39278
39385
|
const [previewScale, setPreviewScale] = useState11(1);
|
|
39279
39386
|
const previewRef = useRef6(null);
|
|
@@ -39308,12 +39415,18 @@ var ResearchReportJobCard = (props) => {
|
|
|
39308
39415
|
useEffect7(() => {
|
|
39309
39416
|
if (initialSummary) setSummary(initialSummary);
|
|
39310
39417
|
}, [initialSummary]);
|
|
39418
|
+
const themePrimary = initialTheme?.primary;
|
|
39311
39419
|
useEffect7(() => {
|
|
39312
39420
|
if (initialTheme) setTheme(initialTheme);
|
|
39313
|
-
}, [
|
|
39421
|
+
}, [themePrimary]);
|
|
39314
39422
|
useEffect7(() => {
|
|
39315
39423
|
if (initialError) setError(initialError);
|
|
39316
39424
|
}, [initialError]);
|
|
39425
|
+
const progressPct = initialProgress?.percentage;
|
|
39426
|
+
const progressStep = initialProgress?.current_step;
|
|
39427
|
+
useEffect7(() => {
|
|
39428
|
+
if (initialProgress) setProgress(initialProgress);
|
|
39429
|
+
}, [progressPct, progressStep]);
|
|
39317
39430
|
const isTerminal = status === "complete" || status === "failed";
|
|
39318
39431
|
const primaryColor = theme?.primary || DEFAULT_THEME.primary;
|
|
39319
39432
|
const hasHTML = Boolean(htmlUrl);
|
|
@@ -39342,6 +39455,9 @@ var ResearchReportJobCard = (props) => {
|
|
|
39342
39455
|
const data = await res.json();
|
|
39343
39456
|
const newStatus = data.status;
|
|
39344
39457
|
setStatus(newStatus);
|
|
39458
|
+
if (data.progress) {
|
|
39459
|
+
setProgress(data.progress);
|
|
39460
|
+
}
|
|
39345
39461
|
if (newStatus === "complete" && data.output) {
|
|
39346
39462
|
const output = data.output;
|
|
39347
39463
|
setTitle(output.title || initialTitle);
|
|
@@ -39387,27 +39503,96 @@ var ResearchReportJobCard = (props) => {
|
|
|
39387
39503
|
return count.toString();
|
|
39388
39504
|
};
|
|
39389
39505
|
if (!status || status === "pending" || status === "running") {
|
|
39390
|
-
|
|
39391
|
-
|
|
39392
|
-
|
|
39393
|
-
|
|
39394
|
-
|
|
39395
|
-
|
|
39396
|
-
|
|
39397
|
-
|
|
39506
|
+
const pct = progress?.percentage ?? 0;
|
|
39507
|
+
const step = progress?.current_step ?? "Starting...";
|
|
39508
|
+
const details = progress?.details;
|
|
39509
|
+
const searchesCompleted = details?.searches_completed ?? 0;
|
|
39510
|
+
const searchesTotal = details?.searches_total ?? 0;
|
|
39511
|
+
const phase = details?.phase ?? progress?.step_type ?? "initializing";
|
|
39512
|
+
const getPhaseIcon = () => {
|
|
39513
|
+
switch (phase) {
|
|
39514
|
+
case "ai_generation":
|
|
39515
|
+
return "\u{1F50D}";
|
|
39516
|
+
case "processing":
|
|
39517
|
+
return "\u{1F4DD}";
|
|
39518
|
+
case "uploading":
|
|
39519
|
+
return "\u2601\uFE0F";
|
|
39520
|
+
default:
|
|
39521
|
+
return "\u2728";
|
|
39522
|
+
}
|
|
39523
|
+
};
|
|
39524
|
+
return /* @__PURE__ */ jsxs109("div", { className: cn("w-full", className), children: [
|
|
39525
|
+
/* @__PURE__ */ jsxs109("div", { className: "bg-zinc-900 border border-zinc-800 rounded-2xl overflow-hidden", children: [
|
|
39526
|
+
/* @__PURE__ */ jsx148(
|
|
39527
|
+
"div",
|
|
39528
|
+
{
|
|
39529
|
+
className: "h-[3px] bg-gradient-to-r from-violet-500 via-purple-500 to-violet-500",
|
|
39530
|
+
style: {
|
|
39531
|
+
backgroundSize: "200% 100%",
|
|
39532
|
+
animation: "gradient-shift 2s ease-in-out infinite"
|
|
39533
|
+
}
|
|
39534
|
+
}
|
|
39535
|
+
),
|
|
39536
|
+
/* @__PURE__ */ jsxs109("div", { className: "p-5", children: [
|
|
39537
|
+
/* @__PURE__ */ jsxs109("div", { className: "flex items-start gap-3", children: [
|
|
39538
|
+
/* @__PURE__ */ jsx148("div", { className: "w-10 h-10 rounded-xl bg-violet-500/10 border border-violet-500/20 flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ jsx148("span", { className: "text-lg", children: getPhaseIcon() }) }),
|
|
39539
|
+
/* @__PURE__ */ jsxs109("div", { className: "flex-1 min-w-0", children: [
|
|
39540
|
+
/* @__PURE__ */ jsx148("h3", { className: "text-sm font-semibold text-zinc-100 truncate leading-tight", children: title || "Generating Research Report" }),
|
|
39541
|
+
/* @__PURE__ */ jsxs109("p", { className: "text-xs text-zinc-500 mt-0.5", children: [
|
|
39542
|
+
depth && /* @__PURE__ */ jsx148("span", { className: "capitalize", children: depth }),
|
|
39543
|
+
depth && " \xB7 ",
|
|
39544
|
+
"In progress"
|
|
39545
|
+
] })
|
|
39546
|
+
] })
|
|
39398
39547
|
] }),
|
|
39399
|
-
/* @__PURE__ */ jsxs109("div", { className: "
|
|
39400
|
-
/* @__PURE__ */
|
|
39401
|
-
|
|
39548
|
+
/* @__PURE__ */ jsxs109("div", { className: "mt-4 space-y-3", children: [
|
|
39549
|
+
/* @__PURE__ */ jsxs109("div", { className: "relative", children: [
|
|
39550
|
+
/* @__PURE__ */ jsx148("div", { className: "h-2 bg-zinc-800 rounded-full overflow-hidden", children: /* @__PURE__ */ jsx148(
|
|
39551
|
+
"div",
|
|
39552
|
+
{
|
|
39553
|
+
className: "h-full bg-gradient-to-r from-violet-500 to-purple-500 rounded-full transition-all duration-500 ease-out",
|
|
39554
|
+
style: { width: `${Math.max(pct, 2)}%` }
|
|
39555
|
+
}
|
|
39556
|
+
) }),
|
|
39557
|
+
/* @__PURE__ */ jsxs109("span", { className: "absolute right-0 -top-5 text-xs text-zinc-500 font-medium tabular-nums", children: [
|
|
39558
|
+
pct,
|
|
39559
|
+
"%"
|
|
39560
|
+
] })
|
|
39561
|
+
] }),
|
|
39562
|
+
/* @__PURE__ */ jsxs109("div", { className: "flex items-center gap-2", children: [
|
|
39563
|
+
/* @__PURE__ */ jsx148("div", { className: "w-2 h-2 rounded-full bg-violet-500 animate-pulse" }),
|
|
39564
|
+
/* @__PURE__ */ jsx148("span", { className: "text-xs text-zinc-400", children: step })
|
|
39565
|
+
] }),
|
|
39566
|
+
phase === "ai_generation" && searchesTotal > 0 && /* @__PURE__ */ jsxs109("div", { className: "pt-1", children: [
|
|
39567
|
+
/* @__PURE__ */ jsxs109("div", { className: "flex items-center justify-between mb-1.5", children: [
|
|
39568
|
+
/* @__PURE__ */ jsx148("span", { className: "text-xs text-zinc-500", children: "Web searches" }),
|
|
39569
|
+
/* @__PURE__ */ jsxs109("span", { className: "text-xs text-zinc-500 tabular-nums", children: [
|
|
39570
|
+
searchesCompleted,
|
|
39571
|
+
"/",
|
|
39572
|
+
searchesTotal
|
|
39573
|
+
] })
|
|
39574
|
+
] }),
|
|
39575
|
+
/* @__PURE__ */ jsx148("div", { className: "flex gap-1", children: Array.from({ length: Math.min(searchesTotal, 20) }).map((_, i) => /* @__PURE__ */ jsx148(
|
|
39576
|
+
"div",
|
|
39577
|
+
{
|
|
39578
|
+
className: cn(
|
|
39579
|
+
"flex-1 h-1 rounded-full transition-all duration-300",
|
|
39580
|
+
i < searchesCompleted ? "bg-violet-500" : i === searchesCompleted ? "bg-violet-500/50 animate-pulse" : "bg-zinc-700"
|
|
39581
|
+
)
|
|
39582
|
+
},
|
|
39583
|
+
i
|
|
39584
|
+
)) })
|
|
39585
|
+
] })
|
|
39402
39586
|
] })
|
|
39403
|
-
] }),
|
|
39404
|
-
/* @__PURE__ */ jsxs109("div", { className: "mt-4 flex items-center gap-2", children: [
|
|
39405
|
-
/* @__PURE__ */ jsx148("div", { className: "w-2 h-2 rounded-full bg-amber-500/60 animate-pulse" }),
|
|
39406
|
-
/* @__PURE__ */ jsx148("div", { className: "h-[10px] w-[120px] rounded bg-zinc-200 dark:bg-zinc-800 animate-pulse", style: { animationDelay: "200ms" } })
|
|
39407
39587
|
] })
|
|
39408
39588
|
] }),
|
|
39409
|
-
/* @__PURE__ */ jsx148("
|
|
39410
|
-
|
|
39589
|
+
/* @__PURE__ */ jsx148("style", { children: `
|
|
39590
|
+
@keyframes gradient-shift {
|
|
39591
|
+
0%, 100% { background-position: 0% 50%; }
|
|
39592
|
+
50% { background-position: 100% 50%; }
|
|
39593
|
+
}
|
|
39594
|
+
` })
|
|
39595
|
+
] });
|
|
39411
39596
|
}
|
|
39412
39597
|
if (status === "failed") {
|
|
39413
39598
|
return /* @__PURE__ */ jsx148("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx148("div", { className: "bg-red-950/20 border border-red-800/25 rounded-2xl p-5", children: /* @__PURE__ */ jsxs109("div", { className: "flex items-start gap-3", children: [
|