Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VPSDance/ai-proxy-rules
/ functions
Functions
102 in github.com/VPSDance/ai-proxy-rules
⨍
Functions
102
◇
Types & classes
29
↓ 16 callers
Function
render
(format: Format, target: RenderTarget)
scripts/generators/index.ts:5
↓ 12 callers
Function
assignIfAny
( target: Record<string, T[]>, key: string, values: T[] )
scripts/generators/index.ts:221
↓ 11 callers
Method
fetch
(url: string)
scripts/sync/cache.ts:26
↓ 11 callers
Function
normalizeRuleSet
(rules: RuleSet)
scripts/rules.ts:39
↓ 8 callers
Function
mergeRuleSets
(ruleSets: RuleSet[])
scripts/rules.ts:27
↓ 8 callers
Function
providerToTarget
(provider: ProviderSource)
scripts/data.ts:115
↓ 7 callers
Function
evaluateGuard
(params: GuardParams)
scripts/checks/guard.ts:57
↓ 7 callers
Function
removeValues
(source: T[], remove: T[])
scripts/rules.ts:118
↓ 6 callers
Function
countRulesFromText
(text: string)
scripts/checks/guard.ts:119
↓ 6 callers
Function
emptyRuleSet
()
scripts/rules.ts:15
↓ 6 callers
Function
renderGroupedLines
( target: RenderTarget, renderRules: (rules: RuleSet) => string[] )
scripts/generators/index.ts:192
↓ 5 callers
Function
normalizeTextRules
(values: string[])
scripts/rules.ts:110
↓ 5 callers
Function
withHeader
(target: RenderTarget, lines: string[])
scripts/generators/index.ts:179
↓ 4 callers
Method
cacheKey
(url: string)
scripts/sync/cache.ts:116
↓ 4 callers
Function
checkMetadata
(sourcesDir: string)
scripts/checks/metadata.ts:15
↓ 4 callers
Function
checkReadme
(sourcesDir: string, readmePath: string)
scripts/checks/readme.ts:12
↓ 4 callers
Function
parseClassicalRules
(text: string)
scripts/sync/parsers.ts:29
↓ 4 callers
Function
parseDomainListCommunityRules
( text: string, options: ParseSourceOptions = {}, visited: Set<string> = new Set() )
scripts/sync/parsers.ts:98
↓ 4 callers
Function
subtractRuleSet
(source: RuleSet, remove: RuleSet)
scripts/rules.ts:51
↓ 3 callers
Function
aggregateProviders
(providers: ProviderSource[])
scripts/data.ts:64
↓ 3 callers
Function
buildProviderData
( provider: SourceProvider, baseDir: string, context: BuildContext = {} )
scripts/sync/build.ts:129
↓ 3 callers
Method
getWarnings
()
scripts/sync/cache.ts:108
↓ 3 callers
Function
headerLines
(target: RenderTarget)
scripts/generators/index.ts:183
↓ 3 callers
Method
indexFile
()
scripts/sync/cache.ts:124
↓ 3 callers
Function
normalizePartialRuleSet
(rules: Partial<RuleSet> | undefined)
scripts/sync/build.ts:269
↓ 3 callers
Function
parseCsv
(value: string)
scripts/cli.ts:105
↓ 3 callers
Method
pruneOrphans
()
scripts/sync/cache.ts:66
↓ 3 callers
Function
warn
(msg: string)
scripts/sync.ts:76
↓ 2 callers
Function
aggregateProvidersByCategory
(providers: ProviderSource[])
scripts/data.ts:81
↓ 2 callers
Method
cacheFile
(url: string)
scripts/sync/cache.ts:120
↓ 2 callers
Function
collectReadmeIds
(text: string)
scripts/checks/readme.ts:45
↓ 2 callers
Function
fresh
()
scripts/sync/build.ts:236
↓ 2 callers
Method
getStaleWarnings
()
scripts/sync/cache.ts:112
↓ 2 callers
Function
normalizeDnsRules
(values: string[])
scripts/rules.ts:106
↓ 2 callers
Function
parseCsv
(value: string)
scripts/sync.ts:128
↓ 2 callers
Function
parseProviderFile
(filePath: string)
scripts/data.ts:127
↓ 2 callers
Function
parseSourceRules
( text: string, parser: SourceParser, options: ParseSourceOptions = {} )
scripts/sync/parsers.ts:13
↓ 2 callers
Method
readIndex
()
scripts/sync/cache.ts:128
↓ 2 callers
Function
sortKeys
(record: Record<string, string>)
scripts/sync/cache.ts:175
↓ 2 callers
Function
stripQuotes
(value: string)
scripts/sync/parsers.ts:183
↓ 1 callers
Function
buildTargets
(providers: ProviderSource[], providerOption: string)
scripts/cli.ts:79
↓ 1 callers
Method
cached
(key: string, fresh: () => Promise<string>)
scripts/sync/cache.ts:36
↓ 1 callers
Method
cached
(key: string, fresh: () => Promise<string>)
scripts/sync/build.ts:121
↓ 1 callers
Function
categoryName
(category: ProviderCategory)
scripts/data.ts:155
↓ 1 callers
Function
collectSourceIds
(sourcesDir: string)
scripts/checks/readme.ts:27
↓ 1 callers
Function
compactGroups
(rulesByIndex: RuleSet[], groups: RuleGroup[])
scripts/sync/build.ts:262
↓ 1 callers
Function
compactRuleSet
(rules: RuleSet)
scripts/rules.ts:89
↓ 1 callers
Function
defaultFetcher
(url: string)
scripts/sync/build.ts:253
↓ 1 callers
Function
diffSummary
(options: DiffOptions)
scripts/diff-summary.ts:31
↓ 1 callers
Function
extractHtml
(html: string, url: string, selector: string)
scripts/sync/build.ts:241
↓ 1 callers
Function
findDangerousSuffixes
(text: string, relPath: string)
scripts/checks/guard.ts:155
↓ 1 callers
Function
generate
(options: GenerateOptions)
scripts/cli.ts:42
↓ 1 callers
Function
getFileAtRef
(ref: string, relPath: string)
scripts/diff-summary.ts:83
↓ 1 callers
Function
guard
(options: GuardOptions)
scripts/guard.ts:25
↓ 1 callers
Function
hasOnlyAllowedTags
(value: string)
scripts/sync/parsers.ts:203
↓ 1 callers
Function
isDomainCoveredBySuffix
(domain: string, suffix: string)
scripts/rules.ts:102
↓ 1 callers
Function
isFormat
(value: string)
scripts/cli.ts:112
↓ 1 callers
Function
isFullSync
(providerOption: string)
scripts/sync.ts:135
↓ 1 callers
Function
isPayloadObject
(value: unknown)
scripts/sync/parsers.ts:220
↓ 1 callers
Function
listFilesAtRef
(ref: string, dir: string)
scripts/diff-summary.ts:68
↓ 1 callers
Function
loadAllProviders
(inputDir: string)
scripts/data.ts:53
↓ 1 callers
Function
loadProvider
(inputDir: string, provider: string)
scripts/data.ts:48
↓ 1 callers
Function
loadSourceProvider
(filePath: string)
scripts/sync.ts:112
↓ 1 callers
Function
loadSourceRules
( sources: SourceConfig[], baseDir: string, fetcher: Fetcher, cache?: ContentCache )
scripts/sync/build.ts:185
↓ 1 callers
Function
loadSourceText
( source: SourceConfig, baseDir: string, fetcher: Fetcher, cache?: ContentCache )
scripts/sync/build.ts:221
↓ 1 callers
Function
mergeInto
(target: RuleSet, source: RuleSet)
scripts/sync/parsers.ts:210
↓ 1 callers
Function
normalizeAsnRules
(values: number[])
scripts/rules.ts:114
↓ 1 callers
Function
normalizeDomain
(value: string)
scripts/checks/guard.ts:200
↓ 1 callers
Function
normalizeDomainListLine
(line: string)
scripts/sync/parsers.ts:179
↓ 1 callers
Function
normalizeLine
(line: string)
scripts/sync/parsers.ts:175
↓ 1 callers
Function
normalizeRuleGroups
(groups: RuleGroup[])
scripts/data.ts:166
↓ 1 callers
Function
parseClashYamlRules
(text: string)
scripts/sync/parsers.ts:84
↓ 1 callers
Function
parseFormats
(formatOption: string)
scripts/cli.ts:90
↓ 1 callers
Function
pickRuleKeys
(rules: RuleSet, keys: RuleKey[])
scripts/rules.ts:66
↓ 1 callers
Function
quoteYamlValue
(value: string | number)
scripts/generators/index.ts:244
↓ 1 callers
Method
read
(url: string)
scripts/sync/cache.ts:161
↓ 1 callers
Function
removeCoveredDomains
(ruleSets: RuleSet[])
scripts/rules.ts:76
↓ 1 callers
Function
renderClash
(target: RenderTarget)
scripts/generators/index.ts:72
↓ 1 callers
Function
renderEgern
(target: RenderTarget)
scripts/generators/index.ts:154
↓ 1 callers
Function
renderLoon
(target: RenderTarget)
scripts/generators/index.ts:112
↓ 1 callers
Function
renderMarkdown
(rows: Row[])
scripts/status.ts:112
↓ 1 callers
Function
renderQuantumultX
(target: RenderTarget)
scripts/generators/index.ts:98
↓ 1 callers
Function
renderShadowrocket
(target: RenderTarget)
scripts/generators/index.ts:126
↓ 1 callers
Function
renderSingBox
(target: RenderTarget)
scripts/generators/index.ts:86
↓ 1 callers
Function
renderStash
(target: RenderTarget)
scripts/generators/index.ts:140
↓ 1 callers
Function
renderSurge
(target: RenderTarget)
scripts/generators/index.ts:58
↓ 1 callers
Function
renderYamlMap
(rule: Record<string, Array<string | number>>)
scripts/generators/index.ts:231
↓ 1 callers
Function
reportCacheWarnings
(cache: FetchCache)
scripts/sync.ts:72
↓ 1 callers
Function
resolveFromSourceKeys
(value: boolean | RuleKey[])
scripts/sync/build.ts:175
↓ 1 callers
Function
run
(options: StatusOptions)
scripts/status.ts:48
↓ 1 callers
Function
run
(options: CheckOptions)
scripts/check-metadata.ts:21
↓ 1 callers
Function
run
(options: CheckOptions)
scripts/check-readme.ts:23
↓ 1 callers
Function
selectProviders
(inputDir: string, providerOption: string)
scripts/cli.ts:65
↓ 1 callers
Function
selectSourceFiles
(inputDir: string, providerOption: string)
scripts/sync.ts:98
↓ 1 callers
Function
splitDomainListEntry
(line: string)
scripts/sync/parsers.ts:187
↓ 1 callers
Function
statCacheFile
(cacheDir: string, key: string)
scripts/status.ts:101
↓ 1 callers
Function
stringifyProviderData
(provider: SourceProviderData)
scripts/sync.ts:121
↓ 1 callers
Function
stripTrailingTags
(value: string)
scripts/sync/parsers.ts:198
↓ 1 callers
Function
sync
(options: SyncOptions)
scripts/sync.ts:37
↓ 1 callers
Method
write
(url: string, text: string)
scripts/sync/cache.ts:141
next →
1–100 of 102, ranked by callers