Compile inference rules from config.
Compile an array of inference rules into executable validators. Validates rule name uniqueness before compilation.
The inference rule definitions.
Human-readable description of what this rule does.
Optionalmap?: JsonMapMapJsonMap transformation (inline or reference to named map).
JSON Schema object to match against document metadata.
Unique name for this inference rule.
Optionalrender?: {Declarative structured renderer configuration (mutually exclusive with template).
Ordered markdown body sections.
Keys or glob patterns to extract from context and include as YAML frontmatter.
OptionalrenderAs?: stringOutput file extension override (e.g. "md", "html", "txt"). Requires template or render.
Optionalschema?: (Array of schema references to merge (named refs and/or inline objects).
Optionaltemplate?: stringHandlebars template (inline string, named ref, or .hbs/.handlebars file path).
An array of compiled rules.
Create the HTTP API server.
Create the Fastify API server with all routes registered.
The returned instance is not yet listening; call server.listen() to
start. The catalog routes are registered in a child plugin, so a
registration error surfaces from ready() or listen() (spec #281 D29).
The /vcs/* routes answer as unregistered unless a vcsCoordinator is
given (api/featureGates).
The server options.
A configured Fastify instance.
Create a document processor for file ingestion.
Create an embedding provider from config.
Create an embedding provider based on the given configuration.
Each provider is responsible for its own default dimensions.
The embedding configuration.
OptionalalertUrl?: stringURL POSTed when embedding health changes state (unsigned body).
OptionalapiKey?: stringAPI key for the embedding provider.
OptionalchunkOverlap?: numberOverlap between chunks in tokens.
OptionalchunkSize?: numberMaximum tokens per chunk for splitting.
Optionalconcurrency?: numberMaximum concurrent embedding requests.
Optionaldimensions?: numberEmbedding vector dimensions.
The embedding model name.
The embedding model provider.
OptionalrateLimitPerMinute?: numberMaximum embeddings (items: texts embedded) per minute.
Optionallogger: Logger<never, boolean>
Optional pino logger for retry warnings.
OptionaladditionalProviders: Map<string, ProviderFactory>
Optional map of additional provider factories to register.
An EmbeddingProvider instance.
Create an event queue for batching file-system events.
Create a file-system watcher for the configured watch paths.
Create a pino logger instance.
Create a pino logger. With logging.file, the file is open (or the
call rejects) before the logger is returned, so no early line is lost.
Optionalconfig: {Optional logging configuration.
Optionalfile?: stringLog file path.
Optionallevel?: stringLog level.
Optionalrotation?: Rotation of the log file (D171).
A configured pino logger.
The exit for a service-manager restart (D196). Tests replace it, so
they never call process.exit.
Create a vector-store client for similarity search and upsert.
Import @parcel/watcher when it is the selected source (D125).
Load and validate a JeevesWatcherConfig from disk.
Component factories for JeevesWatcher. Override in tests to inject mocks.