@costrict/notify 1.0.5 → 1.0.6

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/README.md CHANGED
@@ -12,7 +12,7 @@ Monitors human intervention events and sends notifications via multiple channels
12
12
 
13
13
  ## Notification Channels
14
14
 
15
- ### System Notification (Default Disabled)
15
+ ### System Notification (Default Enabled)
16
16
  Desktop notifications using `node-notifier` - works across Windows, macOS, and Linux.
17
17
 
18
18
  ### Bark Notification
@@ -26,8 +26,8 @@ Push notifications via WeChat Work (企微) webhook service.
26
26
  Configure notification channels using environment variables:
27
27
 
28
28
  ```bash
29
- # Enable/disable notification channels (default: all disabled)
30
- NOTIFY_ENABLE_SYSTEM=true # System notification (default: false)
29
+ # Enable/disable notification channels
30
+ NOTIFY_ENABLE_SYSTEM=true # System notification (default: true, set to false to disable)
31
31
  NOTIFY_ENABLE_BARK=false # Bark notification (default: false)
32
32
  NOTIFY_ENABLE_WECOM=false # WeChat Work notification (default: false)
33
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@costrict/notify",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Multi-channel notification plugin for CoStrict - supports system desktop, Bark, and WeChat Work notifications",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -105,7 +105,7 @@ class WecomNotifier {
105
105
  }
106
106
 
107
107
  async function sendNotification(title, message, options = {}) {
108
- const enableSystem = process.env.NOTIFY_ENABLE_SYSTEM === "true";
108
+ const enableSystem = process.env.NOTIFY_ENABLE_SYSTEM !== "false";
109
109
  const enableBark = process.env.NOTIFY_ENABLE_BARK === "true";
110
110
  const enableWecom = process.env.NOTIFY_ENABLE_WECOM === "true";
111
111