Skip to content

Commit 6dfc0a0

Browse files
committed
refactor: move inline StreamStatus import to top of file
1 parent c72e7c5 commit 6dfc0a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/src/hooks/use-send-message.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import type { SendMessageFn } from '../types/contracts/send-message'
1616
import type { ParamsOf } from '../types/function-params'
1717
import type { SetElement } from '../types/utils'
1818
import type { AgentMode } from '../utils/constants'
19+
import type { StreamStatus } from './use-message-queue'
1920
import type { AgentDefinition, ToolName } from '@codebuff/sdk'
2021
import type { SetStateAction } from 'react'
2122
const hiddenToolNames = new Set<ToolName | 'spawn_agent_inline'>([
@@ -173,7 +174,7 @@ interface UseSendMessageOptions {
173174
isChainInProgressRef: React.MutableRefObject<boolean>
174175
setActiveSubagents: React.Dispatch<React.SetStateAction<Set<string>>>
175176
setIsChainInProgress: (value: boolean) => void
176-
setStreamStatus: (status: import('./use-message-queue').StreamStatus) => void
177+
setStreamStatus: (status: StreamStatus) => void
177178
startStreaming: () => void
178179
stopStreaming: () => void
179180
setCanProcessQueue: (can: boolean) => void

0 commit comments

Comments
 (0)