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
|
|
@ -613,6 +613,17 @@ export async function startServer(): Promise<StartedServer> {
|
||||||
logger.error({ err }, "startup reconciliation of persisted runtime services failed");
|
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) {
|
if (config.heartbeatSchedulerEnabled) {
|
||||||
const heartbeat = heartbeatService(db as any);
|
const heartbeat = heartbeatService(db as any);
|
||||||
const routines = routineService(db as any);
|
const routines = routineService(db as any);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
export { companyService } from "./companies.js";
|
export { companyService } from "./companies.js";
|
||||||
export { feedbackService } from "./feedback.js";
|
export { feedbackService } from "./feedback.js";
|
||||||
export { companySkillService } from "./company-skills.js";
|
export { companySkillService } from "./company-skills.js";
|
||||||
|
export { skillRegistryService } from "./skill-registry.js";
|
||||||
export { agentService, deduplicateAgentName } from "./agents.js";
|
export { agentService, deduplicateAgentName } from "./agents.js";
|
||||||
export { agentInstructionsService, syncInstructionsBundleConfigFromFilePath } from "./agent-instructions.js";
|
export { agentInstructionsService, syncInstructionsBundleConfigFromFilePath } from "./agent-instructions.js";
|
||||||
export { assetService } from "./assets.js";
|
export { assetService } from "./assets.js";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue