|
1 | | -import type { ReactNode } from 'react' |
2 | 1 | import type { DynamicToolUIPart } from 'ai' |
| 2 | +import type { ReactNode } from 'react' |
3 | 3 | import type { ToolInvocationState as ChatToolInvocationState } from '../providers/chat-context-types' |
4 | 4 |
|
5 | 5 | export interface Citation { |
6 | | - id: string |
7 | | - number: string |
8 | | - title: string |
9 | | - url: string |
10 | | - description?: string |
11 | | - quote?: string |
| 6 | + id: string |
| 7 | + number: string |
| 8 | + title: string |
| 9 | + url: string |
| 10 | + description?: string |
| 11 | + quote?: string |
12 | 12 | } |
13 | 13 |
|
14 | 14 | export interface AgentToolsProps { |
15 | | - tools: Array<ChatToolInvocationState | DynamicToolUIPart> |
16 | | - className?: string |
| 15 | + tools: Array<ChatToolInvocationState | DynamicToolUIPart> |
| 16 | + className?: string |
17 | 17 | } |
18 | 18 |
|
19 | 19 | export type TaskStepStatus = 'pending' | 'running' | 'completed' | 'error' |
20 | 20 |
|
21 | 21 | export interface TaskStep { |
22 | | - id: string |
23 | | - text: string |
24 | | - status: TaskStepStatus |
25 | | - file?: { |
26 | | - name: string |
27 | | - icon?: string |
28 | | - } |
| 22 | + id: string |
| 23 | + text: string |
| 24 | + status: TaskStepStatus |
| 25 | + file?: { |
| 26 | + name: string |
| 27 | + icon?: string |
| 28 | + } |
29 | 29 | } |
30 | 30 |
|
31 | 31 | export interface AgentTaskData { |
32 | | - title: string |
33 | | - steps: TaskStep[] |
| 32 | + title: string |
| 33 | + steps: TaskStep[] |
34 | 34 | } |
35 | 35 |
|
36 | 36 | export interface ArtifactData { |
37 | | - id: string |
38 | | - title: string |
39 | | - description?: string |
40 | | - type: 'code' | 'markdown' | 'json' | 'text' | 'html' | 'react' |
41 | | - language?: string |
42 | | - content: string |
| 37 | + id: string |
| 38 | + title: string |
| 39 | + description?: string |
| 40 | + type: 'code' | 'markdown' | 'json' | 'text' | 'html' | 'react' |
| 41 | + language?: string |
| 42 | + content: string |
43 | 43 | } |
44 | 44 |
|
45 | 45 | export interface PlanStep { |
46 | | - text: string |
47 | | - completed?: boolean |
| 46 | + text: string |
| 47 | + completed?: boolean |
48 | 48 | } |
49 | 49 |
|
50 | 50 | export interface AgentPlanData { |
51 | | - title: string |
52 | | - description: string |
53 | | - steps: PlanStep[] | string[] |
54 | | - isStreaming?: boolean |
55 | | - currentStep?: number |
| 51 | + title: string |
| 52 | + description: string |
| 53 | + steps: PlanStep[] | string[] |
| 54 | + isStreaming?: boolean |
| 55 | + currentStep?: number |
56 | 56 | } |
57 | 57 |
|
58 | 58 | export interface ReasoningStep { |
59 | | - id: string |
60 | | - label: string |
61 | | - description?: string |
62 | | - status: 'complete' | 'active' | 'pending' |
63 | | - searchResults?: string[] |
64 | | - duration?: number |
| 59 | + id: string |
| 60 | + label: string |
| 61 | + description?: string |
| 62 | + status: 'complete' | 'active' | 'pending' |
| 63 | + searchResults?: string[] |
| 64 | + duration?: number |
65 | 65 | } |
66 | 66 |
|
67 | 67 | export interface AgentSuggestionsProps { |
68 | | - suggestions: string[] |
69 | | - // eslint-disable-next-line no-unused-vars |
70 | | - onSelect: (suggestion: string) => void |
71 | | - disabled?: boolean |
72 | | - className?: string |
| 68 | + suggestions: string[] |
| 69 | + onSelect: (suggestion: string) => void |
| 70 | + disabled?: boolean |
| 71 | + className?: string |
73 | 72 | } |
74 | 73 |
|
75 | 74 | export interface AgentSourcesProps { |
76 | | - sources: Array<{ url: string; title: string }> |
77 | | - className?: string |
78 | | - maxVisible?: number |
| 75 | + sources: Array<{ url: string; title: string }> |
| 76 | + className?: string |
| 77 | + maxVisible?: number |
79 | 78 | } |
80 | 79 |
|
81 | 80 | export interface AgentReasoningProps { |
82 | | - reasoning: string |
83 | | - isStreaming: boolean |
84 | | - duration?: number |
85 | | - className?: string |
| 81 | + reasoning: string |
| 82 | + isStreaming: boolean |
| 83 | + duration?: number |
| 84 | + className?: string |
86 | 85 | } |
87 | 86 |
|
88 | 87 | export type ConfirmationSeverity = 'info' | 'warning' | 'danger' |
89 | 88 |
|
90 | 89 | export interface QueuedTask { |
91 | | - id: string |
92 | | - title: string |
93 | | - description?: string |
94 | | - status: 'pending' | 'running' | 'completed' | 'failed' |
95 | | - createdAt?: Date |
96 | | - completedAt?: Date |
97 | | - error?: string |
| 90 | + id: string |
| 91 | + title: string |
| 92 | + description?: string |
| 93 | + status: 'pending' | 'running' | 'completed' | 'failed' |
| 94 | + createdAt?: Date |
| 95 | + completedAt?: Date |
| 96 | + error?: string |
98 | 97 | } |
99 | 98 |
|
100 | 99 | export interface WebPreviewData { |
101 | | - id: string |
102 | | - url: string |
103 | | - title?: string |
104 | | - code?: string |
105 | | - language?: string |
106 | | - html?: string |
107 | | - editable?: boolean |
108 | | - showConsole?: boolean |
109 | | - height?: number |
| 100 | + id: string |
| 101 | + url: string |
| 102 | + title?: string |
| 103 | + code?: string |
| 104 | + language?: string |
| 105 | + html?: string |
| 106 | + editable?: boolean |
| 107 | + showConsole?: boolean |
| 108 | + height?: number |
110 | 109 | } |
111 | 110 |
|
112 | 111 | export type InlineCitationRender = ReactNode[] |
0 commit comments