MCPcopy
hub / github.com/MiniMax-AI/cli / readState

Function readState

src/update/checker.ts:15–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15function readState(): UpdateState | null {
16 try {
17 const raw = readFileSync(STATE_FILE(), 'utf-8');
18 return JSON.parse(raw) as UpdateState;
19 } catch {
20 return null;
21 }
22}
23
24function writeState(state: UpdateState): void {
25 try {

Callers 1

checkForUpdateFunction · 0.85

Calls 1

STATE_FILEFunction · 0.85

Tested by

no test coverage detected