MCPcopy
hub / github.com/codeaashu/claude-code / markPluginVersionOrphaned

Function markPluginVersionOrphaned

src/utils/plugins/cacheUtils.ts:56–64  ·  view source on GitHub ↗
(
  versionPath: string,
)

Source from the content-addressed store, hash-verified

54 * Called when a plugin is uninstalled or updated to a new version.
55 */
56export async function markPluginVersionOrphaned(
57 versionPath: string,
58): Promise<void> {
59 try {
60 await writeFile(getOrphanedAtPath(versionPath), `${Date.now()}`, 'utf-8')
61 } catch (error) {
62 logForDebugging(`Failed to write .orphaned_at: ${versionPath}: ${error}`)
63 }
64}
65
66/**
67 * Clean up orphaned plugin versions that have been orphaned for more than 7 days.

Callers 4

removeMarketplaceSourceFunction · 0.85
uninstallPluginOpFunction · 0.85
performPluginUpdateFunction · 0.85

Calls 2

getOrphanedAtPathFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected