@karmaniverous/jeeves-meta 0.3.1 → 0.3.2

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.js CHANGED
@@ -386,6 +386,10 @@ function buildMetaFilter(config) {
386
386
  key: 'domains',
387
387
  match: { value: config.metaProperty.domains[0] },
388
388
  },
389
+ {
390
+ key: 'file_path',
391
+ match: { text: 'meta.json' },
392
+ },
389
393
  ],
390
394
  };
391
395
  }
@@ -405,16 +409,16 @@ async function discoverMetas(config, watcher) {
405
409
  filter,
406
410
  fields: ['file_path'],
407
411
  });
408
- // Deduplicate by file_path (multi-chunk files)
412
+ // Deduplicate by .meta/ directory path (handles multi-chunk files)
409
413
  const seen = new Set();
410
414
  const metaPaths = [];
411
415
  for (const sf of scanFiles) {
412
416
  const fp = normalizePath$1(sf.file_path);
413
- if (seen.has(fp))
414
- continue;
415
- seen.add(fp);
416
417
  // Derive .meta/ directory from file_path (strip /meta.json)
417
418
  const metaPath = fp.replace(/\/meta\.json$/, '');
419
+ if (seen.has(metaPath))
420
+ continue;
421
+ seen.add(metaPath);
418
422
  metaPaths.push(metaPath);
419
423
  }
420
424
  return metaPaths;
package/dist/index.js CHANGED
@@ -371,6 +371,10 @@ function buildMetaFilter(config) {
371
371
  key: 'domains',
372
372
  match: { value: config.metaProperty.domains[0] },
373
373
  },
374
+ {
375
+ key: 'file_path',
376
+ match: { text: 'meta.json' },
377
+ },
374
378
  ],
375
379
  };
376
380
  }
@@ -390,16 +394,16 @@ async function discoverMetas(config, watcher) {
390
394
  filter,
391
395
  fields: ['file_path'],
392
396
  });
393
- // Deduplicate by file_path (multi-chunk files)
397
+ // Deduplicate by .meta/ directory path (handles multi-chunk files)
394
398
  const seen = new Set();
395
399
  const metaPaths = [];
396
400
  for (const sf of scanFiles) {
397
401
  const fp = normalizePath$1(sf.file_path);
398
- if (seen.has(fp))
399
- continue;
400
- seen.add(fp);
401
402
  // Derive .meta/ directory from file_path (strip /meta.json)
402
403
  const metaPath = fp.replace(/\/meta\.json$/, '');
404
+ if (seen.has(metaPath))
405
+ continue;
406
+ seen.add(metaPath);
403
407
  metaPaths.push(metaPath);
404
408
  }
405
409
  return metaPaths;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmaniverous/jeeves-meta",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "author": "Jason Williscroft",
5
5
  "description": "Knowledge synthesis engine for the Jeeves platform",
6
6
  "license": "BSD-3-Clause",