/** * API Server initialisation. * * Extracted from start.ts (Task 11 Part A). * Creates the SkillRegistry, memoryDb wrapper, AgentEventBus, * and the API server itself. */ import type { ApiServer } from '../../api/index.js'; import type { AgentSituationAdapter } from '../../api/agent-situation-handler.js'; import { type ContextCompileService } from '../../agent/context-compile-service.js'; import { SkillRegistry } from '../../skills/skill-registry.js'; import type { AgentLoop } from '../../agent/index.js'; import type { CronScheduler } from '../../scheduler/index.js'; import type { HealthScoreService } from '../../observability/health-score.js'; import type { HealthCheckService } from '../../observability/health-check.js'; import type { RawStore } from '../../connectors/framework/raw-store.js'; import type { SQLiteDatabase } from '../../sqlite.js'; import type { MAMAConfig } from '../config/types.js'; import type { RuntimeEnvelopeBootstrap } from './envelope-bootstrap.js'; export { SkillRegistry }; export interface InitApiServerParams { config: MAMAConfig; scheduler: CronScheduler; db: SQLiteDatabase; healthService: HealthScoreService | null; healthCheckService: HealthCheckService; rawStore: RawStore | undefined; enabledConnectors: string[]; agentLoop: AgentLoop; envelopeMetadata?: RuntimeEnvelopeBootstrap['metadata']; envelopeAuthority?: RuntimeEnvelopeBootstrap['envelopeAuthority']; contextCompileService?: ContextCompileService; /** mama-core getAdapter() — used to create the memoryDb shim */ getAdapter: () => AgentSituationAdapter & { exec: (sql: string) => void; }; } export interface InitApiServerResult { apiServer: ApiServer; eventBus: import('../../multi-agent/agent-event-bus.js').AgentEventBus; skillRegistry: SkillRegistry; } export declare function initApiServer(params: InitApiServerParams): Promise; //# sourceMappingURL=api-server-init.d.ts.map