(deliverablesPath: string)
| 259 | const collector = createPreReconCollectorServer(); |
| 260 | |
| 261 | const writeDeliverable = async (deliverablesPath: string): Promise<void> => { |
| 262 | const logger = createActivityLogger(); |
| 263 | // Skipped tools surface as renderer placeholders, not as activity failures. |
| 264 | const callStatus = collector.getCallStatus(); |
| 265 | logger.info('Pre-recon tool call status', { callStatus }); |
| 266 | |
| 267 | const collected = collector.getAll(); |
| 268 | const markdown = renderPreRecon(collected); |
| 269 | const mdPath = path.join(deliverablesPath, 'pre_recon_deliverable.md'); |
| 270 | await atomicWrite(mdPath, markdown); |
| 271 | logger.info(`Wrote pre_recon_deliverable.md from structured data (${markdown.length} bytes)`); |
| 272 | }; |
| 273 | |
| 274 | return runAgentActivity('pre-recon', input, { 'pre-recon-collector': collector.server }, writeDeliverable); |
| 275 | } |
no test coverage detected