feat(09-03): wire skillRegistryService export and startup DB init
- Add skillRegistryService re-export to services/index.ts after companySkillService - Add fire-and-forget skill registry DB init in server/src/index.ts after reconcile block - Uses dynamic import to avoid adding libSQL to critical startup path
This commit is contained in:
parent
22ab1da17b
commit
4468945e80
2 changed files with 12 additions and 0 deletions
|
|
@ -612,6 +612,17 @@ export async function startServer(): Promise<StartedServer> {
|
|||
.catch((err) => {
|
||||
logger.error({ err }, "startup reconciliation of persisted runtime services failed");
|
||||
});
|
||||
|
||||
// [nexus] Initialize skill registry database (fire-and-forget)
|
||||
void (async () => {
|
||||
try {
|
||||
const { getSkillRegistryDb } = await import("./services/skill-registry-db.js");
|
||||
await getSkillRegistryDb();
|
||||
logger.info("skill registry database initialized");
|
||||
} catch (err) {
|
||||
logger.error({ err }, "skill registry init failed");
|
||||
}
|
||||
})();
|
||||
|
||||
if (config.heartbeatSchedulerEnabled) {
|
||||
const heartbeat = heartbeatService(db as any);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
export { companyService } from "./companies.js";
|
||||
export { feedbackService } from "./feedback.js";
|
||||
export { companySkillService } from "./company-skills.js";
|
||||
export { skillRegistryService } from "./skill-registry.js";
|
||||
export { agentService, deduplicateAgentName } from "./agents.js";
|
||||
export { agentInstructionsService, syncInstructionsBundleConfigFromFilePath } from "./agent-instructions.js";
|
||||
export { assetService } from "./assets.js";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue