File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import type {
3333 FinishAgentRunFn ,
3434 StartAgentRunFn ,
3535} from '@codebuff/common/types/contracts/database'
36+ import type { SendActionFn } from '@codebuff/common/types/contracts/client'
3637import type { Logger } from '@codebuff/common/types/contracts/logger'
3738import type { ParamsExcluding } from '@codebuff/common/types/function-params'
3839import type { Message } from '@codebuff/common/types/messages/codebuff-message'
@@ -56,6 +57,7 @@ export const runAgentStep = async (
5657 clientSessionId : string
5758 fingerprintId : string
5859 onResponseChunk : ( chunk : string | PrintModeEvent ) => void
60+ sendAction : SendActionFn
5961
6062 agentType : AgentTemplateType
6163 fileContext : ProjectFileContext
@@ -105,6 +107,7 @@ export const runAgentStep = async (
105107 fingerprintId,
106108 clientSessionId,
107109 onResponseChunk,
110+ sendAction,
108111 fileContext,
109112 agentType,
110113 localAgentTemplates,
@@ -258,6 +261,7 @@ export const runAgentStep = async (
258261 )
259262 }
260263 } ,
264+ sendAction,
261265 promptAiSdkStream,
262266 logger,
263267 includeCacheControl : supportsCacheControl ( agentTemplate . model ) ,
Original file line number Diff line number Diff line change @@ -192,6 +192,7 @@ export async function runProgrammaticStep(
192192 agentType : string
193193 chunk : string
194194 prompt ?: string
195+ forwardToPrompt ?: boolean
195196 } ) => {
196197 sendAction ( {
197198 action : {
You can’t perform that action at this time.
0 commit comments