/** * participant-context/public — curated public surface of the participant-context capability. * * Re-exports the stable contracts from domain, application, and ports. * Runtime adapter creation (graph factories, tool factories) is accessible via * capabilities/participant-context.facade for package consumers and via * the foreground shell (runtime/foreground) for internal registries. * * Boundary: public-compatibility. References only participant-context/domain, * participant-context/application, and participant-context/ports — never * runtime/foreground or host implementations. * * ## Intentionally excluded from public surface * * The following are application-internal and should be imported from * participant-context/application/ by code that genuinely needs them: * - `PremiseDecomposer`, `PremiseAnalyzer`, `PremiseIndexer` — used only inside * PremiseGraphFactory and EnrichmentGraphFactory nodes. * - `EnrichmentGenerator` — used only inside EnrichmentGraphFactory. * - `HydeValidator`, `HydeSourceFrame`, `buildHydeValidationPrompt` — used only * inside HydeGraphFactory nodes. * - `FRAME_SYSTEM_PROMPT`, `FrameResponseSchema` — LensInferrer internal prompts. * * ## Profile-domain compatibility note * * Several identifiers in the underlying database interface retain "profile" naming * (e.g. `getProfile`, `saveProfile`, `deleteProfile`, `UserIdentity`) — these are * deliberately frozen compatibility names. The domain model's canonical term for * the synthesized global identity representation is the "global context paragraph" * (stored as a `user_contexts` row with `networkId = null`). * * IND-545: canonical public surface for participant-context, previously * fragmentary across capabilities/participant-context.facade, shared/hyde exports * in root index.ts, and direct premise/enrichment/context imports in tool.factory. */ export { PremiseGraphState, EnrichmentGraphState, HydeGraphState, type HydeDocumentState, type HydeDocumentOrigin, type HydeValidationStatus, type UserContextInput, type IncrementalContextInput, type GlobalContextInput, type GlobalIncrementalContextInput, type UserContextResult, type PremiseAssertion, type PremiseProvenance, type PremiseAnalysis, type PremiseValidity, type PremiseRecord, } from "../domain/index.js"; export { PremiseGraphFactory } from "../application/index.js"; export { EnrichmentGraphFactory, type CompiledPremiseGraph, } from "../application/index.js"; export { HydeGraphFactory, type HydeLensInferrerLike, type HydeGeneratorLike, type HydeValidatorLike, type HydeGraphOptions, } from "../application/index.js"; export { UserContextGenerator } from "../application/index.js"; export { HydeGenerator, type HydeGeneratorOutput, type HydeGenerateInput, } from "../application/index.js"; export { LensInferrer, type LensInferenceInput, type LensInferenceOutput, } from "../application/index.js"; export { getHydeGenerationMode, type HydeGenerationMode, HYDE_FRAME_GENERATION_VERSION, computeHydeSourceTextHash, selectHydeDocumentsForGeneration, HYDE_DEFAULT_CACHE_TTL, HYDE_CORPUS_PROMPTS, } from "../application/index.js"; export { createEnrichmentTools } from "../application/index.js"; export { createPremiseTools } from "../application/index.js"; export { shouldEnrichGhostDisplayNameFromParallel, isEnrichedNameMeaningful, } from "../application/index.js"; export type { PremiseGraphDatabase, EnrichmentGraphDatabase, HydeGraphDatabase, ProfileEnricher, EnrichmentResult, EnrichmentRequest, Scraper, ExtractUrlContentOptions, EmbeddingGenerator, Embedder, } from "../ports/index.js"; export type { EnrichmentToolDeps, PremiseToolDeps } from "../../capabilities/participant-context.tools.port.js";