@karmaniverous/jeeves-meta 0.12.3 → 0.12.4

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.
@@ -10219,7 +10219,11 @@ async function isStale(scopePrefix, meta, watcher) {
10219
10219
  if (!meta._generatedAt)
10220
10220
  return true; // Never synthesized = stale
10221
10221
  const files = await watcher.walk([`${escapeGlob(scopePrefix)}/**`]);
10222
- return hasModifiedAfter(files, new Date(meta._generatedAt).getTime());
10222
+ // Exclude .meta/ subtree — synthesis outputs must not trigger staleness.
10223
+ // Handle both forward and back slashes for cross-platform compatibility.
10224
+ const metaSep = /[/\\]\.meta(?:[/\\]|$)/;
10225
+ const filtered = files.filter((f) => !metaSep.test(f));
10226
+ return hasModifiedAfter(filtered, new Date(meta._generatedAt).getTime());
10223
10227
  }
10224
10228
  /** Maximum staleness for never-synthesized metas (1 year in seconds). */
10225
10229
  const MAX_STALENESS_SECONDS = 365 * 86_400;
package/dist/index.js CHANGED
@@ -9744,7 +9744,11 @@ async function isStale(scopePrefix, meta, watcher) {
9744
9744
  if (!meta._generatedAt)
9745
9745
  return true; // Never synthesized = stale
9746
9746
  const files = await watcher.walk([`${escapeGlob(scopePrefix)}/**`]);
9747
- return hasModifiedAfter(files, new Date(meta._generatedAt).getTime());
9747
+ // Exclude .meta/ subtree — synthesis outputs must not trigger staleness.
9748
+ // Handle both forward and back slashes for cross-platform compatibility.
9749
+ const metaSep = /[/\\]\.meta(?:[/\\]|$)/;
9750
+ const filtered = files.filter((f) => !metaSep.test(f));
9751
+ return hasModifiedAfter(filtered, new Date(meta._generatedAt).getTime());
9748
9752
  }
9749
9753
  /** Maximum staleness for never-synthesized metas (1 year in seconds). */
9750
9754
  const MAX_STALENESS_SECONDS = 365 * 86_400;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmaniverous/jeeves-meta",
3
- "version": "0.12.3",
3
+ "version": "0.12.4",
4
4
  "author": "Jason Williscroft",
5
5
  "description": "Fastify HTTP service for the Jeeves Meta synthesis engine",
6
6
  "license": "BSD-3-Clause",