MCPcopy Create free account

hub / github.com/alice-dot-io/caterpillar / functions

Functions91 in github.com/alice-dot-io/caterpillar

↓ 72 callersFunctiongetMimeType
(filePath: string)
core/src/lib/mime.ts:76
↓ 48 callersFunctiontestPattern
* Helper: test a global regex without lastIndex side effects
core/tests/cli-rules.test.ts:15
↓ 21 callersFunctionrunPatternScan
(content: string, skillName: string)
core/src/lib/pattern-scanner.ts:20
↓ 17 callersFunctionisFancyTerminal
()
core/src/lib/ui.ts:16
↓ 17 callersFunctionprintInfo
(message: string)
core/src/lib/display.ts:232
↓ 16 callersMethodstop
(finalMessage?: string)
core/src/lib/ui.ts:277
↓ 13 callersFunctionprintError
(message: string)
core/src/lib/display.ts:223
↓ 8 callersFunctioncsvEscape
(val: string)
core/src/lib/display.ts:175
↓ 8 callersFunctionloadConfig
()
core/src/lib/config.ts:21
↓ 7 callersFunctionboxLine
(content: string, width = 36)
core/src/lib/ui.ts:127
↓ 7 callersMethodstart
()
core/src/lib/ui.ts:253
↓ 6 callersFunctionsectionHeader
(title: string)
core/src/lib/ui.ts:138
↓ 5 callersFunctionprintBanner
()
core/src/lib/ui.ts:82
↓ 4 callersFunctiondetectScanMode
()
core/src/lib/scan-skill.ts:102
↓ 4 callersFunctionprefix
()
core/src/lib/display.ts:12
↓ 4 callersFunctionrandomMsg
(messages: string[])
core/src/lib/scan-skill.ts:96
↓ 3 callersFunctioncollectSkill
(inputPath: string)
core/src/lib/collector.ts:167
↓ 3 callersFunctiongetApiUrl
()
core/src/lib/config.ts:43
↓ 3 callersFunctiongradeColor
(grade: string)
core/src/lib/ui.ts:21
↓ 3 callersFunctionprintScanResult
(response: ScanResponse, filesScanned: number, mode?: string, verbose?: boolean)
core/src/lib/display.ts:113
↓ 3 callersFunctionprintScanResultCsv
(response: ScanResponse, includeHeader = true)
core/src/lib/display.ts:182
↓ 3 callersFunctionprintSuccess
(message: string)
core/src/lib/display.ts:227
↓ 3 callersFunctionprintWarning
(message: string)
core/src/lib/display.ts:236
↓ 3 callersFunctionrunVirusTotalChecks
* Run client-side VirusTotal checks if a VT key is configured. * Returns VT results map and artifact records.
core/src/lib/scan-skill.ts:118
↓ 3 callersFunctionsaveConfig
(config: CaterpillarConfig)
core/src/lib/config.ts:31
↓ 3 callersFunctionscanSingleSkill
( skill: SkillScanInput, options: { json?: boolean; mode?: ScanMode }, )
core/src/lib/scan-skill.ts:328
↓ 3 callersMethodupdate
(message: string)
core/src/lib/ui.ts:270
↓ 2 callersFunctionboxBottom
(width = 36)
core/src/lib/ui.ts:123
↓ 2 callersFunctionboxTop
(title: string, width = 36)
core/src/lib/ui.ts:116
↓ 2 callersFunctionbuildPatternOnlyResponse
( skill: SkillScanInput, patternResult: ReturnType<typeof runPatternScan>, scanDuration: number, binar
core/src/lib/scan-skill.ts:294
↓ 2 callersFunctiongetApiKey
()
core/src/lib/config.ts:39
↓ 2 callersFunctiongetConfigDir
()
core/src/lib/config.ts:13
↓ 2 callersFunctiongetConfigPath
()
core/src/lib/config.ts:17
↓ 2 callersFunctiongetExt
(path: string)
core/src/lib/scan-skill.ts:21
↓ 2 callersFunctiongetOpenAIApiKey
()
core/src/lib/config.ts:51
↓ 2 callersFunctionprintScanResultJson
(response: ScanResponse)
core/src/lib/display.ts:171
↓ 2 callersFunctionscanSingle
(targetPath: string, options: { json?: boolean; output?: string; verbose?: boolean; mode?: ScanMode }, format:
core/src/commands/scan.ts:226
↓ 2 callersFunctionscoreToGrade
(score: number)
core/src/lib/scan-skill.ts:88
↓ 2 callersFunctionseverityColor
(severity: string)
core/src/lib/ui.ts:30
↓ 2 callersFunctionseverityIcon
(severity: string)
core/src/lib/ui.ts:41
↓ 1 callersFunctionartifactKind
(path: string)
core/src/lib/scan-skill.ts:42
↓ 1 callersFunctionbuildFullContent
* Read all text files in the directory and concatenate them into a single * content string for the LLM judge to analyze. Each file is delimited with
core/src/lib/collector.ts:140
↓ 1 callersFunctionbuildVtArtifactRecords
( artifacts: ArtifactMeta[], vtResults: Map<string, VTResult>, )
core/src/lib/scan-skill.ts:50
↓ 1 callersFunctioncheckHash
(apiKey: string, sha256: string)
core/src/lib/virustotal.ts:13
↓ 1 callersFunctioncheckVirusTotalBatch
( apiKey: string, hashes: string[], delayMs = 15000, onProgress?: (current: number, total: number) =>
core/src/lib/virustotal.ts:98
↓ 1 callersFunctioncleanupTempDirs
(dirs: string[])
core/src/lib/archives.ts:44
↓ 1 callersFunctioncomputeSha256
(filePath: string)
core/src/lib/collector.ts:64
↓ 1 callersFunctioncreateAuthSession
()
core/src/lib/api-client.ts:99
↓ 1 callersFunctiondiscoverTargets
(dir: string)
core/src/commands/scan.ts:39
↓ 1 callersFunctionextractArchive
(archivePath: string)
core/src/lib/archives.ts:23
↓ 1 callersFunctionextractTar
(archivePath: string, dest: string)
core/src/lib/archives.ts:15
↓ 1 callersFunctionextractZip
(archivePath: string, dest: string)
core/src/lib/archives.ts:11
↓ 1 callersFunctionfindCheckableArtifacts
(artifacts: ArtifactMeta[])
core/src/lib/scan-skill.ts:38
↓ 1 callersFunctionfindMainFile
Try to find the best "main" file in a directory for the skill name
core/src/lib/collector.ts:106
↓ 1 callersFunctiongetBannerText
()
core/src/lib/ui.ts:90
↓ 1 callersFunctiongetVirusTotalApiKey
()
core/src/lib/config.ts:47
↓ 1 callersFunctionisArchiveFile
Extension-based check for archive files
core/src/lib/scan-skill.ts:26
↓ 1 callersFunctionisCheckableArtifact
Any file that isn't a known text/source file is checkable via VirusTotal
core/src/lib/scan-skill.ts:31
↓ 1 callersFunctionisTextFile
(name: string, mime: string | null)
core/src/lib/collector.ts:56
↓ 1 callersFunctionline
(char = '─', len = 50)
core/src/lib/display.ts:16
↓ 1 callersFunctionopenUrl
(url: string)
core/src/commands/login.ts:8
↓ 1 callersFunctionparseSkillName
(content: string)
core/src/lib/collector.ts:99
↓ 1 callersFunctionpollAuthSession
( sessionId: string, deviceCode: string )
core/src/lib/api-client.ts:116
↓ 1 callersFunctionpostScan
(request: ScanRequest)
core/src/lib/api-client.ts:79
↓ 1 callersFunctionprintAggregateSummary
(results: Array<{ label: string; response: ScanResponse; fileCount: number }>)
core/src/commands/scan.ts:77
↓ 1 callersFunctionprintFindingCard
(finding: Finding)
core/src/lib/ui.ts:213
↓ 1 callersFunctionprintFindingCompact
(finding: Finding)
core/src/lib/ui.ts:206
↓ 1 callersFunctionprintFindingsCompact
(findings: NonNullable<ScanResponse['data']>['findings'])
core/src/lib/display.ts:34
↓ 1 callersFunctionprintFindingsVerbose
(findings: NonNullable<ScanResponse['data']>['findings'])
core/src/lib/display.ts:20
↓ 1 callersFunctionprintForensicsHint
(forensics?: ScanResponse['forensics'])
core/src/lib/display.ts:103
↓ 1 callersFunctionprintGradeCard
(grade: string, score: number)
core/src/lib/ui.ts:165
↓ 1 callersFunctionprintGradeCompact
(grade: string, score: number, findingCount: number)
core/src/lib/ui.ts:147
↓ 1 callersFunctionprintMultiScanResultCsv
( results: Array<{ label: string; response: ScanResponse }>, )
core/src/lib/display.ts:214
↓ 1 callersFunctionprintVersion
()
core/src/lib/ui.ts:98
↓ 1 callersFunctionprintVirusTotalCompact
(binaryArtifacts?: ArtifactRecord[], archiveArtifacts?: ArtifactRecord[])
core/src/lib/display.ts:86
↓ 1 callersFunctionprintVirusTotalSection
(binaryArtifacts?: ArtifactRecord[], archiveArtifacts?: ArtifactRecord[])
core/src/lib/display.ts:43
↓ 1 callersFunctionresolveFormat
(options: { json?: boolean; output?: string })
core/src/commands/ask.ts:15
↓ 1 callersFunctionresolveFormat
(options: { json?: boolean; output?: string })
core/src/commands/scan.ts:27
↓ 1 callersFunctionrunLocalLLMJudge
( apiKey: string, content: string, skillName: string, model = 'gpt-4o-mini', )
core/src/lib/llm-judge.ts:68
↓ 1 callersFunctionscanViaLocalAI
* Mode 2: Local AI scan (user supplies their own OpenAI key). * Runs both LLM judge and pattern scanner, merges results.
core/src/lib/scan-skill.ts:189
↓ 1 callersFunctionscanViaPatterns
* Mode 3: Offline pattern scan (no API key, no OpenAI key). * Uses regex-based pattern matching only.
core/src/lib/scan-skill.ts:269
↓ 1 callersFunctionscanViaServer
* Mode 1: Server API scan (authenticated users).
core/src/lib/scan-skill.ts:155
↓ 1 callersFunctionstripAnsi
(str: string)
core/src/lib/ui.ts:133
↓ 1 callersFunctionwalkDir
(dir: string, rootDir: string, artifacts: ArtifactMeta[])
core/src/lib/collector.ts:69
FunctionaskCommand
(path: string | undefined, options: { json?: boolean; output?: string; verbose?: boolean; mode?: ScanMode })
core/src/commands/ask.ts:21
FunctionconfigGetCommand
(key?: string)
core/src/commands/config.ts:17
FunctionconfigSetCommand
(key: string, value: string)
core/src/commands/config.ts:4
Methodconstructor
(message: string)
core/src/lib/ui.ts:248
FunctionloginCommand
()
core/src/commands/login.ts:18
FunctionlogoutCommand
()
core/src/commands/logout.ts:5
FunctionscanCommand
(path: string | undefined, options: { json?: boolean; output?: string; verbose?: boolean; mode?: ScanMode })
core/src/commands/scan.ts:117