*/
export function mapSDKMessageToAgentSignals(
chat: URI,
turnId: string,
state: ClaudeMapperState,
logService: ILogService,
registry: SubagentRegistry,
clientToolOwner?: (toolName: string) => string | undefined,
turnDuration?: number,
): AgentSignal[] {
if (logService.getLevel() <= LogLevel.Trace) {
try {
const snippet = JSON.stringify(message, (k, v) => typeof v === 'string' && v.length > 200 ? v.slice(0, 200) + '…' : v);