MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / updateStreamingAgents

Function updateStreamingAgents

cli/src/utils/sdk-event-handlers.ts:149–163  ·  view source on GitHub ↗
(
  state: EventHandlerState,
  op: { add?: string; remove?: string },
)

Source from the content-addressed store, hash-verified

147}
148
149const updateStreamingAgents = (
150 state: EventHandlerState,
151 op: { add?: string; remove?: string },
152) => {
153 state.streaming.setStreamingAgents((prev) => {
154 const next = new Set(prev)
155 if (op.remove) {
156 next.delete(op.remove)
157 }
158 if (op.add) {
159 next.add(op.add)
160 }
161 return next
162 })
163}
164
165const handleSubagentStart = (
166 state: EventHandlerState,

Callers 6

handleSubagentStartFunction · 0.85
handleSubagentFinishFunction · 0.85
handleToolCallFunction · 0.85
handleSpawnAgentsResultFunction · 0.85
handleToolResultFunction · 0.85

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected