mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-27 03:54:49 +02:00
[eric] tree: group AgentChat into bubbles/tool-bubbles/mcp-cards/parsing/shell
This commit is contained in:
@@ -30,7 +30,7 @@ import {
|
||||
import { API_BASE, getAuthToken } from '@/shared/config';
|
||||
import { store } from '@/shared/state/store';
|
||||
import { setPendingFocusAgentId } from '@/shared/state/tempStateSlice';
|
||||
import ApprovalBar, { BatchApprovalBar, parseMcpToolName, useMcpToolMeta, getToolIcon } from '@/app/pages/AgentChat/ApprovalBar';
|
||||
import ApprovalBar, { BatchApprovalBar, parseMcpToolName, useMcpToolMeta, getToolIcon } from '@/app/pages/AgentChat/shell/ApprovalBar';
|
||||
import GlobalSearchPalette from '@/app/components/GlobalSearchPalette';
|
||||
import { useClaudeTokens } from '@/shared/styles/ThemeContext';
|
||||
|
||||
|
||||
@@ -41,15 +41,15 @@ import {
|
||||
} from '@/shared/state/agentsSlice';
|
||||
import { fetchModes } from '@/shared/state/modesSlice';
|
||||
import { createSessionWs } from '@/shared/ws/WebSocketManager';
|
||||
import StreamingBubble from './StreamingBubble';
|
||||
import MessageBubble from './MessageBubble';
|
||||
import CompactionMarker from './CompactionMarker';
|
||||
import MessageActionBar from './MessageActionBar';
|
||||
import ToolCallBubble, { ToolPair } from './ToolCallBubble';
|
||||
import ToolGroupBubble, { RenderItem, ToolGroup, isToolGroup, isToolPair } from './ToolGroupBubble';
|
||||
import ApprovalBar, { BatchApprovalBar } from './ApprovalBar';
|
||||
import StreamingBubble from './bubbles/StreamingBubble';
|
||||
import MessageBubble from './bubbles/MessageBubble';
|
||||
import CompactionMarker from './bubbles/CompactionMarker';
|
||||
import MessageActionBar from './shell/MessageActionBar';
|
||||
import ToolCallBubble, { ToolPair } from './tool-bubbles/ToolCallBubble';
|
||||
import ToolGroupBubble, { RenderItem, ToolGroup, isToolGroup, isToolPair } from './tool-bubbles/ToolGroupBubble';
|
||||
import ApprovalBar, { BatchApprovalBar } from './shell/ApprovalBar';
|
||||
import ChatInput, { ChatInputHandle } from './ChatInput';
|
||||
import ContextDrawer from './ContextDrawer';
|
||||
import ContextDrawer from './shell/ContextDrawer';
|
||||
import { ErrorSlime } from '@/app/components/ErrorSlime';
|
||||
import { ContextPath } from '@/app/components/DirectoryBrowser';
|
||||
import { setGlowingBrowserCards, fadeGlowingBrowserCards, clearGlowingBrowserCards } from '@/shared/state/dashboardLayoutSlice';
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import { useStreamingMessage } from '@/shared/state/streamingSlice';
|
||||
import MessageBubble from './MessageBubble';
|
||||
import ToolCallBubble from './ToolCallBubble';
|
||||
import ToolCallBubble from '../tool-bubbles/ToolCallBubble';
|
||||
|
||||
interface Props {
|
||||
sessionId: string;
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
import React from 'react';
|
||||
import Box from '@mui/material/Box';
|
||||
import { useClaudeTokens } from '@/shared/styles/ThemeContext';
|
||||
import { ParsedMcpResult } from './toolResultParsing';
|
||||
import { useTermColors } from './toolColorize';
|
||||
import { ParsedMcpResult } from '../parsing/toolResultParsing';
|
||||
import { useTermColors } from '../parsing/toolColorize';
|
||||
import { useCardColors } from './cardColors';
|
||||
import { GmailCard } from './GmailCard';
|
||||
import { CalendarCard } from './CalendarCard';
|
||||
+7
-7
@@ -9,14 +9,14 @@ import ErrorOutlineIcon from '@mui/icons-material/ErrorOutline';
|
||||
import BlockIcon from '@mui/icons-material/Block';
|
||||
import { AgentMessage } from '@/shared/state/agentsSlice';
|
||||
import { useClaudeTokens } from '@/shared/styles/ThemeContext';
|
||||
import { getToolLabel } from './toolLabels';
|
||||
import BrowserAgentInlineFeed from './BrowserAgentInlineFeed';
|
||||
import { GoogleServiceIcon } from './GoogleServiceIcon';
|
||||
import { ElapsedTimer, formatElapsed } from './toolBubbleChrome';
|
||||
import { useTermColors } from './toolColorize';
|
||||
import { ParsedResult } from './toolResultParsing';
|
||||
import { getToolLabel } from '../parsing/toolLabels';
|
||||
import BrowserAgentInlineFeed from '../shell/BrowserAgentInlineFeed';
|
||||
import { GoogleServiceIcon } from '../mcp-cards/GoogleServiceIcon';
|
||||
import { ElapsedTimer, formatElapsed } from '../parsing/toolBubbleChrome';
|
||||
import { useTermColors } from '../parsing/toolColorize';
|
||||
import { ParsedResult } from '../parsing/toolResultParsing';
|
||||
import { McpToolInfo, getMcpShortAction } from '@/shared/mcpToolMeta';
|
||||
import { McpResultCard } from './McpResultCard';
|
||||
import { McpResultCard } from '../mcp-cards/McpResultCard';
|
||||
|
||||
interface CompactMcpBubbleProps {
|
||||
call: AgentMessage;
|
||||
+1
-1
@@ -10,7 +10,7 @@ import BlockIcon from '@mui/icons-material/Block';
|
||||
import CallSplitIcon from '@mui/icons-material/CallSplit';
|
||||
import { AgentMessage } from '@/shared/state/agentsSlice';
|
||||
import { useClaudeTokens } from '@/shared/styles/ThemeContext';
|
||||
import { ElapsedTimer, formatElapsed } from './toolBubbleChrome';
|
||||
import { ElapsedTimer, formatElapsed } from '../parsing/toolBubbleChrome';
|
||||
import { AgentResponseBody } from './AgentResponseBody';
|
||||
|
||||
interface CreateAgentBubbleProps {
|
||||
+7
-7
@@ -11,14 +11,14 @@ import BlockIcon from '@mui/icons-material/Block';
|
||||
import SearchIcon from '@mui/icons-material/Search';
|
||||
import { AgentMessage } from '@/shared/state/agentsSlice';
|
||||
import { useClaudeTokens } from '@/shared/styles/ThemeContext';
|
||||
import { getToolLabelWithInput } from './toolLabels';
|
||||
import BrowserAgentInlineFeed from './BrowserAgentInlineFeed';
|
||||
import { GoogleServiceIcon } from './GoogleServiceIcon';
|
||||
import { ElapsedTimer, formatElapsed } from './toolBubbleChrome';
|
||||
import { useTermColors, colorizeInput, colorizeOutput } from './toolColorize';
|
||||
import { ParsedResult } from './toolResultParsing';
|
||||
import { getToolLabelWithInput } from '../parsing/toolLabels';
|
||||
import BrowserAgentInlineFeed from '../shell/BrowserAgentInlineFeed';
|
||||
import { GoogleServiceIcon } from '../mcp-cards/GoogleServiceIcon';
|
||||
import { ElapsedTimer, formatElapsed } from '../parsing/toolBubbleChrome';
|
||||
import { useTermColors, colorizeInput, colorizeOutput } from '../parsing/toolColorize';
|
||||
import { ParsedResult } from '../parsing/toolResultParsing';
|
||||
import { McpToolInfo } from '@/shared/mcpToolMeta';
|
||||
import { McpResultCard } from './McpResultCard';
|
||||
import { McpResultCard } from '../mcp-cards/McpResultCard';
|
||||
|
||||
interface DefaultToolBubbleProps {
|
||||
call: AgentMessage;
|
||||
+2
-2
@@ -10,9 +10,9 @@ import BlockIcon from '@mui/icons-material/Block';
|
||||
import CallSplitIcon from '@mui/icons-material/CallSplit';
|
||||
import { AgentMessage } from '@/shared/state/agentsSlice';
|
||||
import { useClaudeTokens } from '@/shared/styles/ThemeContext';
|
||||
import { ElapsedTimer, formatElapsed } from './toolBubbleChrome';
|
||||
import { ElapsedTimer, formatElapsed } from '../parsing/toolBubbleChrome';
|
||||
import { AgentResponseBody } from './AgentResponseBody';
|
||||
import { InvokeAgentParsed } from './agentToolParsing';
|
||||
import { InvokeAgentParsed } from '../parsing/agentToolParsing';
|
||||
|
||||
interface InvokeAgentBubbleProps {
|
||||
call: AgentMessage;
|
||||
+3
-3
@@ -3,7 +3,7 @@ import { AgentMessage, expandSession, collapseSession, fetchSession } from '@/sh
|
||||
import { useAppDispatch, useAppSelector } from '@/shared/hooks';
|
||||
import { placeCard, removeCard, setGlowingAgentCard, clearGlowingAgentCard, DEFAULT_CARD_W, DEFAULT_CARD_H, EXPANDED_CARD_MIN_H, GRID_GAP } from '@/shared/state/dashboardLayoutSlice';
|
||||
import { useClaudeTokens } from '@/shared/styles/ThemeContext';
|
||||
import { ensureToolCallKeyframes } from './toolBubbleChrome';
|
||||
import { ensureToolCallKeyframes } from '../parsing/toolBubbleChrome';
|
||||
import {
|
||||
getToolData,
|
||||
getInputSummary,
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
parseToolResult,
|
||||
getResultSummary,
|
||||
getPromptPrefix,
|
||||
} from './toolResultParsing';
|
||||
} from '../parsing/toolResultParsing';
|
||||
import { parseMcpToolName } from '@/shared/mcpToolMeta';
|
||||
import {
|
||||
isBrowserAgentTool,
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
parseInvokedSessionId,
|
||||
parseCreateAgentResult,
|
||||
parseInvokeAgentResult,
|
||||
} from './agentToolParsing';
|
||||
} from '../parsing/agentToolParsing';
|
||||
import { InvokeAgentBubble } from './InvokeAgentBubble';
|
||||
import { CreateAgentBubble } from './CreateAgentBubble';
|
||||
import { CompactMcpBubble } from './CompactMcpBubble';
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
removeCard,
|
||||
} from '@/shared/state/dashboardLayoutSlice';
|
||||
import { useAppDispatch, useAppSelector } from '@/shared/hooks';
|
||||
import { QuestionForm } from '@/app/pages/AgentChat/ApprovalBar';
|
||||
import { QuestionForm } from '@/app/pages/AgentChat/shell/ApprovalBar';
|
||||
import AgentChat from '@/app/pages/AgentChat/AgentChat';
|
||||
import { parseMcpToolName, getMcpShortAction } from '@/shared/mcpToolMeta';
|
||||
import { useClaudeTokens } from '@/shared/styles/ThemeContext';
|
||||
|
||||
Reference in New Issue
Block a user