@karmaniverous/jeeves-watcher 0.16.3 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
+ import { JeevesComponentDescriptor } from '@karmaniverous/jeeves';
1
2
  import { FastifyInstance } from 'fastify';
2
3
  import pino from 'pino';
3
4
  import * as _karmaniverous_jsonmap from '@karmaniverous/jsonmap';
4
5
  import { JsonMapMap } from '@karmaniverous/jsonmap';
5
6
  import { z } from 'zod';
6
7
  import Handlebars from 'handlebars';
7
- import { JeevesComponentDescriptor } from '@karmaniverous/jeeves';
8
8
  import { Stats } from 'node:fs';
9
9
 
10
10
  /**
@@ -746,6 +746,8 @@ interface ApplyRulesOptions {
746
746
  customMapLib?: Record<string, (...args: unknown[]) => unknown>;
747
747
  /** Optional global schemas collection for resolving schema references. */
748
748
  globalSchemas?: Record<string, SchemaEntry>;
749
+ /** Optional callback to extract text from a file path (for fetchSiblings). */
750
+ extractText?: (filePath: string) => string | undefined;
749
751
  }
750
752
  /**
751
753
  * Apply compiled inference rules to file attributes, returning merged metadata and optional rendered content.
@@ -1703,6 +1705,8 @@ declare class ReindexTracker {
1703
1705
  * Options for {@link createApiServer}.
1704
1706
  */
1705
1707
  interface ApiServerOptions {
1708
+ /** The component descriptor (used for config-apply handler). */
1709
+ descriptor: JeevesComponentDescriptor;
1706
1710
  /** The document processor. */
1707
1711
  processor: DocumentProcessorInterface;
1708
1712
  /** The vector store client. */
@@ -1810,7 +1814,7 @@ interface JeevesWatcherFactories {
1810
1814
  * When provided, the file is loaded as-is (no migration).
1811
1815
  * @returns The running JeevesWatcher instance.
1812
1816
  */
1813
- declare function startFromConfig(configPath?: string): Promise<JeevesWatcher>;
1817
+ declare function startFromConfig(configPath?: string, descriptor?: JeevesComponentDescriptor): Promise<JeevesWatcher>;
1814
1818
 
1815
1819
  /**
1816
1820
  * @module app
@@ -1828,6 +1832,7 @@ interface JeevesWatcherRuntimeOptions {
1828
1832
  declare class JeevesWatcher {
1829
1833
  private config;
1830
1834
  private readonly configPath?;
1835
+ private readonly descriptor;
1831
1836
  private readonly factories;
1832
1837
  private readonly runtimeOptions;
1833
1838
  private logger;
@@ -1848,7 +1853,7 @@ declare class JeevesWatcher {
1848
1853
  private readonly initialScanTracker;
1849
1854
  private readonly version;
1850
1855
  /** Create a new JeevesWatcher instance. */
1851
- constructor(config: JeevesWatcherConfig, configPath?: string, factories?: Partial<JeevesWatcherFactories>, runtimeOptions?: JeevesWatcherRuntimeOptions);
1856
+ constructor(config: JeevesWatcherConfig, configPath?: string, descriptor?: JeevesComponentDescriptor, factories?: Partial<JeevesWatcherFactories>, runtimeOptions?: JeevesWatcherRuntimeOptions);
1852
1857
  /**
1853
1858
  * Start the watcher, API server, and all components.
1854
1859
  */