jeeves-watcher
    Preparing search index...

    Options for createApiServer.

    interface ApiServerOptions {
        changeSourceHealth?: {
            snapshot: () => {
                lastReconcileAt: string
                | null;
                lastReconcileDurationMs: number | null;
                lastRenewDurationMs: number | null;
                lastRestartAt: string | null;
                lastRestartCause:
                    | "watch-config-changed"
                    | "subscription-error"
                    | "root-gone"
                    | null;
                pendingStability: number;
                reconcileErrors: number;
                reconcileEvents: number;
                renewFailures: number;
                resubscribes: number;
                source: "chokidar"
                | "parcel";
                unavailableRoots: number;
            };
        };
        config: JeevesWatcherConfig;
        configPath: string;
        descriptor: {
            configFileName: string;
            configSchema: ZodType<unknown, unknown>;
            customCliCommands?: $InferOuterFunctionType<
                ZodTuple<
                    readonly [ZodCustom<Command<[], {}, {}>, Command<[], {}, {}>>],
                    null,
                >,
                ZodVoid,
            >;
            customMerge?: $InferOuterFunctionType<
                ZodTuple<
                    readonly [
                        ZodRecord<ZodString, ZodUnknown>,
                        ZodRecord<ZodString, ZodUnknown>,
                    ],
                    null,
                >,
                ZodRecord<ZodString, ZodUnknown>,
            >;
            customPluginTools?: $InferOuterFunctionType<
                ZodTuple<readonly [ZodCustom<PluginApi, PluginApi>], null>,
                ZodArray<ZodUnknown>,
            >;
            defaultPort: number;
            initTemplate: $InferOuterFunctionType<
                ZodTuple<readonly [], null>,
                ZodRecord<ZodString, ZodUnknown>,
            >;
            name: string;
            onConfigApply?: $InferOuterFunctionType<
                ZodTuple<readonly [ZodRecord<ZodString, ZodUnknown>], null>,
                ZodPromise<ZodVoid>,
            >;
            pluginPackage: string;
            promptRules?: string;
            run: $InferOuterFunctionType<
                ZodTuple<readonly [ZodString], null>,
                ZodPromise<ZodVoid>,
            >;
            serviceName?: string;
            servicePackage: string;
            skill?: string;
            startCommand: $InferOuterFunctionType<
                ZodTuple<readonly [ZodString], null>,
                ZodArray<ZodString>,
            >;
            version: string;
        };
        documentLockWaitMs?: number;
        embeddingHealth?: { snapshot: () => EmbeddingHealthSnapshot };
        embeddingProvider: EmbeddingProvider;
        enrichmentStore?: EnrichmentStoreInterface;
        fileSystemWatcher?: FileSystemWatcher;
        getConfig?: () => JeevesWatcherConfig;
        getFileSystemWatcher?: () => FileSystemWatcher | undefined;
        gitignoreFilter?: GitignoreFilter;
        helperIntrospection?: AllHelpersIntrospection;
        indexCheckHealth?: {
            snapshot: () => {
                at: string
                | null;
                capped: number;
                checked: number;
                durationMs: number | null;
                removed: number;
                skippedRoots: number;
                state: "pending" | "running" | "done" | "failed" | "off";
            };
        };
        initialScanTracker?: InitialScanTracker;
        issuesManager: IssuesManager;
        logger: Logger;
        processor: WatcherProcessor;
        queue: PausableQueue;
        reindexTracker?: ReindexTracker;
        sourceQueue?: SourceNotifyQueue;
        valuesManager: ValuesManager;
        vcsCoordinator?: VcsCoordinator;
        vectorStore: VectorStoreClient;
        version?: string;
        virtualRuleStore: VirtualRuleStore;
    }
    Index
    changeSourceHealth?: {
        snapshot: () => {
            lastReconcileAt: string
            | null;
            lastReconcileDurationMs: number | null;
            lastRenewDurationMs: number | null;
            lastRestartAt: string | null;
            lastRestartCause:
                | "watch-config-changed"
                | "subscription-error"
                | "root-gone"
                | null;
            pendingStability: number;
            reconcileErrors: number;
            reconcileEvents: number;
            renewFailures: number;
            resubscribes: number;
            source: "chokidar"
            | "parcel";
            unavailableRoots: number;
        };
    }

    Change-source health (GET /status health.changeSource, D133).

    The application configuration (used as initial/fallback value).

    configPath: string

    Path to the config file on disk.

    descriptor: {
        configFileName: string;
        configSchema: ZodType<unknown, unknown>;
        customCliCommands?: $InferOuterFunctionType<
            ZodTuple<
                readonly [ZodCustom<Command<[], {}, {}>, Command<[], {}, {}>>],
                null,
            >,
            ZodVoid,
        >;
        customMerge?: $InferOuterFunctionType<
            ZodTuple<
                readonly [
                    ZodRecord<ZodString, ZodUnknown>,
                    ZodRecord<ZodString, ZodUnknown>,
                ],
                null,
            >,
            ZodRecord<ZodString, ZodUnknown>,
        >;
        customPluginTools?: $InferOuterFunctionType<
            ZodTuple<readonly [ZodCustom<PluginApi, PluginApi>], null>,
            ZodArray<ZodUnknown>,
        >;
        defaultPort: number;
        initTemplate: $InferOuterFunctionType<
            ZodTuple<readonly [], null>,
            ZodRecord<ZodString, ZodUnknown>,
        >;
        name: string;
        onConfigApply?: $InferOuterFunctionType<
            ZodTuple<readonly [ZodRecord<ZodString, ZodUnknown>], null>,
            ZodPromise<ZodVoid>,
        >;
        pluginPackage: string;
        promptRules?: string;
        run: $InferOuterFunctionType<
            ZodTuple<readonly [ZodString], null>,
            ZodPromise<ZodVoid>,
        >;
        serviceName?: string;
        servicePackage: string;
        skill?: string;
        startCommand: $InferOuterFunctionType<
            ZodTuple<readonly [ZodString], null>,
            ZodArray<ZodString>,
        >;
        version: string;
    }

    The component descriptor (used for config-apply handler).

    documentLockWaitMs?: number

    Longest document-lock wait of POST /metadata, POST /rules/reapply and POST /documents/delete (default 10 s, D118; tests only).

    embeddingHealth?: { snapshot: () => EmbeddingHealthSnapshot }

    Embedding health (GET /status health.embedding, D88).

    embeddingProvider: EmbeddingProvider

    The embedding provider.

    enrichmentStore?: EnrichmentStoreInterface

    Optional enrichment store for persisted enrichment metadata.

    fileSystemWatcher?: FileSystemWatcher

    Filesystem watcher instance for /walk endpoint (its inventory, D83).

    getConfig?: () => JeevesWatcherConfig

    Config getter for live config access after hot-reload.

    getFileSystemWatcher?: () => FileSystemWatcher | undefined

    Getter for live filesystem watcher access after hot-reload rebuilds.

    gitignoreFilter?: GitignoreFilter

    Gitignore filter for reindex path validation.

    helperIntrospection?: AllHelpersIntrospection

    Helper introspection for merged document.

    indexCheckHealth?: {
        snapshot: () => {
            at: string
            | null;
            capped: number;
            checked: number;
            durationMs: number | null;
            removed: number;
            skippedRoots: number;
            state: "pending" | "running" | "done" | "failed" | "off";
        };
    }

    Index check at start (health.indexCheck, D197).

    initialScanTracker?: InitialScanTracker

    Initial scan tracker for /status visibility.

    issuesManager: IssuesManager

    The issues manager.

    logger: Logger

    The logger instance.

    processor: WatcherProcessor

    The document processor: file and source operations.

    Queues paused while a prune deletes points. The service passes combinePausableQueues(fileQueue, sourceQueue) (app/index.ts), so a prune quiesces both the file event queue and the source notify queue.

    reindexTracker?: ReindexTracker

    The reindex tracker (optional, created if not provided).

    sourceQueue?: SourceNotifyQueue

    Source notify queue (POST /documents); absent in file-only setups.

    valuesManager: ValuesManager

    The values manager.

    vcsCoordinator?: VcsCoordinator

    VCS coordinator for the git-backed versioning (/vcs/*) routes; without it they answer as unregistered (api/featureGates).

    vectorStore: VectorStoreClient

    The vector store client.

    version?: string

    Service version string for /status endpoint.

    virtualRuleStore: VirtualRuleStore

    Virtual rule store for externally registered inference rules (the /rules/* routes).