@karmaniverous/jeeves-watcher 0.15.2 → 0.16.1
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/cli/jeeves-watcher/index.js +777 -8311
- package/dist/index.d.ts +30 -2
- package/dist/index.js +459 -52
- package/package.json +15 -15
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as _karmaniverous_jsonmap from '@karmaniverous/jsonmap';
|
|
|
4
4
|
import { JsonMapMap } from '@karmaniverous/jsonmap';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import Handlebars from 'handlebars';
|
|
7
|
+
import { JeevesComponentDescriptor } from '@karmaniverous/jeeves';
|
|
7
8
|
import { Stats } from 'node:fs';
|
|
8
9
|
|
|
9
10
|
/**
|
|
@@ -1423,6 +1424,7 @@ declare class EventQueue {
|
|
|
1423
1424
|
private tokens;
|
|
1424
1425
|
private lastRefillMs;
|
|
1425
1426
|
private drainWaiters;
|
|
1427
|
+
private idleWorkerWaiters;
|
|
1426
1428
|
/**
|
|
1427
1429
|
* Create an event queue.
|
|
1428
1430
|
*
|
|
@@ -1454,6 +1456,14 @@ declare class EventQueue {
|
|
|
1454
1456
|
* @returns A promise that resolves when the queue is drained.
|
|
1455
1457
|
*/
|
|
1456
1458
|
drain(): Promise<void>;
|
|
1459
|
+
/**
|
|
1460
|
+
* Wait until there is no in-flight work.
|
|
1461
|
+
*
|
|
1462
|
+
* Unlike {@link drain}, this does NOT wait for debounced or queued items to be empty.
|
|
1463
|
+
* It's useful when you need to temporarily quiesce outgoing work without losing
|
|
1464
|
+
* or rejecting new enqueues.
|
|
1465
|
+
*/
|
|
1466
|
+
waitForIdleWorkers(): Promise<void>;
|
|
1457
1467
|
private push;
|
|
1458
1468
|
private refillTokens;
|
|
1459
1469
|
private takeToken;
|
|
@@ -1461,6 +1471,7 @@ declare class EventQueue {
|
|
|
1461
1471
|
private pump;
|
|
1462
1472
|
private isIdle;
|
|
1463
1473
|
private maybeResolveDrain;
|
|
1474
|
+
private maybeResolveIdleWorkers;
|
|
1464
1475
|
}
|
|
1465
1476
|
|
|
1466
1477
|
/**
|
|
@@ -1791,7 +1802,12 @@ interface JeevesWatcherFactories {
|
|
|
1791
1802
|
/**
|
|
1792
1803
|
* Create and start a JeevesWatcher from a config file path.
|
|
1793
1804
|
*
|
|
1794
|
-
*
|
|
1805
|
+
* When no explicit config path is given, auto-migrates the legacy flat
|
|
1806
|
+
* config (`jeeves-watcher.config.json`) to the namespaced convention
|
|
1807
|
+
* (`jeeves-watcher/config.json`) before loading.
|
|
1808
|
+
*
|
|
1809
|
+
* @param configPath - Optional explicit path to the configuration file.
|
|
1810
|
+
* When provided, the file is loaded as-is (no migration).
|
|
1795
1811
|
* @returns The running JeevesWatcher instance.
|
|
1796
1812
|
*/
|
|
1797
1813
|
declare function startFromConfig(configPath?: string): Promise<JeevesWatcher>;
|
|
@@ -1856,6 +1872,18 @@ declare class JeevesWatcher {
|
|
|
1856
1872
|
*/
|
|
1857
1873
|
declare function loadConfig(configPath?: string): Promise<JeevesWatcherConfig>;
|
|
1858
1874
|
|
|
1875
|
+
/**
|
|
1876
|
+
* @module descriptor
|
|
1877
|
+
* Jeeves Component Descriptor for the watcher service. Single source of truth
|
|
1878
|
+
* consumed by core factories (CLI, plugin tools, HTTP handlers, service manager).
|
|
1879
|
+
*/
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* Watcher component descriptor. Single source of truth for service identity,
|
|
1883
|
+
* config schema, and extension points consumed by core factories.
|
|
1884
|
+
*/
|
|
1885
|
+
declare const watcherDescriptor: JeevesComponentDescriptor;
|
|
1886
|
+
|
|
1859
1887
|
/**
|
|
1860
1888
|
* @module extractors
|
|
1861
1889
|
*
|
|
@@ -1901,5 +1929,5 @@ declare function contentHash(text: string): string;
|
|
|
1901
1929
|
*/
|
|
1902
1930
|
declare function pointId(filePath: string, chunkIndex?: number): string;
|
|
1903
1931
|
|
|
1904
|
-
export { ContentHashCache, DocumentProcessor, EnrichmentStore, EventQueue, FileSystemWatcher, GitignoreFilter, InitialScanTracker, IssuesManager, JeevesWatcher, ReindexTracker, SystemHealth, TemplateEngine, ValuesManager, VectorStoreClient, VirtualRuleStore, apiConfigSchema, applyRules, buildAttributes, buildTemplateEngine, compileRules, configWatchConfigSchema, contentHash, createApiServer, createEmbeddingProvider, createHandlebarsInstance, createLogger, embeddingConfigSchema, extractText, inferenceRuleSchema, issueRecordSchema, jeevesWatcherConfigSchema, loadConfig, loadCustomHelpers, loggingConfigSchema, mergeEnrichment, pointId, registerBuiltinHelpers, resolveTemplateSource, startFromConfig, vectorStoreConfigSchema, watchConfigSchema };
|
|
1932
|
+
export { ContentHashCache, DocumentProcessor, EnrichmentStore, EventQueue, FileSystemWatcher, GitignoreFilter, InitialScanTracker, IssuesManager, JeevesWatcher, ReindexTracker, SystemHealth, TemplateEngine, ValuesManager, VectorStoreClient, VirtualRuleStore, apiConfigSchema, applyRules, buildAttributes, buildTemplateEngine, compileRules, configWatchConfigSchema, contentHash, createApiServer, createEmbeddingProvider, createHandlebarsInstance, createLogger, embeddingConfigSchema, extractText, inferenceRuleSchema, issueRecordSchema, jeevesWatcherConfigSchema, loadConfig, loadCustomHelpers, loggingConfigSchema, mergeEnrichment, pointId, registerBuiltinHelpers, resolveTemplateSource, startFromConfig, vectorStoreConfigSchema, watchConfigSchema, watcherDescriptor };
|
|
1905
1933
|
export type { AllHelpersIntrospection, ApiConfig, ApiServerOptions, ApplyRulesOptions, ApplyRulesResult, CollectionInfo, CompiledRule, CompiledTemplate, ConfigWatchConfig, DocumentProcessorDeps, DocumentProcessorInterface, EmbeddingConfig, EmbeddingProvider, EnrichmentStoreInterface, EventQueueOptions, ExtractedText, Extractor, FileAttributes, FileSystemWatcherOptions, HelperModuleIntrospection, InferenceRule, InitialScanStatus, IssueRecord, IssuesFile, JeevesWatcherConfig, JeevesWatcherConfigInput, JeevesWatcherFactories, JeevesWatcherRuntimeOptions, LoggingConfig, PayloadFieldSchema, ProcessFn, ProcessorConfig, ProviderFactory, ReindexStatus, RenderResult, RuleLogger, ScrollPageResult, ScrolledPoint, SearchResult, SystemHealthOptions, ValuesIndex, VectorPoint, VectorStore, VectorStoreConfig, WatchConfig, WatchEvent };
|