/*
 * priority-forge-hub — public package surface
 *
 * Hosts import from here. Everything else in src/ is package-internal.
 */

export type {
  BlockerEdge,
  ClaimHistoryEntry,
  ClaimHistoryEvent,
  ClaimInfo,
  ClaimOutcome,
  ClaimResult,
  CancelResult,
  CreateSharedTaskInput,
  MemoryHub,
  MemoryHubBackend,
  MemoryHubConfig,
  MemoryHubHealth,
  MinimalTask,
  OrchestrationHub,
  ReleaseResult,
  RenewResult,
  SharedTask,
  SharedTaskFilter,
  SharedTaskStatus,
  TaskProvider,
  TeamActivityFilter,
  TeamMemoryEvent,
  TeamMemoryEventType,
} from './types';

export { DEFAULT_MEMORY_HUB_CONFIG } from './types';

export {
  loadMemoryHubConfig,
  MEMORY_HUB_CONFIG_PATH,
  TEAM_HUB_CONFIG_PATH,
  saveMemoryHubConfig,
  updateMemoryHubConfig,
  loadTeamHubConfig,
  saveTeamHubConfig,
  updateTeamHubConfig,
  loadPulseConfig,
  updatePulseConfig,
  collectHubStatusWarnings,
  isMemoryBackendActive,
  DEFAULT_TEAM_HUB_CONFIG,
  DEFAULT_PULSE_CONFIG,
  DEFAULT_SALIENCE_THRESHOLDS,
} from './config';

export type {
  TeamHubConfig,
  PulseConfig,
  PulsePrivacyRules,
  OrchestrationConfig,
  SalienceThresholds,
} from './config';

export {
  createMemoryHubIntegration,
  getCurrentIntegration,
} from './integration';
export type {
  MemoryHubIntegrationDeps,
  MemoryHubIntegrationHandle,
} from './integration';

export { xmemTools, dispatchXmemTool } from './mcp-tools';
export { getMemoryHub, getOrchestrationHub, resetMemoryHubCache } from './factory';
export { TeamMemorySyncReader } from './sync-reader';

// Adapter classes — exported for advanced usage (bootstrap scripts,
// custom hosts that need to construct an adapter directly without
// going through the factory's config-driven path).
export { PgvectorMemoryHub } from './adapters/pgvector-adapter';
export type { PgvectorAdapterOptions, Embedder } from './adapters/pgvector-adapter';
export { DryrunMemoryHub } from './adapters/dryrun-adapter';
export {
  applyHubConfigureParams,
  validateHubConfig,
} from './team-hub-config';
