Inline implementation of extractToolResultId — reads toolCallId or toolUseId * from a message object. Mirrors src/agents/tool-call-id.ts:71-83.
(message: Record<string, unknown>)
| 24 | /** Inline implementation of extractToolResultId — reads toolCallId or toolUseId |
| 25 | * from a message object. Mirrors src/agents/tool-call-id.ts:71-83. */ |
| 26 | function extractToolResultId(message: Record<string, unknown>): string | undefined { |
| 27 | return (message.toolCallId ?? message.toolUseId) as string | undefined; |
| 28 | } |
| 29 | |
| 30 | function send_message(state: SessionState, content: string) { |
| 31 | if (!plugin.config!.notifications.enableProactiveNotifications) return; |