MCPcopy Create free account
hub / github.com/cortexkit/magic-context / persistFilePath

Function persistFilePath

packages/plugin/src/shared/models-dev-cache.ts:81–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79let persistSeedLoaded = false;
80
81function persistFilePath(): string {
82 return join(getMagicContextStorageDir(), `model-context-limits-${getHarness()}.json`);
83}
84
85/** Seed apiCache from the persisted last-known-good file once per process, only
86 * when apiCache hasn't been warmed yet. Values are sane-filtered on load so a

Callers 2

persistApiCacheFunction · 0.85

Calls 2

getHarnessFunction · 0.90

Tested by

no test coverage detected