feat(skills): usage stats, source filtering, archived skills, provenance, pin toggle (#386)

This commit is contained in:
Desmond Zhang
2026-05-02 10:56:58 +10:00
committed by GitHub
parent 018053db19
commit 9325aa5482
16 changed files with 753 additions and 166 deletions
@@ -574,3 +574,20 @@ export async function importProfile(archivePath: string, name?: string): Promise
throw new Error(`Failed to import profile: ${err.message}`)
}
}
/**
* Pin or unpin a skill via hermes curator
*/
export async function pinSkill(name: string, pinned: boolean): Promise<string> {
const subcmd = pinned ? 'pin' : 'unpin'
try {
const { stdout, stderr } = await execFileAsync(HERMES_BIN, ['curator', subcmd, name], {
timeout: 15000,
...execOpts,
})
return stdout || stderr
} catch (err: any) {
logger.error(err, `Hermes CLI: curator ${subcmd} failed`)
throw new Error(`Failed to ${subcmd} skill: ${err.message}`)
}
}