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

Function injectReportMetadataActivity

apps/worker/src/temporal/activities.ts:694–704  ·  view source on GitHub ↗
(input: ActivityInput)

Source from the content-addressed store, hash-verified

692 * Inject model metadata into the final report.
693 */
694export async function injectReportMetadataActivity(input: ActivityInput): Promise<void> {
695 const { repoPath, sessionId, outputPath, deliverablesSubdir } = input;
696 const logger = createActivityLogger();
697 const effectiveOutputPath = outputPath ? path.join(outputPath, sessionId) : path.join('./workspaces', sessionId);
698 try {
699 await injectModelIntoReport(repoPath, deliverablesSubdir, effectiveOutputPath, logger);
700 } catch (error) {
701 const err = error as Error;
702 logger.warn(`Error injecting model into report: ${err.message}`);
703 }
704}
705
706/**
707 * Check if exploitation should run for a given vulnerability type.

Callers

nothing calls this directly

Calls 3

createActivityLoggerFunction · 0.85
injectModelIntoReportFunction · 0.85
warnMethod · 0.65

Tested by

no test coverage detected