@omniviewdev/ui 0.1.3 → 0.1.5
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/ai/agents/AgentBanner.d.ts +13 -0
- package/dist/ai/agents/AgentControls.d.ts +15 -0
- package/dist/ai/agents/AgentPopup.d.ts +26 -0
- package/dist/ai/agents/AgentStatusItem.d.ts +14 -0
- package/dist/ai/agents/AgentTaskList.d.ts +17 -0
- package/dist/ai/agents/index.d.ts +10 -0
- package/dist/ai/chat/ChatAvatar.d.ts +15 -0
- package/dist/ai/chat/ChatBubble.d.ts +19 -0
- package/dist/ai/chat/ChatConversation.d.ts +21 -0
- package/dist/ai/chat/ChatDrawer.d.ts +14 -0
- package/dist/ai/chat/ChatHeader.d.ts +15 -0
- package/dist/ai/chat/ChatHistory.d.ts +21 -0
- package/dist/ai/chat/ChatInput.d.ts +19 -0
- package/dist/ai/chat/ChatMessageList.d.ts +29 -0
- package/dist/ai/chat/ChatSuggestions.d.ts +11 -0
- package/dist/ai/chat/ChatTabs.d.ts +18 -0
- package/dist/ai/chat/index.d.ts +20 -0
- package/dist/ai/content/AIArtifact.d.ts +14 -0
- package/dist/ai/content/AICodeBlock.d.ts +14 -0
- package/dist/ai/content/AIInlineCitation.d.ts +12 -0
- package/dist/ai/content/AIMarkdown.d.ts +12 -0
- package/dist/ai/content/AISources.d.ts +16 -0
- package/dist/ai/content/index.d.ts +10 -0
- package/dist/ai/context/AIContextBar.d.ts +25 -0
- package/dist/ai/context/index.d.ts +2 -0
- package/dist/ai/domain/AIActionConfirmation.d.ts +21 -0
- package/dist/ai/domain/AICommandSuggestion.d.ts +15 -0
- package/dist/ai/domain/AIDiffView.d.ts +15 -0
- package/dist/ai/domain/AIEventList.d.ts +21 -0
- package/dist/ai/domain/AIHealthSummary.d.ts +24 -0
- package/dist/ai/domain/AILogViewer.d.ts +20 -0
- package/dist/ai/domain/AIMetricSnapshot.d.ts +22 -0
- package/dist/ai/domain/AIRelatedResources.d.ts +20 -0
- package/dist/ai/domain/AIResourceCard.d.ts +24 -0
- package/dist/ai/domain/AIResourceTable.d.ts +19 -0
- package/dist/ai/domain/AIStructuredDataViewer.d.ts +16 -0
- package/dist/ai/domain/index.d.ts +22 -0
- package/dist/ai/feedback/AILoader.d.ts +11 -0
- package/dist/ai/feedback/ChainOfThought.d.ts +20 -0
- package/dist/ai/feedback/StreamingText.d.ts +14 -0
- package/dist/ai/feedback/ThinkingBlock.d.ts +13 -0
- package/dist/ai/feedback/TypingIndicator.d.ts +10 -0
- package/dist/ai/feedback/index.d.ts +10 -0
- package/dist/ai/index.d.ts +18 -0
- package/dist/ai/security/PermissionBadge.d.ts +11 -0
- package/dist/ai/security/PermissionGate.d.ts +14 -0
- package/dist/ai/security/PermissionRequest.d.ts +21 -0
- package/dist/ai/security/PermissionScopeEditor.d.ts +16 -0
- package/dist/ai/security/SecurityBanner.d.ts +12 -0
- package/dist/ai/security/index.d.ts +10 -0
- package/dist/ai/settings/MCPServerConfig.d.ts +19 -0
- package/dist/ai/settings/ModelSelector.d.ts +21 -0
- package/dist/ai/settings/ProviderCard.d.ts +22 -0
- package/dist/ai/settings/SettingsPanel.d.ts +22 -0
- package/dist/ai/settings/index.d.ts +8 -0
- package/dist/ai/tools/ActionBar.d.ts +15 -0
- package/dist/ai/tools/ToolCall.d.ts +16 -0
- package/dist/ai/tools/ToolCallList.d.ts +11 -0
- package/dist/ai/tools/ToolResult.d.ts +11 -0
- package/dist/ai/tools/index.d.ts +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/tokens.css +3 -0
- package/package.json +20 -3
- package/dist/sidebars/NavMenu.test.d.ts +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface AgentBannerProps {
|
|
3
|
+
taskName: string;
|
|
4
|
+
status: 'running' | 'paused' | 'completed' | 'error';
|
|
5
|
+
onView?: () => void;
|
|
6
|
+
onDismiss?: () => void;
|
|
7
|
+
sx?: SxProps<Theme>;
|
|
8
|
+
}
|
|
9
|
+
declare function AgentBanner({ taskName, status, onView, onDismiss, sx, }: AgentBannerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare namespace AgentBanner {
|
|
11
|
+
var displayName: string;
|
|
12
|
+
}
|
|
13
|
+
export default AgentBanner;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
import { AgentStatus } from './AgentStatusItem';
|
|
3
|
+
export interface AgentControlsProps {
|
|
4
|
+
status: AgentStatus;
|
|
5
|
+
onPause?: () => void;
|
|
6
|
+
onResume?: () => void;
|
|
7
|
+
onCancel?: () => void;
|
|
8
|
+
onDetach?: () => void;
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
}
|
|
11
|
+
declare function AgentControls({ status, onPause, onResume, onCancel, onDetach, sx, }: AgentControlsProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare namespace AgentControls {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
15
|
+
export default AgentControls;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
import { AgentTask } from './AgentTaskList';
|
|
3
|
+
import { AgentStatus } from './AgentStatusItem';
|
|
4
|
+
export interface AgentPopupProps {
|
|
5
|
+
open: boolean;
|
|
6
|
+
anchorEl: HTMLElement | null;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
agent: {
|
|
9
|
+
id: string;
|
|
10
|
+
status: AgentStatus;
|
|
11
|
+
taskName: string;
|
|
12
|
+
startedAt: string;
|
|
13
|
+
tasks: AgentTask[];
|
|
14
|
+
output?: string[];
|
|
15
|
+
};
|
|
16
|
+
onPause?: () => void;
|
|
17
|
+
onResume?: () => void;
|
|
18
|
+
onCancel?: () => void;
|
|
19
|
+
onDetach?: () => void;
|
|
20
|
+
sx?: SxProps<Theme>;
|
|
21
|
+
}
|
|
22
|
+
declare function AgentPopup({ open, anchorEl, onClose, agent, onPause, onResume, onCancel, onDetach, sx, }: AgentPopupProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare namespace AgentPopup {
|
|
24
|
+
var displayName: string;
|
|
25
|
+
}
|
|
26
|
+
export default AgentPopup;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export type AgentStatus = 'idle' | 'running' | 'paused' | 'error' | 'completed';
|
|
3
|
+
export interface AgentStatusItemProps {
|
|
4
|
+
status: AgentStatus;
|
|
5
|
+
taskName?: string;
|
|
6
|
+
progress?: number;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
sx?: SxProps<Theme>;
|
|
9
|
+
}
|
|
10
|
+
declare function AgentStatusItem({ status, taskName, progress, onClick, sx, }: AgentStatusItemProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare namespace AgentStatusItem {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
export default AgentStatusItem;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface AgentTask {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
status: 'queued' | 'running' | 'complete' | 'failed';
|
|
6
|
+
detail?: string;
|
|
7
|
+
timestamp?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface AgentTaskListProps {
|
|
10
|
+
tasks: AgentTask[];
|
|
11
|
+
sx?: SxProps<Theme>;
|
|
12
|
+
}
|
|
13
|
+
declare function AgentTaskList({ tasks, sx }: AgentTaskListProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare namespace AgentTaskList {
|
|
15
|
+
var displayName: string;
|
|
16
|
+
}
|
|
17
|
+
export default AgentTaskList;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as AgentStatusItem } from './AgentStatusItem';
|
|
2
|
+
export type { AgentStatusItemProps, AgentStatus } from './AgentStatusItem';
|
|
3
|
+
export { default as AgentPopup } from './AgentPopup';
|
|
4
|
+
export type { AgentPopupProps } from './AgentPopup';
|
|
5
|
+
export { default as AgentTaskList } from './AgentTaskList';
|
|
6
|
+
export type { AgentTaskListProps, AgentTask } from './AgentTaskList';
|
|
7
|
+
export { default as AgentControls } from './AgentControls';
|
|
8
|
+
export type { AgentControlsProps } from './AgentControls';
|
|
9
|
+
export { default as AgentBanner } from './AgentBanner';
|
|
10
|
+
export type { AgentBannerProps } from './AgentBanner';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
export interface ChatAvatarProps {
|
|
4
|
+
role: 'user' | 'assistant' | 'system';
|
|
5
|
+
src?: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
status?: 'online' | 'busy' | 'offline';
|
|
8
|
+
size?: number;
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
}
|
|
11
|
+
declare function ChatAvatar({ role, src, icon, status, size, sx, }: ChatAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare namespace ChatAvatar {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
15
|
+
export default ChatAvatar;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
export type ChatBubbleSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
4
|
+
export interface ChatBubbleProps {
|
|
5
|
+
role: 'user' | 'assistant' | 'system';
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
timestamp?: string | Date;
|
|
8
|
+
avatar?: React.ReactNode;
|
|
9
|
+
actions?: React.ReactNode;
|
|
10
|
+
status?: 'sending' | 'sent' | 'error';
|
|
11
|
+
/** Controls the font size of the bubble content. Falls back to CSS var --ov-chat-font-size. */
|
|
12
|
+
size?: ChatBubbleSize;
|
|
13
|
+
sx?: SxProps<Theme>;
|
|
14
|
+
}
|
|
15
|
+
declare function ChatBubble({ role, children, timestamp, avatar, actions, status, size, sx, }: ChatBubbleProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare namespace ChatBubble {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
19
|
+
export default ChatBubble;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
import { ChatMessage } from './ChatMessageList';
|
|
4
|
+
export interface ChatConversationProps {
|
|
5
|
+
messages: ChatMessage[];
|
|
6
|
+
inputValue: string;
|
|
7
|
+
onInputChange: (value: string) => void;
|
|
8
|
+
onSubmit: (value: string) => void;
|
|
9
|
+
renderMessage?: (msg: ChatMessage) => React.ReactNode;
|
|
10
|
+
header?: React.ReactNode;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
inputActions?: React.ReactNode;
|
|
15
|
+
sx?: SxProps<Theme>;
|
|
16
|
+
}
|
|
17
|
+
declare function ChatConversation({ messages, inputValue, onInputChange, onSubmit, renderMessage, header, disabled, loading, placeholder, inputActions, sx, }: ChatConversationProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare namespace ChatConversation {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
export default ChatConversation;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
export interface ChatDrawerProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
width?: number | string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
sx?: SxProps<Theme>;
|
|
9
|
+
}
|
|
10
|
+
declare function ChatDrawer({ open, onClose, width, children, sx, }: ChatDrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare namespace ChatDrawer {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
export default ChatDrawer;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface ChatHeaderProps {
|
|
3
|
+
modelName?: string;
|
|
4
|
+
tokenCount?: number;
|
|
5
|
+
maxTokens?: number;
|
|
6
|
+
onNewConversation?: () => void;
|
|
7
|
+
onToggleHistory?: () => void;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
}
|
|
11
|
+
declare function ChatHeader({ modelName, tokenCount, maxTokens, onNewConversation, onToggleHistory, onClose, sx, }: ChatHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare namespace ChatHeader {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
15
|
+
export default ChatHeader;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface ConversationSummary {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
lastMessage: string;
|
|
6
|
+
timestamp: string;
|
|
7
|
+
messageCount: number;
|
|
8
|
+
modelId?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ChatHistoryProps {
|
|
11
|
+
conversations: ConversationSummary[];
|
|
12
|
+
activeId?: string;
|
|
13
|
+
onSelect: (id: string) => void;
|
|
14
|
+
onDelete?: (id: string) => void;
|
|
15
|
+
sx?: SxProps<Theme>;
|
|
16
|
+
}
|
|
17
|
+
declare function ChatHistory({ conversations, activeId, onSelect, onDelete, sx, }: ChatHistoryProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare namespace ChatHistory {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
export default ChatHistory;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface ChatInputProps {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
onSubmit: (value: string) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
maxLength?: number;
|
|
10
|
+
actions?: React.ReactNode;
|
|
11
|
+
suggestions?: string[];
|
|
12
|
+
onSuggestionClick?: (suggestion: string) => void;
|
|
13
|
+
sx?: SxProps<Theme>;
|
|
14
|
+
}
|
|
15
|
+
declare function ChatInput({ value, onChange, onSubmit, placeholder, disabled, loading, maxLength, actions, sx, }: ChatInputProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare namespace ChatInput {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
19
|
+
export default ChatInput;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
export interface ChatMessage {
|
|
4
|
+
id: string;
|
|
5
|
+
role: 'user' | 'assistant' | 'system';
|
|
6
|
+
content: string;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
toolCalls?: Array<{
|
|
9
|
+
name: string;
|
|
10
|
+
args?: Record<string, unknown>;
|
|
11
|
+
result?: unknown;
|
|
12
|
+
status: 'pending' | 'running' | 'success' | 'error';
|
|
13
|
+
duration?: number;
|
|
14
|
+
error?: string;
|
|
15
|
+
}>;
|
|
16
|
+
thinking?: string;
|
|
17
|
+
status?: 'streaming' | 'complete' | 'error';
|
|
18
|
+
}
|
|
19
|
+
export interface ChatMessageListProps {
|
|
20
|
+
messages: ChatMessage[];
|
|
21
|
+
renderMessage?: (msg: ChatMessage) => React.ReactNode;
|
|
22
|
+
onScrollToBottom?: () => void;
|
|
23
|
+
sx?: SxProps<Theme>;
|
|
24
|
+
}
|
|
25
|
+
declare function ChatMessageList({ messages, renderMessage, onScrollToBottom, sx, }: ChatMessageListProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare namespace ChatMessageList {
|
|
27
|
+
var displayName: string;
|
|
28
|
+
}
|
|
29
|
+
export default ChatMessageList;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface ChatSuggestionsProps {
|
|
3
|
+
suggestions: string[];
|
|
4
|
+
onSelect: (suggestion: string) => void;
|
|
5
|
+
sx?: SxProps<Theme>;
|
|
6
|
+
}
|
|
7
|
+
declare function ChatSuggestions({ suggestions, onSelect, sx, }: ChatSuggestionsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
declare namespace ChatSuggestions {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
export default ChatSuggestions;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface ChatTab {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ChatTabsProps {
|
|
7
|
+
tabs: ChatTab[];
|
|
8
|
+
activeId: string;
|
|
9
|
+
onSelect: (id: string) => void;
|
|
10
|
+
onClose?: (id: string) => void;
|
|
11
|
+
onNew?: () => void;
|
|
12
|
+
sx?: SxProps<Theme>;
|
|
13
|
+
}
|
|
14
|
+
declare function ChatTabs({ tabs, activeId, onSelect, onClose, onNew, sx, }: ChatTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare namespace ChatTabs {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
18
|
+
export default ChatTabs;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { default as ChatBubble } from './ChatBubble';
|
|
2
|
+
export type { ChatBubbleProps, ChatBubbleSize } from './ChatBubble';
|
|
3
|
+
export { default as ChatAvatar } from './ChatAvatar';
|
|
4
|
+
export type { ChatAvatarProps } from './ChatAvatar';
|
|
5
|
+
export { default as ChatInput } from './ChatInput';
|
|
6
|
+
export type { ChatInputProps } from './ChatInput';
|
|
7
|
+
export { default as ChatMessageList } from './ChatMessageList';
|
|
8
|
+
export type { ChatMessageListProps, ChatMessage } from './ChatMessageList';
|
|
9
|
+
export { default as ChatConversation } from './ChatConversation';
|
|
10
|
+
export type { ChatConversationProps } from './ChatConversation';
|
|
11
|
+
export { default as ChatSuggestions } from './ChatSuggestions';
|
|
12
|
+
export type { ChatSuggestionsProps } from './ChatSuggestions';
|
|
13
|
+
export { default as ChatDrawer } from './ChatDrawer';
|
|
14
|
+
export type { ChatDrawerProps } from './ChatDrawer';
|
|
15
|
+
export { default as ChatHistory } from './ChatHistory';
|
|
16
|
+
export type { ChatHistoryProps, ConversationSummary } from './ChatHistory';
|
|
17
|
+
export { default as ChatTabs } from './ChatTabs';
|
|
18
|
+
export type { ChatTabsProps, ChatTab } from './ChatTabs';
|
|
19
|
+
export { default as ChatHeader } from './ChatHeader';
|
|
20
|
+
export type { ChatHeaderProps } from './ChatHeader';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
export interface AIArtifactProps {
|
|
4
|
+
title: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
defaultExpanded?: boolean;
|
|
8
|
+
sx?: SxProps<Theme>;
|
|
9
|
+
}
|
|
10
|
+
declare function AIArtifact({ title, type, children, defaultExpanded, sx, }: AIArtifactProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare namespace AIArtifact {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
export default AIArtifact;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface AICodeBlockProps {
|
|
3
|
+
code: string;
|
|
4
|
+
language?: string;
|
|
5
|
+
showLineNumbers?: boolean;
|
|
6
|
+
maxHeight?: number | string;
|
|
7
|
+
onCopy?: () => void;
|
|
8
|
+
sx?: SxProps<Theme>;
|
|
9
|
+
}
|
|
10
|
+
declare function AICodeBlock({ code, language, showLineNumbers, maxHeight, onCopy, sx, }: AICodeBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare namespace AICodeBlock {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
export default AICodeBlock;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface AIInlineCitationProps {
|
|
3
|
+
index: number;
|
|
4
|
+
title?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
}
|
|
8
|
+
declare function AIInlineCitation({ index, title, url, sx, }: AIInlineCitationProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare namespace AIInlineCitation {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
12
|
+
export default AIInlineCitation;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface AIMarkdownProps {
|
|
3
|
+
source: string;
|
|
4
|
+
streaming?: boolean;
|
|
5
|
+
maxHeight?: number | string;
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
}
|
|
8
|
+
declare function AIMarkdown({ source, streaming, maxHeight, sx, }: AIMarkdownProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare namespace AIMarkdown {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
12
|
+
export default AIMarkdown;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface AISource {
|
|
3
|
+
title: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface AISourcesProps {
|
|
8
|
+
sources: AISource[];
|
|
9
|
+
label?: string;
|
|
10
|
+
sx?: SxProps<Theme>;
|
|
11
|
+
}
|
|
12
|
+
declare function AISources({ sources, label, sx, }: AISourcesProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
declare namespace AISources {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
export default AISources;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as AICodeBlock } from './AICodeBlock';
|
|
2
|
+
export type { AICodeBlockProps } from './AICodeBlock';
|
|
3
|
+
export { default as AIMarkdown } from './AIMarkdown';
|
|
4
|
+
export type { AIMarkdownProps } from './AIMarkdown';
|
|
5
|
+
export { default as AIArtifact } from './AIArtifact';
|
|
6
|
+
export type { AIArtifactProps } from './AIArtifact';
|
|
7
|
+
export { default as AIInlineCitation } from './AIInlineCitation';
|
|
8
|
+
export type { AIInlineCitationProps } from './AIInlineCitation';
|
|
9
|
+
export { default as AISources } from './AISources';
|
|
10
|
+
export type { AISourcesProps, AISource } from './AISources';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
interface ContextSegment {
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export interface AIContextBarProps {
|
|
7
|
+
provider?: ContextSegment;
|
|
8
|
+
connection?: ContextSegment;
|
|
9
|
+
scope?: {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
};
|
|
13
|
+
resource?: {
|
|
14
|
+
kind: string;
|
|
15
|
+
name: string;
|
|
16
|
+
icon?: React.ReactNode;
|
|
17
|
+
};
|
|
18
|
+
onChangeScope?: () => void;
|
|
19
|
+
sx?: SxProps<Theme>;
|
|
20
|
+
}
|
|
21
|
+
declare function AIContextBar({ provider, connection, scope, resource, onChangeScope, sx, }: AIContextBarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
+
declare namespace AIContextBar {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
25
|
+
export default AIContextBar;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
type Risk = 'low' | 'medium' | 'high' | 'critical';
|
|
3
|
+
interface AffectedResource {
|
|
4
|
+
kind: string;
|
|
5
|
+
name: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface AIActionConfirmationProps {
|
|
9
|
+
action: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
affectedResources?: AffectedResource[];
|
|
12
|
+
risk: Risk;
|
|
13
|
+
onConfirm: () => void;
|
|
14
|
+
onCancel: () => void;
|
|
15
|
+
sx?: SxProps<Theme>;
|
|
16
|
+
}
|
|
17
|
+
declare function AIActionConfirmation({ action, description, affectedResources, risk, onConfirm, onCancel, sx, }: AIActionConfirmationProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare namespace AIActionConfirmation {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
export default AIActionConfirmation;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface AICommandSuggestionProps {
|
|
3
|
+
command: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
dangerous?: boolean;
|
|
6
|
+
dangerMessage?: string;
|
|
7
|
+
onRun?: (command: string) => void;
|
|
8
|
+
onCopy?: (command: string) => void;
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
}
|
|
11
|
+
declare function AICommandSuggestion({ command, description, dangerous, dangerMessage, onRun, onCopy, sx, }: AICommandSuggestionProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare namespace AICommandSuggestion {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
15
|
+
export default AICommandSuggestion;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface AIDiffViewProps {
|
|
3
|
+
before: string;
|
|
4
|
+
after: string;
|
|
5
|
+
language?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
onApply?: (after: string) => void;
|
|
8
|
+
onCopy?: (after: string) => void;
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
}
|
|
11
|
+
declare function AIDiffView({ before, after, language, title, onApply, onCopy, sx, }: AIDiffViewProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare namespace AIDiffView {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
15
|
+
export default AIDiffView;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface AIEvent {
|
|
3
|
+
type: 'info' | 'warning' | 'error' | 'success';
|
|
4
|
+
reason: string;
|
|
5
|
+
message: string;
|
|
6
|
+
timestamp?: string | Date;
|
|
7
|
+
source?: string;
|
|
8
|
+
count?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface AIEventListProps {
|
|
11
|
+
events: AIEvent[];
|
|
12
|
+
maxEvents?: number;
|
|
13
|
+
title?: string;
|
|
14
|
+
onExpand?: () => void;
|
|
15
|
+
sx?: SxProps<Theme>;
|
|
16
|
+
}
|
|
17
|
+
declare function AIEventList({ events, maxEvents, title, onExpand, sx, }: AIEventListProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare namespace AIEventList {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
export default AIEventList;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
type Status = 'healthy' | 'warning' | 'degraded' | 'error' | 'unknown' | 'pending';
|
|
3
|
+
interface HealthStat {
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
status: Status;
|
|
7
|
+
}
|
|
8
|
+
interface HealthBreakdown {
|
|
9
|
+
kind: string;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
total: number;
|
|
12
|
+
statuses: Record<string, number>;
|
|
13
|
+
}
|
|
14
|
+
export interface AIHealthSummaryProps {
|
|
15
|
+
title?: string;
|
|
16
|
+
stats: HealthStat[];
|
|
17
|
+
breakdowns?: HealthBreakdown[];
|
|
18
|
+
sx?: SxProps<Theme>;
|
|
19
|
+
}
|
|
20
|
+
declare function AIHealthSummary({ title, stats, breakdowns, sx, }: AIHealthSummaryProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare namespace AIHealthSummary {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
24
|
+
export default AIHealthSummary;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface AILogLine {
|
|
3
|
+
timestamp?: string;
|
|
4
|
+
content: string;
|
|
5
|
+
severity?: 'info' | 'warn' | 'error' | 'debug';
|
|
6
|
+
source?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AILogViewerProps {
|
|
9
|
+
lines: AILogLine[];
|
|
10
|
+
highlights?: number[];
|
|
11
|
+
maxLines?: number;
|
|
12
|
+
title?: string;
|
|
13
|
+
onExpand?: () => void;
|
|
14
|
+
sx?: SxProps<Theme>;
|
|
15
|
+
}
|
|
16
|
+
declare function AILogViewer({ lines, highlights, maxLines, title, onExpand, sx, }: AILogViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare namespace AILogViewer {
|
|
18
|
+
var displayName: string;
|
|
19
|
+
}
|
|
20
|
+
export default AILogViewer;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
type Status = 'healthy' | 'warning' | 'degraded' | 'error' | 'unknown' | 'pending';
|
|
3
|
+
interface MetricItem {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
unit?: string;
|
|
7
|
+
delta?: number;
|
|
8
|
+
deltaDirection?: 'up' | 'down' | 'flat';
|
|
9
|
+
status?: Status;
|
|
10
|
+
sparkline?: number[];
|
|
11
|
+
}
|
|
12
|
+
export interface AIMetricSnapshotProps {
|
|
13
|
+
metrics: MetricItem[];
|
|
14
|
+
title?: string;
|
|
15
|
+
columns?: 2 | 3 | 4;
|
|
16
|
+
sx?: SxProps<Theme>;
|
|
17
|
+
}
|
|
18
|
+
declare function AIMetricSnapshot({ metrics, title, columns, sx, }: AIMetricSnapshotProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare namespace AIMetricSnapshot {
|
|
20
|
+
var displayName: string;
|
|
21
|
+
}
|
|
22
|
+
export default AIMetricSnapshot;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
interface ResourceNode {
|
|
3
|
+
kind: string;
|
|
4
|
+
name: string;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
interface RelatedResource extends ResourceNode {
|
|
8
|
+
relationship: string;
|
|
9
|
+
}
|
|
10
|
+
export interface AIRelatedResourcesProps {
|
|
11
|
+
primary: ResourceNode;
|
|
12
|
+
related: RelatedResource[];
|
|
13
|
+
onNavigate?: (kind: string, name: string) => void;
|
|
14
|
+
sx?: SxProps<Theme>;
|
|
15
|
+
}
|
|
16
|
+
declare function AIRelatedResources({ primary, related, onNavigate, sx, }: AIRelatedResourcesProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare namespace AIRelatedResources {
|
|
18
|
+
var displayName: string;
|
|
19
|
+
}
|
|
20
|
+
export default AIRelatedResources;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
type Status = 'healthy' | 'warning' | 'degraded' | 'error' | 'unknown' | 'pending';
|
|
3
|
+
export interface AIResourceCardProps {
|
|
4
|
+
kind: string;
|
|
5
|
+
name: string;
|
|
6
|
+
scope?: string;
|
|
7
|
+
scopeLabel?: string;
|
|
8
|
+
status?: Status;
|
|
9
|
+
statusLabel?: string;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
iconColor?: string;
|
|
12
|
+
metadata?: Array<{
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}>;
|
|
16
|
+
compact?: boolean;
|
|
17
|
+
onNavigate?: () => void;
|
|
18
|
+
sx?: SxProps<Theme>;
|
|
19
|
+
}
|
|
20
|
+
declare function AIResourceCard({ kind, name, scope, scopeLabel, status, statusLabel, icon, iconColor, metadata, compact, onNavigate, sx, }: AIResourceCardProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare namespace AIResourceCard {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
24
|
+
export default AIResourceCard;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface AIResourceTableColumn {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
render?: (value: any, row: Record<string, any>) => React.ReactNode;
|
|
6
|
+
width?: string | number;
|
|
7
|
+
}
|
|
8
|
+
export interface AIResourceTableProps {
|
|
9
|
+
rows: Array<Record<string, any>>;
|
|
10
|
+
columns: AIResourceTableColumn[];
|
|
11
|
+
title?: string;
|
|
12
|
+
onRowClick?: (row: Record<string, any>) => void;
|
|
13
|
+
sx?: SxProps<Theme>;
|
|
14
|
+
}
|
|
15
|
+
declare function AIResourceTable({ rows, columns, title, onRowClick, sx, }: AIResourceTableProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare namespace AIResourceTable {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
19
|
+
export default AIResourceTable;
|