@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.js CHANGED
@@ -316,10 +316,10 @@ function readInjected(value) {
316
316
  }
317
317
  function getDaemonBuildInfo() {
318
318
  if (cached) return cached;
319
- const commit = readInjected(true ? "69dc786812247d8f2e908eec5c7805349fbf1d8d" : void 0) ?? "unknown";
320
- const commitShort = readInjected(true ? "69dc7868" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
321
- const version = readInjected(true ? "0.9.82-rc.338" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
322
- const builtAt = readInjected(true ? "2026-06-20T08:44:29.162Z" : void 0);
319
+ const commit = readInjected(true ? "042075899bbd2feb9c22f9ccd01990408323443d" : void 0) ?? "unknown";
320
+ const commitShort = readInjected(true ? "04207589" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
321
+ const version = readInjected(true ? "0.9.82-rc.339" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
322
+ const builtAt = readInjected(true ? "2026-06-20T12:40:45.079Z" : void 0);
323
323
  cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
324
324
  return cached;
325
325
  }
@@ -40042,6 +40042,7 @@ function synthesizeControlsFromControlBar(specControls) {
40042
40042
  const actionType = ctl?.action?.type;
40043
40043
  if (!id || !actionType) return;
40044
40044
  const label = typeof ctl?.label === "string" && ctl.label.trim() ? ctl.label : id;
40045
+ const visibleWhenState = Array.isArray(ctl?.visible_when_state) ? ctl.visible_when_state.filter((s) => typeof s === "string") : void 0;
40045
40046
  if (actionType === "open_picker") {
40046
40047
  out.push({
40047
40048
  id,
@@ -40052,7 +40053,8 @@ function synthesizeControlsFromControlBar(specControls) {
40052
40053
  listScript: id,
40053
40054
  setScript: id,
40054
40055
  readFrom: id,
40055
- order: index
40056
+ order: index,
40057
+ ...visibleWhenState && visibleWhenState.length > 0 ? { visibleWhenState } : {}
40056
40058
  });
40057
40059
  } else if (actionType === "send_keys") {
40058
40060
  out.push({
@@ -40062,7 +40064,8 @@ function synthesizeControlsFromControlBar(specControls) {
40062
40064
  placement: "bar",
40063
40065
  invokeScript: id,
40064
40066
  resultDisplay: "none",
40065
- order: index
40067
+ order: index,
40068
+ ...visibleWhenState && visibleWhenState.length > 0 ? { visibleWhenState } : {}
40066
40069
  });
40067
40070
  }
40068
40071
  });