Back to Components
Desktop (Electron)
AIUtils
Utility
AIUtils
Lines
956
File
AIUtils.ts
Last Modified
2026-10-08
Exports
ThreatRecordgetThreatRecordsetThreatRecordresetThreatStrikesThreatCheckResultcheckThreatscrubbedContentisFailedPageContentextractSiteFromContextapplyInlineMarkdownescapeHtmldetectHallucinatedContentsanitizePDFContentPDFImagebuildBodyFromMarkdownbuildCleanPDFContentPDFActionLogPDFOCRDataPDFMediaAttachmentPDFContentDataPDFDetailLevelPDFPagePDFSectionPDFImageActionTypePDFImageActionEnhancedPDFDataPDF_ICONSgetIcongetDetailLevelStylesbuildPDFFromJSONbuildEnhancedPDFFromJSONgenerateSmartPDFbuildCapabilityReportPDFlsGetlsSetlsRemovetryGetIconBase64
Source Path
aartiq-browser/src/ai/AIUtils.ts
Tags
SecurityAIAutomationPDFOCRmacOS
Code Analysis
External Dependencies
No external dependencies
Internal Imports
./RobustParsers
Props / Types
ThreatRecord
| Prop | Type | Required |
|---|---|---|
| strikes | number | No |
| bannedUntil | number | No |
| permanentBan | boolean | No |
ThreatCheckResult
| Prop | Type | Required |
|---|---|---|
| blocked | boolean | Yes |
| response | string | No |
| ban | boolean | No |
PDFImage
| Prop | Type | Required |
|---|---|---|
| src | string | Yes |
| alt | string | No |
| width | string | number | No |
| height | string | number | No |
| caption | string | No |
PDFActionLog
| Prop | Type | Required |
|---|---|---|
| index | number | Yes |
| type | string | Yes |
| success | boolean | Yes |
| output | string | Yes |
PDFOCRData
| Prop | Type | Required |
|---|---|---|
| type | string | Yes |
| label | string | Yes |
| textLength | number | Yes |
| content | string | Yes |
PDFMediaAttachment
| Prop | Type | Required |
|---|---|---|
| type | string | Yes |
| url | string | No |
| caption | string | No |
| videoUrl | string | No |
| title | string | No |
| description | string | No |
PDFContentData
| Prop | Type | Required |
|---|---|---|
| title | string | Yes |
| content | string | Yes |
| author | string | No |
| subtitle | string | No |
| actionLogs | PDFActionLog[] | No |
| ocrData | PDFOCRData[] | No |
| mediaAttachments | PDFMediaAttachment[] | No |
PDFPage
| Prop | Type | Required |
|---|---|---|
| title | string | Yes |
| content | string | Yes |
| icon | string | No |
| detailLevel | PDFDetailLevel | Yes |
| sections | PDFSection[] | No |
PDFSection
| Prop | Type | Required |
|---|---|---|
| title | string | Yes |
| content | string | Yes |
| icon | string | No |
| detailLevel | PDFDetailLevel | No |
PDFImageAction
| Prop | Type | Required |
|---|---|---|
| type | PDFImageActionType | Yes |
| src | string | No |
| alt | string | No |
| caption | string | No |
| width | string | number | No |
| height | string | number | No |
| page | number | No |
EnhancedPDFData
| Prop | Type | Required |
|---|---|---|
| title | string | Yes |
| subtitle | string | No |
| author | string | No |
| pages | PDFPage[] | Yes |
| includeActionLogs | boolean | No |
| includeOCRData | boolean | No |
| theme | 'default' | 'dark' | 'minimal' | No |
| images | PDFImageAction[] | No |
Key Functions
flushList()flushTable()tryCanvas()
Related Components
Browse all components in the Component Inventory
Auto-Generated Documentation
Component metadata is auto-generated by aartiq-browser/scripts/component-scanner.js