File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ const waitForHandler = async (): Promise<MockHandlerInstance> => {
111111
112112const resolvePrompt = async (
113113 handler : MockHandlerInstance ,
114- extras : Partial < ClientAction < 'prompt' > > = { } ,
114+ extras : Partial < Omit < ServerAction < 'prompt-response' > , 'type' | 'promptId '> > = { } ,
115115) => {
116116 const promptId =
117117 handler . lastInput ?. promptId ??
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ import type { SessionState } from '../../common/src/types/session-state'
4444import type { Source } from '../../common/src/types/source'
4545import type { CodebuffFileSystem } from '@codebuff/common/types/filesystem'
4646
47+ type TextPrintEvent = Extract < PrintModeEvent , { type : 'text' } >
48+
4749export type CodebuffClientOptions = {
4850 apiKey ?: string
4951
@@ -141,7 +143,7 @@ export async function run({
141143 const textFilterStates = new Map < string , ToolXmlFilterState > ( )
142144 const textAccumulator = new Map < string , string > ( )
143145 const lastStreamedTextByAgent = new Map < string , string > ( )
144- const lastTextEventByAgent = new Map < string , PrintModeEvent > ( )
146+ const lastTextEventByAgent = new Map < string , TextPrintEvent > ( )
145147 const sectionStartIndexByAgent = new Map < string , number > ( )
146148
147149 const subagentFilterStates = new Map < string , ToolXmlFilterState > ( )
You can’t perform that action at this time.
0 commit comments