Files
aigen/server/plugins/library-cleanup.ts
TowstyandCursor e334cb7a7a Move library collections as a group and map v2 identity refs.
Collapsed collection actions now move, rename, delete, and rerun every part so chains stay together. Identity mode follows the v2u3 Ref2VA picture wiring.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 22:56:37 -05:00

23 lines
612 B
TypeScript

import { sweepAllExtensionStills } from '../utils/library'
export default defineNitroPlugin(() => {
try {
const result = sweepAllExtensionStills()
if (result.deleted) {
console.log(JSON.stringify({
src: 'library',
event: 'purge-extension-stills',
owners: result.owners,
deleted: result.deleted,
filenames: result.filenames.slice(0, 40)
}))
}
} catch (error) {
console.log(JSON.stringify({
src: 'library',
event: 'purge-extension-stills-error',
error: error instanceof Error ? error.message : String(error)
}))
}
})