← Public packages
@kentcdodds/skills
Store, retrieve, edit, version, and revert reusable agent skill documents via skillList then skillGet.
src/legacy-dump.ts
37 lines · 855 B · TypeScriptimport { dumpLegacyStore } from './db.ts'
export type LegacyDumpResult = {
skills: Array<{
id: string
name: string
description: string
createdAt: string
updatedAt: string
}>
files: Array<{
skillId: string
path: string
content: string
updatedAt: string
}>
versions: Array<{
id: number
skillId: string
path: string
content: string
replacedAt: string
}>
note: string
}
/**
* Read-only dump of the legacy SQLite document store for copy-first migration
* into the plain `skills` repo. Does not mutate any rows.
*/
export default async function legacyDump(): Promise<LegacyDumpResult> {
const dump = await dumpLegacyStore()
return {
...dump,
note: 'Legacy packageStorage tables (skills, skill_files, skill_versions) are left intact. Migrate into the plain skills repo, verify, then invoke ./migrate-to-repo.',
}
}