@adhdev/daemon-core 0.9.82-rc.338 → 0.9.82-rc.339

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.mjs CHANGED
@@ -311,10 +311,10 @@ function readInjected(value) {
311
311
  }
312
312
  function getDaemonBuildInfo() {
313
313
  if (cached) return cached;
314
- const commit = readInjected(true ? "69dc786812247d8f2e908eec5c7805349fbf1d8d" : void 0) ?? "unknown";
315
- const commitShort = readInjected(true ? "69dc7868" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
316
- const version = readInjected(true ? "0.9.82-rc.338" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
317
- const builtAt = readInjected(true ? "2026-06-20T08:44:29.162Z" : void 0);
314
+ const commit = readInjected(true ? "042075899bbd2feb9c22f9ccd01990408323443d" : void 0) ?? "unknown";
315
+ const commitShort = readInjected(true ? "04207589" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
316
+ const version = readInjected(true ? "0.9.82-rc.339" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
317
+ const builtAt = readInjected(true ? "2026-06-20T12:40:45.079Z" : void 0);
318
318
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
319
319
  return cached;
320
320
  }
@@ -39686,6 +39686,7 @@ function synthesizeControlsFromControlBar(specControls) {
39686
39686
  const actionType = ctl?.action?.type;
39687
39687
  if (!id || !actionType) return;
39688
39688
  const label = typeof ctl?.label === "string" && ctl.label.trim() ? ctl.label : id;
39689
+ const visibleWhenState = Array.isArray(ctl?.visible_when_state) ? ctl.visible_when_state.filter((s) => typeof s === "string") : void 0;
39689
39690
  if (actionType === "open_picker") {
39690
39691
  out.push({
39691
39692
  id,
@@ -39696,7 +39697,8 @@ function synthesizeControlsFromControlBar(specControls) {
39696
39697
  listScript: id,
39697
39698
  setScript: id,
39698
39699
  readFrom: id,
39699
- order: index
39700
+ order: index,
39701
+ ...visibleWhenState && visibleWhenState.length > 0 ? { visibleWhenState } : {}
39700
39702
  });
39701
39703
  } else if (actionType === "send_keys") {
39702
39704
  out.push({
@@ -39706,7 +39708,8 @@ function synthesizeControlsFromControlBar(specControls) {
39706
39708
  placement: "bar",
39707
39709
  invokeScript: id,
39708
39710
  resultDisplay: "none",
39709
- order: index
39711
+ order: index,
39712
+ ...visibleWhenState && visibleWhenState.length > 0 ? { visibleWhenState } : {}
39710
39713
  });
39711
39714
  }
39712
39715
  });