@adhdev/daemon-standalone 0.9.82-rc.106 → 0.9.82-rc.107

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
@@ -40139,6 +40139,9 @@ ${effect.notification.body || ""}`.trim();
40139
40139
  if (buttonIndex < 0 && (action === "always" || /always/i.test(button))) {
40140
40140
  buttonIndex = buttons.findIndex((b) => /always/i.test(b));
40141
40141
  }
40142
+ if (buttonIndex < 0 && (action === "approve" || action === "accept")) {
40143
+ buttonIndex = pickApprovalButton(buttons, provider).index;
40144
+ }
40142
40145
  if (buttonIndex < 0) {
40143
40146
  return { success: false, error: "Approval action did not match any visible button" };
40144
40147
  }