@adhdev/daemon-core 0.9.82-rc.207 → 0.9.82-rc.208

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
@@ -27722,6 +27722,8 @@ var SpecDriver = class {
27722
27722
  this.lastBusyAt = Date.now();
27723
27723
  this.lastBusyState = evState;
27724
27724
  this.cancelIdleHold();
27725
+ this.completionIdleKey = "";
27726
+ this.completionIdleFirstSeenAt = 0;
27725
27727
  this.scheduleBusyExpiry(busyWakeMs);
27726
27728
  } else if (evState.id !== this.currentStateId && evState.id !== "busy") {
27727
27729
  if (evState.id !== (this.spec.default_state ?? "idle")) {
@@ -27973,7 +27975,7 @@ function guessExt(mime) {
27973
27975
  }
27974
27976
  function extractMatchedRules(ev) {
27975
27977
  if (!Array.isArray(ev.trace)) return [];
27976
- return ev.trace.filter((t) => t.matched === true || t.kind === "state_match").map((t) => t.rule ?? t.stateId ?? t.id ?? String(t)).filter(Boolean);
27978
+ return ev.trace.filter((t) => t.kind === "state_match").map((t) => t.text).filter(Boolean);
27977
27979
  }
27978
27980
 
27979
27981
  // src/providers/spec/native-history-executor.ts