(input: ActivityInput)
| 692 | * Inject model metadata into the final report. |
| 693 | */ |
| 694 | export 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. |
nothing calls this directly
no test coverage detected