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

Function validateQueueSafe

apps/worker/src/services/queue-validation.ts:301–308  ·  view source on GitHub ↗
(vulnType: VulnType, sourceDir: string)

Source from the content-addressed store, hash-verified

299 * Returns Result<ExploitationDecision, PentestError> for explicit error handling.
300 */
301export async function validateQueueSafe(vulnType: VulnType, sourceDir: string): Promise<SafeValidationResult> {
302 try {
303 const result = await validateQueueAndDeliverable(vulnType, sourceDir);
304 return ok(result);
305 } catch (error) {
306 return err(error as PentestError);
307 }
308}

Callers 1

checkQueueMethod · 0.85

Calls 3

okFunction · 0.85
errFunction · 0.85

Tested by

no test coverage detected