@ash-ai/ui 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { AshClient, Session, Agent, FileEntry } from '@ash-ai/sdk';
2
+ import { AshClient, Session, Agent, AgentVersion, FileEntry } from '@ash-ai/sdk';
3
3
  import { ClassValue } from 'clsx';
4
4
 
5
5
  interface PlaygroundProps {
@@ -174,6 +174,36 @@ interface BottomPanelsProps {
174
174
  }
175
175
  declare function BottomPanels({ terminalOpen, onToggleTerminal, filesOpen, onToggleFiles, className, }: BottomPanelsProps): react_jsx_runtime.JSX.Element;
176
176
 
177
+ interface AgentConfigEditorProps {
178
+ client: AshClient;
179
+ agentName: string;
180
+ className?: string;
181
+ onSaved?: (config: Record<string, unknown>) => void;
182
+ }
183
+ declare function AgentConfigEditor({ client, agentName, className, onSaved }: AgentConfigEditorProps): react_jsx_runtime.JSX.Element;
184
+
185
+ interface AgentVersionManagerProps {
186
+ client: AshClient;
187
+ agentName: string;
188
+ className?: string;
189
+ onActivated?: (version: AgentVersion) => void;
190
+ }
191
+ declare function AgentVersionManager({ client, agentName, className, onActivated }: AgentVersionManagerProps): react_jsx_runtime.JSX.Element;
192
+
193
+ interface AgentKnowledgeBaseProps {
194
+ client: AshClient;
195
+ agentName: string;
196
+ className?: string;
197
+ }
198
+ declare function AgentKnowledgeBase({ client, agentName, className }: AgentKnowledgeBaseProps): react_jsx_runtime.JSX.Element;
199
+
200
+ interface AgentEvalRunnerProps {
201
+ client: AshClient;
202
+ agentName: string;
203
+ className?: string;
204
+ }
205
+ declare function AgentEvalRunner({ client, agentName, className }: AgentEvalRunnerProps): react_jsx_runtime.JSX.Element;
206
+
177
207
  interface UsePlaygroundChatOptions {
178
208
  client: AshClient;
179
209
  agentSlug: string;
@@ -325,4 +355,4 @@ declare function parseContentBlocks(content: unknown): {
325
355
  declare function isImageFile(name: string): boolean;
326
356
  declare function getFileLanguage(name: string): string;
327
357
 
328
- export { type AttachedFile, BottomPanels, type BottomPanelsProps, Chat, ChatInput, type ChatInputProps, ChatMessage, type ChatMessageProps, type ChatMessage$1 as ChatMessageType, ChatMessages, type ChatMessagesProps, type ChatProps, FileBrowser, type FileBrowserProps, FileTree, type FileTreeProps, type LogEntry, Playground, type PlaygroundContextValue, PlaygroundHeader, type PlaygroundHeaderProps, type PlaygroundProps, PlaygroundProvider, type PlaygroundProviderProps, SessionHistory, type SessionHistoryProps, StatusIndicator, type StatusIndicatorProps, Terminal, type TerminalProps, ThinkingBlock, type ToolCall, ToolCallBlock, type TreeNode, type UseAgentsOptions, type UseAgentsReturn, type UseFileBrowserOptions, type UseFileBrowserReturn, type UseFileUploadOptions, type UseFileUploadReturn, type UseHealthCheckOptions, type UseHealthCheckReturn, type UsePlaygroundChatOptions, type UsePlaygroundChatReturn, type UseSessionsOptions, type UseSessionsReturn, type UseTerminalOptions, type UseTerminalReturn, buildFileTree, cn, formatBytes, formatTime, getFileLanguage, isImageFile, parseContentBlocks, useAgents, useFileBrowser, useFileUpload, useHealthCheck, usePlaygroundChat, usePlaygroundContext, useSessions, useTerminal };
358
+ export { AgentConfigEditor, type AgentConfigEditorProps, AgentEvalRunner, type AgentEvalRunnerProps, AgentKnowledgeBase, type AgentKnowledgeBaseProps, AgentVersionManager, type AgentVersionManagerProps, type AttachedFile, BottomPanels, type BottomPanelsProps, Chat, ChatInput, type ChatInputProps, ChatMessage, type ChatMessageProps, type ChatMessage$1 as ChatMessageType, ChatMessages, type ChatMessagesProps, type ChatProps, FileBrowser, type FileBrowserProps, FileTree, type FileTreeProps, type LogEntry, Playground, type PlaygroundContextValue, PlaygroundHeader, type PlaygroundHeaderProps, type PlaygroundProps, PlaygroundProvider, type PlaygroundProviderProps, SessionHistory, type SessionHistoryProps, StatusIndicator, type StatusIndicatorProps, Terminal, type TerminalProps, ThinkingBlock, type ToolCall, ToolCallBlock, type TreeNode, type UseAgentsOptions, type UseAgentsReturn, type UseFileBrowserOptions, type UseFileBrowserReturn, type UseFileUploadOptions, type UseFileUploadReturn, type UseHealthCheckOptions, type UseHealthCheckReturn, type UsePlaygroundChatOptions, type UsePlaygroundChatReturn, type UseSessionsOptions, type UseSessionsReturn, type UseTerminalOptions, type UseTerminalReturn, buildFileTree, cn, formatBytes, formatTime, getFileLanguage, isImageFile, parseContentBlocks, useAgents, useFileBrowser, useFileUpload, useHealthCheck, usePlaygroundChat, usePlaygroundContext, useSessions, useTerminal };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { AshClient, Session, Agent, FileEntry } from '@ash-ai/sdk';
2
+ import { AshClient, Session, Agent, AgentVersion, FileEntry } from '@ash-ai/sdk';
3
3
  import { ClassValue } from 'clsx';
4
4
 
5
5
  interface PlaygroundProps {
@@ -174,6 +174,36 @@ interface BottomPanelsProps {
174
174
  }
175
175
  declare function BottomPanels({ terminalOpen, onToggleTerminal, filesOpen, onToggleFiles, className, }: BottomPanelsProps): react_jsx_runtime.JSX.Element;
176
176
 
177
+ interface AgentConfigEditorProps {
178
+ client: AshClient;
179
+ agentName: string;
180
+ className?: string;
181
+ onSaved?: (config: Record<string, unknown>) => void;
182
+ }
183
+ declare function AgentConfigEditor({ client, agentName, className, onSaved }: AgentConfigEditorProps): react_jsx_runtime.JSX.Element;
184
+
185
+ interface AgentVersionManagerProps {
186
+ client: AshClient;
187
+ agentName: string;
188
+ className?: string;
189
+ onActivated?: (version: AgentVersion) => void;
190
+ }
191
+ declare function AgentVersionManager({ client, agentName, className, onActivated }: AgentVersionManagerProps): react_jsx_runtime.JSX.Element;
192
+
193
+ interface AgentKnowledgeBaseProps {
194
+ client: AshClient;
195
+ agentName: string;
196
+ className?: string;
197
+ }
198
+ declare function AgentKnowledgeBase({ client, agentName, className }: AgentKnowledgeBaseProps): react_jsx_runtime.JSX.Element;
199
+
200
+ interface AgentEvalRunnerProps {
201
+ client: AshClient;
202
+ agentName: string;
203
+ className?: string;
204
+ }
205
+ declare function AgentEvalRunner({ client, agentName, className }: AgentEvalRunnerProps): react_jsx_runtime.JSX.Element;
206
+
177
207
  interface UsePlaygroundChatOptions {
178
208
  client: AshClient;
179
209
  agentSlug: string;
@@ -325,4 +355,4 @@ declare function parseContentBlocks(content: unknown): {
325
355
  declare function isImageFile(name: string): boolean;
326
356
  declare function getFileLanguage(name: string): string;
327
357
 
328
- export { type AttachedFile, BottomPanels, type BottomPanelsProps, Chat, ChatInput, type ChatInputProps, ChatMessage, type ChatMessageProps, type ChatMessage$1 as ChatMessageType, ChatMessages, type ChatMessagesProps, type ChatProps, FileBrowser, type FileBrowserProps, FileTree, type FileTreeProps, type LogEntry, Playground, type PlaygroundContextValue, PlaygroundHeader, type PlaygroundHeaderProps, type PlaygroundProps, PlaygroundProvider, type PlaygroundProviderProps, SessionHistory, type SessionHistoryProps, StatusIndicator, type StatusIndicatorProps, Terminal, type TerminalProps, ThinkingBlock, type ToolCall, ToolCallBlock, type TreeNode, type UseAgentsOptions, type UseAgentsReturn, type UseFileBrowserOptions, type UseFileBrowserReturn, type UseFileUploadOptions, type UseFileUploadReturn, type UseHealthCheckOptions, type UseHealthCheckReturn, type UsePlaygroundChatOptions, type UsePlaygroundChatReturn, type UseSessionsOptions, type UseSessionsReturn, type UseTerminalOptions, type UseTerminalReturn, buildFileTree, cn, formatBytes, formatTime, getFileLanguage, isImageFile, parseContentBlocks, useAgents, useFileBrowser, useFileUpload, useHealthCheck, usePlaygroundChat, usePlaygroundContext, useSessions, useTerminal };
358
+ export { AgentConfigEditor, type AgentConfigEditorProps, AgentEvalRunner, type AgentEvalRunnerProps, AgentKnowledgeBase, type AgentKnowledgeBaseProps, AgentVersionManager, type AgentVersionManagerProps, type AttachedFile, BottomPanels, type BottomPanelsProps, Chat, ChatInput, type ChatInputProps, ChatMessage, type ChatMessageProps, type ChatMessage$1 as ChatMessageType, ChatMessages, type ChatMessagesProps, type ChatProps, FileBrowser, type FileBrowserProps, FileTree, type FileTreeProps, type LogEntry, Playground, type PlaygroundContextValue, PlaygroundHeader, type PlaygroundHeaderProps, type PlaygroundProps, PlaygroundProvider, type PlaygroundProviderProps, SessionHistory, type SessionHistoryProps, StatusIndicator, type StatusIndicatorProps, Terminal, type TerminalProps, ThinkingBlock, type ToolCall, ToolCallBlock, type TreeNode, type UseAgentsOptions, type UseAgentsReturn, type UseFileBrowserOptions, type UseFileBrowserReturn, type UseFileUploadOptions, type UseFileUploadReturn, type UseHealthCheckOptions, type UseHealthCheckReturn, type UsePlaygroundChatOptions, type UsePlaygroundChatReturn, type UseSessionsOptions, type UseSessionsReturn, type UseTerminalOptions, type UseTerminalReturn, buildFileTree, cn, formatBytes, formatTime, getFileLanguage, isImageFile, parseContentBlocks, useAgents, useFileBrowser, useFileUpload, useHealthCheck, usePlaygroundChat, usePlaygroundContext, useSessions, useTerminal };