ai-notify 0.7.0 → 0.7.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.
@@ -193,8 +193,16 @@ final class PopupCard: NSObject {
193
193
  var onClick: () -> Void = {}
194
194
 
195
195
  override init() {
196
- window = NSWindow(contentRect: NSRect(x: 0, y: 0, width: 300, height: 96),
197
- styleMask: [.borderless], backing: .buffered, defer: false)
196
+ // A non-activating floating panel: it receives clicks (the close button
197
+ // and the card's mouseDown both fire) without the background menu-bar app
198
+ // ever becoming active — the reliable way to make a HUD-style window
199
+ // clickable. A plain NSWindow drops the first click while inactive.
200
+ let panel = NSPanel(contentRect: NSRect(x: 0, y: 0, width: 300, height: 96),
201
+ styleMask: [.borderless, .nonactivatingPanel], backing: .buffered, defer: false)
202
+ panel.isFloatingPanel = true
203
+ panel.becomesKeyOnlyIfNeeded = true
204
+ panel.worksWhenModal = true
205
+ window = panel
198
206
  super.init()
199
207
  window.isOpaque = false
200
208
  window.backgroundColor = .clear
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-notify",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Desktop, sound, and spoken notifications for terminal AI coding agents (Claude Code, Codex, Gemini, ...) — with one mute switch that covers all of them, across every terminal.",
5
5
  "type": "module",
6
6
  "bin": {