MCPcopy
hub / github.com/KeygraphHQ/shannon / writeDeliverable

Function writeDeliverable

apps/worker/src/temporal/activities.ts:261–272  ·  view source on GitHub ↗
(deliverablesPath: string)

Source from the content-addressed store, hash-verified

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}

Callers 1

executeMethod · 0.85

Calls 9

createActivityLoggerFunction · 0.85
renderPreReconFunction · 0.85
atomicWriteFunction · 0.85
renderReconFunction · 0.85
renderVulnDeliverableFunction · 0.85
renderExploitDeliverableFunction · 0.85
getCallStatusMethod · 0.65
infoMethod · 0.65
getAllMethod · 0.65

Tested by

no test coverage detected