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

Function addFlaggedPlugin

src/utils/plugins/pluginFlagging.ts:151–165  ·  view source on GitHub ↗
(pluginId: string)

Source from the content-addressed store, hash-verified

149 * @param pluginId "name@marketplace" format
150 */
151export async function addFlaggedPlugin(pluginId: string): Promise<void> {
152 if (cache === null) {
153 cache = await readFromDisk()
154 }
155
156 const updated = {
157 ...cache,
158 [pluginId]: {
159 flaggedAt: new Date().toISOString(),
160 },
161 }
162
163 await writeToDisk(updated)
164 logForDebugging(`Flagged plugin: ${pluginId}`)
165}
166
167/**
168 * Mark flagged plugins as seen. Called when the Installed view renders

Callers 1

Calls 3

readFromDiskFunction · 0.85
writeToDiskFunction · 0.85
logForDebuggingFunction · 0.50

Tested by

no test coverage detected