MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / readFromDisk

Function readFromDisk

src/utils/plugins/pluginFlagging.ts:75–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73}
74
75async function readFromDisk(): Promise<Record<string, FlaggedPlugin>> {
76 try {
77 const content = await readFile(getFlaggedPluginsPath(), {
78 encoding: 'utf-8',
79 })
80 return parsePluginsData(content)
81 } catch {
82 return {}
83 }
84}
85
86async function writeToDisk(
87 plugins: Record<string, FlaggedPlugin>,

Callers 4

loadFlaggedPluginsFunction · 0.85
addFlaggedPluginFunction · 0.85
markFlaggedPluginsSeenFunction · 0.85
removeFlaggedPluginFunction · 0.85

Calls 3

readFileFunction · 0.85
getFlaggedPluginsPathFunction · 0.85
parsePluginsDataFunction · 0.85

Tested by

no test coverage detected