diff --git a/app/chat/components/BaseChat.tsx b/app/chat/components/BaseChat.tsx index 05fc56e3..5dc0a982 100644 --- a/app/chat/components/BaseChat.tsx +++ b/app/chat/components/BaseChat.tsx @@ -25,7 +25,6 @@ import ChatAlert from './alerts/ChatAlert'; import type { ModelInfo } from '~/shared/lib/providers/types'; import ProgressCompilation from './ProgressCompilation'; import type { ProgressAnnotation } from '~/shared/types/context'; -import type { ActionRunner } from '~/shared/lib/runtime/action-runner'; import { SupabaseChatAlert } from '~/chat/components/alerts/SupabaseAlert'; import { expoUrlAtom } from '~/shared/workbench/stores/qrCodeStore'; import { useStore } from '@nanostores/react'; @@ -71,7 +70,6 @@ interface BaseChatProps { deployAlert?: DeployAlert; clearDeployAlert?: () => void; data?: JSONValue[] | undefined; - actionRunner?: ActionRunner; chatMode?: 'discuss' | 'build'; setChatMode?: (mode: 'discuss' | 'build') => void; append?: (message: Message) => void; @@ -116,7 +114,6 @@ export const BaseChat = React.forwardRef( supabaseAlert, clearSupabaseAlert, data, - actionRunner, chatMode, setChatMode, append, @@ -483,12 +480,7 @@ export const BaseChat = React.forwardRef( {() => ( - + )} diff --git a/app/shared/workbench/components/Workbench.client.tsx b/app/shared/workbench/components/Workbench.client.tsx index e2468e34..7c493a35 100644 --- a/app/shared/workbench/components/Workbench.client.tsx +++ b/app/shared/workbench/components/Workbench.client.tsx @@ -5,7 +5,6 @@ import { memo, useCallback, useEffect, useState, useMemo } from 'react'; import { toast } from 'react-toastify'; import { Popover, Transition } from '@headlessui/react'; import { diffLines, type Change } from 'diff'; -import { ActionRunner } from '~/shared/lib/runtime/action-runner'; import { getLanguageFromExtension } from '~/shared/utils/getLanguageFromExtension'; import type { FileHistory } from '~/shared/types/actions'; import { DiffView } from './ui/DiffView'; @@ -32,7 +31,6 @@ import type { ElementInfo } from './ui/Inspector'; interface WorkspaceProps { chatStarted?: boolean; isStreaming?: boolean; - actionRunner: ActionRunner; metadata?: { gitUrl?: string; }; @@ -281,7 +279,7 @@ const FileModifiedDropdown = memo( ); export const Workbench = memo( - ({ chatStarted, isStreaming, actionRunner, metadata, updateChatMestaData, setSelectedElement }: WorkspaceProps) => { + ({ chatStarted, isStreaming, metadata, updateChatMestaData, setSelectedElement }: WorkspaceProps) => { renderLogger.trace('Workbench'); const [isSyncing, setIsSyncing] = useState(false); @@ -486,7 +484,7 @@ export const Workbench = memo( initial={{ x: '100%' }} animate={{ x: selectedView === 'diff' ? '0%' : selectedView === 'code' ? '100%' : '-100%' }} > - + diff --git a/app/shared/workbench/components/ui/DiffView.tsx b/app/shared/workbench/components/ui/DiffView.tsx index 8f2caf9e..56fcda62 100644 --- a/app/shared/workbench/components/ui/DiffView.tsx +++ b/app/shared/workbench/components/ui/DiffView.tsx @@ -7,7 +7,6 @@ import { diffLines, type Change } from 'diff'; import { getHighlighter } from 'shiki'; import '~/styles/diff-view.css'; import { diffFiles, extractRelativePath } from '~/shared/utils/diff'; -import { ActionRunner } from '~/shared/lib/runtime/action-runner'; import type { FileHistory } from '~/shared/types/actions'; import { getLanguageFromExtension } from '~/shared/utils/getLanguageFromExtension'; import { themeStore } from '~/shared/stores/theme'; @@ -664,7 +663,6 @@ const InlineDiffComparison = memo(({ beforeCode, afterCode, filename, language } interface DiffViewProps { fileHistory: Record; setFileHistory: React.Dispatch>>; - actionRunner: ActionRunner; } export const DiffView = memo(({ fileHistory, setFileHistory }: DiffViewProps) => {