/** * Agent dimension -- runtime tracking, health monitoring, self-healing, and capacity. * * This module provides the complete Agent dimension for the BRAIN specification: * * - **Registry**: CRUD for agent instances (register, deregister, heartbeat, queries) * - **Health**: Crash detection via heartbeat protocol, health reports * - **Self-Healing**: Retry with exponential backoff, crashed agent recovery * - **Capacity**: Load awareness, least-loaded agent selection, overload detection * * @module agents */ export { createConduit } from '../conduit/factory.js'; export { type BuildDoctorReportOptions, buildDoctorReport, type ReconcileDoctorOptions, type ReconcileDoctorResult, reconcileDoctor, } from '../store/agent-doctor.js'; export { type InstallAgentFromCantInput, type InstallAgentFromCantResult, installAgentFromCant, } from '../store/agent-install.js'; export { AgentRegistryAccessor, attachAgentToProject, detachAgentFromProject, getProjectAgentRef, listAgentsForProject, lookupAgent, } from '../store/agent-registry-accessor.js'; export { AGENT_INSTANCE_STATUSES, AGENT_TYPES, type AgentErrorLogRow, type AgentErrorType, type AgentInstanceRow, type AgentInstanceStatus, type AgentType, agentErrorLog, agentInstances, type NewAgentErrorLogRow, type NewAgentInstanceRow, } from '../store/schema/agent-schema.js'; export { type AgentCapacity, type AgentPerformanceMetrics, getAgentCapacity, getAgentSpecializations, getAgentsByCapacity, MAX_TASKS_PER_AGENT, recordAgentPerformance, updateAgentSpecializations, } from './agent-capacity-tracker.js'; export { type CapacitySummary, findLeastLoadedAgent, getAvailableCapacity, getCapacitySummary, isOverloaded, updateCapacity, } from './capacity.js'; export { type AgentExecutionEvent, type AgentExecutionOutcome, type AgentPerformanceSummary, getAgentPerformanceHistory, getSelfHealingSuggestions, type HealingSuggestion, processAgentLifecycleEvent, recordAgentExecution, recordFailurePattern, storeHealingStrategy, } from './execution-learning.js'; export { type AgentHealthStatus, checkAgentHealth, detectCrashedAgents, detectStaleAgents, HEARTBEAT_INTERVAL_MS, recordHeartbeat, STALE_THRESHOLD_MS, } from './health-monitor.js'; export { type InvokeMetaAgentOptions, invokeAgentArchitect, invokeMetaAgent, type MetaAgentResult, type MetaAgentTokens, } from './invoke-meta-agent.js'; export * from './public-api.js'; export { type AgentHealthReport, checkAgentHealth as findStaleAgentRows, classifyError, deregisterAgent, generateAgentId, getAgentErrorHistory, getAgentInstance, getHealthReport, heartbeat, incrementTasksCompleted, type ListAgentFilters, listAgentInstances, markCrashed, type RegisterAgentOptions, registerAgent, type UpdateStatusOptions, updateAgentStatus, } from './registry.js'; export { type AgentTemplatesLocation, resolveAgentTemplates, resolveMetaAgentsDir, resolveStarterBundle, resolveStarterBundleAgentsDir, resolveStarterBundleIdentityFile, resolveStarterBundleTeamFile, } from './resolveAgentTemplates.js'; export { type AgentRecoveryResult, calculateDelay, createRetryPolicy, DEFAULT_RETRY_POLICY, type RetryPolicy, type RetryResult, recoverCrashedAgents, shouldRetry, withRetry, } from './retry.js'; export { type EnsureSeedAgentsInstalledOptions, ensureSeedAgentsInstalled, type RerouteLegacyDb, type RerouteLegacyStarterBundleResult, rerouteLegacyStarterBundlePaths, SEED_VERSION_MARKER_FILENAME, type SeedInstallDispatcher, type SeedInstallResult, type SeedInstallSource, } from './seed-install.js'; export { DefaultVariableResolver, defaultResolver, type LoadProjectContextResult, loadProjectContext, type SubstituteCantAgentBodyResult, substituteCantAgentBody, } from './variable-substitution.js'; //# sourceMappingURL=index.d.ts.map