@adhdev/daemon-core 1.0.6 → 1.0.7-rc.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/index.js CHANGED
@@ -428,10 +428,10 @@ function readInjected(value) {
428
428
  }
429
429
  function getDaemonBuildInfo() {
430
430
  if (cached) return cached;
431
- const commit = readInjected(true ? "9ad56bf67cd5ddac37f56c17aa80edb153fa3788" : void 0) ?? "unknown";
432
- const commitShort = readInjected(true ? "9ad56bf" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
433
- const version = readInjected(true ? "1.0.6" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
434
- const builtAt = readInjected(true ? "2026-07-19T19:54:02.939Z" : void 0);
431
+ const commit = readInjected(true ? "08a9c98386a035399bb9d637e1c95cc3a242c165" : void 0) ?? "unknown";
432
+ const commitShort = readInjected(true ? "08a9c983" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
433
+ const version = readInjected(true ? "1.0.7-rc.1" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
434
+ const builtAt = readInjected(true ? "2026-07-20T04:10:23.643Z" : void 0);
435
435
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
436
436
  return cached;
437
437
  }
@@ -56726,10 +56726,14 @@ var ProviderLoader = class _ProviderLoader {
56726
56726
  } catch {
56727
56727
  }
56728
56728
  const MIN_INTERVAL_MS = 30 * 60 * 1e3;
56729
- if (prevTimestamp && Date.now() - prevTimestamp < MIN_INTERVAL_MS) {
56729
+ const upstreamProviderCount = this.countProviders(this.upstreamDir);
56730
+ if (upstreamProviderCount > 0 && prevTimestamp && Date.now() - prevTimestamp < MIN_INTERVAL_MS) {
56730
56731
  this.log("Upstream check skipped (last check < 30min ago)");
56731
56732
  return { updated: false };
56732
56733
  }
56734
+ if (upstreamProviderCount === 0 && prevTimestamp && Date.now() - prevTimestamp < MIN_INTERVAL_MS) {
56735
+ this.log("Upstream empty (0 providers) \u2014 forcing fetch despite <30min cooldown");
56736
+ }
56733
56737
  const tarballTarget = resolveProviderTarballTarget(this.providerTarballUrl);
56734
56738
  try {
56735
56739
  const etag = await new Promise((resolve26, reject) => {
@@ -56769,7 +56773,7 @@ var ProviderLoader = class _ProviderLoader {
56769
56773
  });
56770
56774
  req.end();
56771
56775
  });
56772
- if (etag && etag === prevEtag) {
56776
+ if (etag && etag === prevEtag && upstreamProviderCount > 0) {
56773
56777
  this.writeMeta(metaPath, prevEtag, Date.now());
56774
56778
  this.log("Upstream unchanged (ETag match)");
56775
56779
  return { updated: false };