@hivelore/core 0.30.1 → 0.31.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
@@ -1804,9 +1804,8 @@ interface SensorTarget {
1804
1804
  }
1805
1805
  /**
1806
1806
  * Does this sensor apply to `path`? A sensor with no explicit `paths` (and whose
1807
- * memory has no anchor paths) applies everywhere. Otherwise it applies only to the
1808
- * exact file or directory prefix. Use an explicit directory path (`src/foo/`) when a
1809
- * sensor should cover a whole subtree.
1807
+ * memory has no anchor paths) applies everywhere. Otherwise it applies to the exact
1808
+ * file, a directory prefix, or a glob (`**` / `*.controller.ts` style) scope.
1810
1809
  */
1811
1810
  declare function sensorAppliesToPath(sensor: Sensor, anchorPaths: string[], path: string): boolean;
1812
1811
  /**
package/dist/index.js CHANGED
@@ -3782,6 +3782,7 @@ function sensorAppliesToPath(sensor, anchorPaths, path19) {
3782
3782
  return scopes.some((rawScope) => {
3783
3783
  const scope = normalizeProjectPath(rawScope);
3784
3784
  if (!scope) return false;
3785
+ if (isGlobPath(scope)) return globToRegExp(scope).test(target);
3785
3786
  return target === scope || target.startsWith(`${scope}/`);
3786
3787
  });
3787
3788
  }