e5874a4887
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 lines
816 B
TypeScript
23 lines
816 B
TypeScript
/**
|
|
* FindingsProvider — injectable interface for external findings integration.
|
|
*
|
|
* Allows external security data (SAST, SCA, secrets, etc.) to be merged
|
|
* into the exploitation pipeline between vulnerability analysis and exploitation.
|
|
*
|
|
* Default: no-op returning { mergedCount: 0 }.
|
|
*/
|
|
|
|
import type { ActivityInput } from '../temporal/activities.js';
|
|
import type { VulnType } from '../types/agents.js';
|
|
|
|
export interface FindingsProvider {
|
|
mergeFindingsIntoQueue(repoPath: string, vulnType: VulnType, input: ActivityInput): Promise<{ mergedCount: number }>;
|
|
}
|
|
|
|
/** Default no-op implementation — no external findings to merge. */
|
|
export class NoOpFindingsProvider implements FindingsProvider {
|
|
async mergeFindingsIntoQueue(): Promise<{ mergedCount: number }> {
|
|
return { mergedCount: 0 };
|
|
}
|
|
}
|