({ message, attachments, status }, context)
| 184 | renderToolUseMessage, |
| 185 | renderToolResultMessage, |
| 186 | async call({ message, attachments, status }, context) { |
| 187 | const sentAt = new Date().toISOString() |
| 188 | logEvent('tengu_brief_send', { |
| 189 | proactive: status === 'proactive', |
| 190 | attachment_count: attachments?.length ?? 0, |
| 191 | }) |
| 192 | if (!attachments || attachments.length === 0) { |
| 193 | return { data: { message, sentAt } } |
| 194 | } |
| 195 | const appState = context.getAppState() |
| 196 | const resolved = await resolveAttachments(attachments, { |
| 197 | replBridgeEnabled: appState.replBridgeEnabled, |
| 198 | signal: context.abortController.signal, |
| 199 | }) |
| 200 | return { |
| 201 | data: { message, attachments: resolved, sentAt }, |
| 202 | } |
| 203 | }, |
| 204 | } satisfies ToolDef<InputSchema, Output>) |
| 205 |
nothing calls this directly
no test coverage detected