MCPcopy
hub / github.com/claude-code-best/claude-code / loadCursor

Function loadCursor

packages/weixin/src/monitor.ts:32–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32function loadCursor(): string {
33 const path = cursorPath()
34 if (existsSync(path)) return readFileSync(path, 'utf-8').trim()
35 return ''
36}
37
38function saveCursor(cursor: string): void {
39 writeFileSync(cursorPath(), cursor, 'utf-8')

Callers 1

startPollLoopFunction · 0.85

Calls 3

cursorPathFunction · 0.85
existsSyncFunction · 0.85
readFileSyncFunction · 0.50

Tested by

no test coverage detected