neurastream 0.2.75 → 0.2.76

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neurastream",
3
- "version": "0.2.75",
3
+ "version": "0.2.76",
4
4
  "description": "Guardrails for running many AI coding agents at once: plan queue, blockers, call budgets, provider caps, scoring, merge-verified close.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -6,6 +6,7 @@ THRESH_IO=${THRESH_IO:-40}
6
6
  COOLDOWN=${COOLDOWN:-600}
7
7
  STATE_DIR=${ALERT_STATE:?}
8
8
  mkdir -p "$STATE_DIR"
9
+ NOTIFY_TIMEOUT_MS=${NOTIFY_TIMEOUT_MS:-10000}
9
10
 
10
11
  alert() {
11
12
  local last now
@@ -13,7 +14,7 @@ alert() {
13
14
  now=$(date +%s)
14
15
  if (( now - last >= COOLDOWN )); then
15
16
  echo "$now" > "$STATE_DIR/$1"
16
- notify-send -u critical -a "resource-alerts" "$2" "$3" || true
17
+ notify-send -u normal -t "$NOTIFY_TIMEOUT_MS" -a "resource-alerts" "$2" "$3" || true
17
18
  fi
18
19
  }
19
20