MCPcopy Create free account
hub / github.com/getagentseal/codeburn / getOrCreateProviderSection

Function getOrCreateProviderSection

src/parser.ts:1901–1908  ·  view source on GitHub ↗
(cache: SessionCache, provider: string)

Source from the content-addressed store, hash-verified

1899}
1900
1901function getOrCreateProviderSection(cache: SessionCache, provider: string): ProviderSection {
1902 const envFp = computeEnvFingerprint(provider)
1903 const existing = cache.providers[provider]
1904 if (existing && existing.envFingerprint === envFp) return existing
1905 const section = { envFingerprint: envFp, files: {} }
1906 cache.providers[provider] = section
1907 return section
1908}
1909
1910function cachedFileNeedsProviderReparse(providerName: string, sourcePath: string, cached: CachedFile): boolean {
1911 // Antigravity data comes from the live server, not from the conversation file.

Callers 2

scanProjectDirsFunction · 0.85
parseProviderSourcesFunction · 0.85

Calls 1

computeEnvFingerprintFunction · 0.85

Tested by

no test coverage detected