File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { executeToolCall } from './tools/tool-executor'
1111import { logger } from './util/logger'
1212import { SandboxManager } from './util/quickjs-sandbox'
1313import { getRequestContext } from './websockets/request-context'
14+ import { sendAction } from './websockets/websocket-action'
1415
1516// Global sandbox manager for QuickJS contexts
1617const sandboxManager = new SandboxManager ( )
@@ -119,6 +120,18 @@ export async function runProgrammaticStep(
119120 userId,
120121 repoId,
121122 agentTemplate : template ,
123+ sendSubagentChunk : ( data : {
124+ userInputId : string
125+ agentId : string
126+ agentType : string
127+ chunk : string
128+ prompt ?: string
129+ } ) => {
130+ sendAction ( ws , {
131+ type : 'subagent-response-chunk' ,
132+ ...data ,
133+ } )
134+ } ,
122135 agentState : { ...agentState } ,
123136 agentContext : agentState . agentContext ,
124137 messages : [ ...agentState . messageHistory ] ,
You can’t perform that action at this time.
0 commit comments