MCPcopy
hub / github.com/upstash/context7 / getStateFilePath

Function getStateFilePath

packages/cli/src/utils/update-check.ts:53–55  ·  view source on GitHub ↗
(stateFile?: string)

Source from the content-addressed store, hash-verified

51}
52
53function getStateFilePath(stateFile?: string): string {
54 return stateFile ?? getUpdateStateFilePath();
55}
56
57// Reads resolve to the legacy `~/.context7` file if migration could not move it.
58async function readStateFilePath(stateFile?: string): Promise<string> {

Callers 1

writeStateFilePathFunction · 0.85

Calls 1

getUpdateStateFilePathFunction · 0.85

Tested by

no test coverage detected