@karmaniverous/jeeves-watcher 0.8.0 → 0.8.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.
@@ -4478,11 +4478,16 @@ class DocumentProcessor {
4478
4478
  this.logger.debug({ filePath }, 'File not indexed, skipping');
4479
4479
  return null;
4480
4480
  }
4481
- const { metadataWithRules } = await this.buildMetadataWithRules(filePath);
4481
+ const { metadataWithRules, matchedRules, metadata } = await this.buildMetadataWithRules(filePath);
4482
4482
  const totalChunks = getChunkCount(existingPayload);
4483
4483
  const ids = chunkIds(filePath, totalChunks);
4484
4484
  await this.vectorStore.setPayload(ids, metadataWithRules);
4485
4485
  this.issuesManager?.clear(filePath);
4486
+ if (this.valuesManager) {
4487
+ for (const ruleName of matchedRules) {
4488
+ this.valuesManager.update(ruleName, metadata);
4489
+ }
4490
+ }
4486
4491
  this.logger.info({ filePath, chunks: totalChunks }, 'Rules re-applied');
4487
4492
  return metadataWithRules;
4488
4493
  }, null);
package/dist/index.js CHANGED
@@ -4456,11 +4456,16 @@ class DocumentProcessor {
4456
4456
  this.logger.debug({ filePath }, 'File not indexed, skipping');
4457
4457
  return null;
4458
4458
  }
4459
- const { metadataWithRules } = await this.buildMetadataWithRules(filePath);
4459
+ const { metadataWithRules, matchedRules, metadata } = await this.buildMetadataWithRules(filePath);
4460
4460
  const totalChunks = getChunkCount(existingPayload);
4461
4461
  const ids = chunkIds(filePath, totalChunks);
4462
4462
  await this.vectorStore.setPayload(ids, metadataWithRules);
4463
4463
  this.issuesManager?.clear(filePath);
4464
+ if (this.valuesManager) {
4465
+ for (const ruleName of matchedRules) {
4466
+ this.valuesManager.update(ruleName, metadata);
4467
+ }
4468
+ }
4464
4469
  this.logger.info({ filePath, chunks: totalChunks }, 'Rules re-applied');
4465
4470
  return metadataWithRules;
4466
4471
  }, null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmaniverous/jeeves-watcher",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "author": "Jason Williscroft",
5
5
  "description": "Filesystem watcher that keeps a Qdrant vector store in sync with document changes",
6
6
  "license": "BSD-3-Clause",