210
*/
211
export function emitInnerAssistantSignals(
213
>
chat: URI,
214
>
turnId: string,
215
>
state: ClaudeMapperState,
216
>
parentToolUseId: string,
217
>
registry: SubagentRegistry,
218
>
): AgentSignal[] {
219
>
const messageId = message.message.id;
220
>
const signals: AgentSignal[] = [];
221
>
for (let index = 0; index < message.message.content.length; index++) {
222
>
const block = message.message.content[index];
223
>
if (block.type === 'text') {
224
>
signals.push({
225
>
kind: 'action',
226
>
resource: chat,
227
>
action: {
228
>
type: ActionType.ChatResponsePart,
229
>
turnId,
230
>
part: {
231
>
kind: ResponsePartKind.Markdown,
232
>
id: `${turnId}#${messageId}#${index}`,
233
>
content: block.text,
234
>
},
235
>
},
236
>
});
237
>
continue;
238
>
}
239
if (block.type === 'thinking') {
240
signals.push({