(rawMarkdown: string, reason: string)
| 71 | } |
| 72 | |
| 73 | function fallbackExtraction(rawMarkdown: string, reason: string): SecurityFindingSandboxAnalysis { |
| 74 | return { |
| 75 | isExploitable: 'unknown', |
| 76 | extractionStatus: 'failed', |
| 77 | exploitabilityReasoning: `Extraction failed: ${reason}. Please review the raw analysis.`, |
| 78 | usageLocations: [], |
| 79 | suggestedFix: 'Review the raw analysis for fix recommendations.', |
| 80 | suggestedAction: 'manual_review', |
| 81 | summary: 'Analysis completed but structured extraction failed. Review raw output.', |
| 82 | rawMarkdown, |
| 83 | analysisAt: new Date().toISOString(), |
| 84 | }; |
| 85 | } |
| 86 | |
| 87 | function parseExtractionResult( |
| 88 | argumentsJson: string, |
no outgoing calls
no test coverage detected