import * as cloudsync from "./entries/cloudsync.js"; import * as memory from "./entries/memory.js"; import * as skills from "./entries/skills.js"; import * as mcp from "./entries/mcp.js"; import * as ui from "./entries/ui.js"; import * as raw from "./entries/raw.js"; /** Package name; also the client bundle id. */ export const name = 'dsh-brain'; /** Services required before `apply` runs. */ export const inject = ['webServer']; /** Mount the discoverable UI row or the legacy all-in-one plugin. */ export function apply(ctx, config) { if (config !== null && typeof config === 'object' && 'entry' in config && config.entry === 'ui') { ui.apply(ctx, config); return; } cloudsync.apply(ctx, config); memory.apply(ctx, config); skills.apply(ctx, config); mcp.apply(ctx, config); ui.apply(ctx, config); raw.apply(ctx, config); }