fix: sync bundled skills across profiles (#926)

This commit is contained in:
ekko
2026-05-22 10:41:14 +08:00
committed by GitHub
parent 4b759c4d8a
commit f90e79fd2f
5 changed files with 419 additions and 120 deletions
+8 -2
View File
@@ -92,10 +92,16 @@ export async function bootstrap() {
const skillInjector = new HermesSkillInjector()
const injectionResult = await skillInjector.injectMissingSkills()
if (injectionResult.injected.length > 0) {
console.log('[bootstrap] bundled skills injected:', injectionResult.injected.join(', '))
logger.info({
injected: [...new Set(injectionResult.injected)],
targetCount: injectionResult.targets.length,
}, '[bootstrap] bundled skills injected')
}
if (injectionResult.updated.length > 0) {
console.log('[bootstrap] bundled skills updated:', injectionResult.updated.join(', '))
logger.info({
updated: [...new Set(injectionResult.updated)],
targetCount: injectionResult.targets.length,
}, '[bootstrap] bundled skills updated')
}
} catch (err) {
logger.warn(err, '[bootstrap] failed to inject bundled skills')